MyBB Community Forums

Full Version: moderation_notice?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This feature is avalible on MYBB 1.8 but I am still working on adopting my 1.6 version to get upgraded! I would like to show this moderation message please help me to to make it work on 1.6.


$moderation_notice = '';
if(!is_moderator($forum['fid'], "canapproveunapprovethreads"))
	{
		if($forumpermissions['modthreads'] == 1)
		{
			$moderation_text = $lang->moderation_forum_thread;
			eval('$moderation_notice = "'.$templates->get('global_moderation_notice').'";');
		}
	}

	if(!is_moderator($forum['fid'], "canapproveunapproveposts"))
	{
		if($mybb->user['moderateposts'] == 1)
		{
			$moderation_text = $lang->moderation_user_posts;
			eval('$moderation_notice = "'.$templates->get('global_moderation_notice').'";');
		}
	}


// Maybe some like this will do?

$thread = get_thread($mybb->input['tid']);

$fid = $thread['fid'];
$forumpermissions = forum_permissions($fid);


if(!is_moderator($fid))
{
if($forumpermissions['modthreads'] == 1)
        {
            $moderation_text = $lang->moderation_forum_thread;
            eval('$moderation_notice = "'.$templates->get('global_moderation_notice').'";');
        }

if($mybb->user['moderateposts'] == 1)
        {
            $moderation_text = $lang->moderation_user_posts;
            eval('$moderation_notice = "'.$templates->get('global_moderation_notice').'";');
        }
    }
Thanks buddy for the reply but I am talking about a message that users get when you set to moderate some forum.

The message says that thread will be moderated and wont be displayed right away!