MyBB Community Forums

Full Version: [Request] Moderate own topics
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Sometimes admin want to give some users own topics moderating possibility - these users can moderate (close/open, move/copy, merge or pin own topics and posts in own topics) only own topics. These users may not moderate another's topics (topics that they didn't started).
Has somebody performed such plugin as Moderate own topics ?
No, that's just a tool for admins to restrict some permissions of normal users.
LeX- Wrote:Maybe this helps :: http://dennistt.net/forum/showthread.php?tid=98
Yes, I saw this mod, but I've one question:

Adds several per-user permissions including:
Moderate posts - it means that forum moderator will premoderate the posts of this user or this user can moderate own topics. I can't understand only that.
Can you try this ? =P

Works the same way as DennisTT's plugin, when you edit a user in the ACP you will see a new "box" at the top with a setting in it called "Moderate Own Topics [YESNO]".

Just upload into your plugins folder, go to the pluginmanager and activate, setting is based per user Wink
LeX- Wrote:Can you try this ? =P

Works the same way as DennisTT's plugin, when you edit a user in the ACP you will see a new "box" at the top with a setting in it called "Moderate Own Topics [YESNO]".

Just upload into your plugins folder, go to the pluginmanager and activate, setting is based per user Wink
It's fantastic!!! Thanks! You works like a lightning!
stamp Wrote:
LeX- Wrote:Can you try this ? =P

Works the same way as DennisTT's plugin, when you edit a user in the ACP you will see a new "box" at the top with a setting in it called "Moderate Own Topics [YESNO]".

Just upload into your plugins folder, go to the pluginmanager and activate, setting is based per user Wink
It's fantastic!!! Thanks! You works like a lightning!

Didn't test it properly yet but it works the way you want it ? =P
LeX-
Mod doesn't work - when user clicks on the item in dropdown list of topic moderating or post moderating options he becomes standart error:

Quote:You do not have permission to access this page. This could be because of one of the following reasons:
ok, but i hate the way the hooks are set for probably solving it =P

Edit ::

It's impossible like the way it is now =P The is_moderator() function blocks the whole thing =P

Edit 2 ::

Couldn't resist for give it another try =( =P

This time the function is_moderator() needs some modification, but don't know how to handle the merge only threads you started etc. , You now can close, open, delete own threads by "inline moderation" and such ...

Can you give it a try ?

open inc/functions.php
Find
function is_moderator($fid="0", $action="", $uid="0")
{
	global $mybb, $db;
Add below
	if($mybb->user['modown'] != "no" && $mybb->user['uid'] != 0)
	{
		// INCOMING
		$tid = intval($mybb->input['tid']);
		// CHECK IF USER IS THREADSTARTER
		$query = $db->simple_select(TABLE_PREFIX.'threads', 'uid', "tid={$tid}", array('limit' => 1));
		$check = $db->fetch_field($query, "uid");
		if($check['uid'] == $mybb->user['uid'])
		{
			return "yes";
		}
		else
		{
			return "no";
		}
	}

The rest of the plugin stays the same.
LeX-
O Yes! It works! Thanks! Big Grin
Pages: 1 2