moderation_notice?
#1
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').'";');
        }
    }
Reply
#2
what, like this?
http://mods.mybb.com/view/modnotice-1-3
Reply
#3
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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)