Jump to content

Custom No Permission Error

Featured Replies

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

I requested before to IPS add the "copy" in editor fields but nothing so far.

I would do it via query.

  • Author
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.

Oh true... so I guess that's why IPS didn't bother with it.

  • Author

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

  • No registered users viewing this page.