DawPi Posted June 12, 2018 Posted June 12, 2018 Hello, I have question about this option: As you can see there is no "copy" option to the rest of the forums. Is there any "easy" way to copy this value to other forums in few clicks❓
Adriano Faria Posted June 12, 2018 Posted June 12, 2018 I requested before to IPS add the "copy" in editor fields but nothing so far. I would do it via query.
DawPi Posted June 12, 2018 Author Posted June 12, 2018 16 minutes ago, Adriano Faria said: I would do it via query. You can't because there is no "empty" "forums_forum_{$this->id}_permerror" keys if no one has edit this message in the past.
Adriano Faria Posted June 12, 2018 Posted June 12, 2018 Oh true... so I guess that's why IPS didn't bother with it.
DawPi Posted June 12, 2018 Author Posted June 12, 2018 Done by: foreach( \IPS\Db::i()->select( '*', 'forums_forums', 'parent_id <> -1', 'id ASC' ) as $forum ) { if ( ! \IPS\Member::loggedIn()->language()->checkKeyExists( "forums_forum_{$forum['id']}_permerror" ) ) { \IPS\Lang::saveCustom( 'forums', "forums_forum_{$forum['id']}_permerror", "" ); } }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.