DawPi Posted June 12, 2018 Share 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❓ Link to comment Share on other sites More sharing options...
Adriano Faria Posted June 12, 2018 Share 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. Link to comment Share on other sites More sharing options...
DawPi Posted June 12, 2018 Author Share 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. Link to comment Share on other sites More sharing options...
Adriano Faria Posted June 12, 2018 Share Posted June 12, 2018 Oh true... so I guess that's why IPS didn't bother with it. Link to comment Share on other sites More sharing options...
DawPi Posted June 12, 2018 Author Share 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", "" ); } } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.