MyBB Community Forums

Full Version: thread bump
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello i'm looking for a way to manually bump threads on the top of the forum
It should be done by authorized stuff only (admins, s-mods, etc..) and for selective forums only ,not by regular users.
Is there a plugin or a way to achive this?

thank you

M
Get this plugin:
http://mybbhacks.zingaburga.com/showthre...92#pid2692

Open inc/plugins/bumpthread.php and change:
		'compatibility'	=> '14*',
to:
		'compatibility'	=> '16*',

Then find:
		if($mybb->usergroup['cancp'] != 1 && $mybb->usergroup['issupermod'] != 1 && $thread['uid'] != $mybb->user['uid'])
change to:
		if($mybb->usergroup['cancp'] != 1 && $mybb->usergroup['issupermod'] != 1 && !in_array($thread['fid'], array(1,3,7,14)))

Also find:
		if($mybb->usergroup['cancp'] == 1 || $mybb->usergroup['issupermod'] == 1 || $thread['uid'] == $mybb->user['uid'])
change to:
		if(($mybb->usergroup['cancp'] == 1 || $mybb->usergroup['issupermod'] == 1) && in_array($thread['fid'], array(1,3,7,14)))

where 1,3,7,14 are the forum ids where you want the "Bump This Thread" link to show. It shows near thread title but you can change position by moving {$bumpthread} around showthread template.
that's great. Is it possible to restrict the post bumping only to specific user groups? I need only admins or s-mods to bump them.

Thank you very much, very appreciated

M