Jump to content

Custom No Permission Error


DawPi

Recommended Posts

Posted

Hello,

I have question about this option:

error.thumb.png.515ccfc8044b14165941d5b94d546b97.png

 

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

Posted
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.

Posted

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", "" );
            }
        }

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...