PDA

View Full Version : How to disable stick thread option for moderator?


begin
06-30-2011, 06:03 AM
I want to setting mods and super-mods can not using ( or not showing ) stick thread option when administrative .

What do I do?

Jeff Ledger
06-30-2011, 07:49 AM
The sticky thread permission is a part of thread tools permission, and IMO there are no way to disable it to specific group from admin control panel but you still may do this trick

in your forumdisplay template

find

<li><label><input type="radio" name="do" value="stick" /> {vb:rawphrase stick_threads}</label></li>
<li><label><input type="radio" name="do" value="unstick" /> {vb:rawphrase unstick_threads}</label></li>


replace with

<vb:if condition="is_member_of($vbulletin->userinfo, 7)">
<li><label><input type="radio" name="do" value="stick" /> {vb:rawphrase stick_threads}</label></li>
<li><label><input type="radio" name="do" value="unstick" /> {vb:rawphrase unstick_threads}</label></li>
</vb:if>

Look at the line
<vb:if condition="is_member_of($vbulletin->userinfo, 7)">

it means only user of group 7 (admin's group, can be found in ACP, Usergroup manager) can see the sticky options).

You can add more group by using comma.

or you can replace with the following

<vb:if condition="$vbulletin->userinfo['userid'] == 2">
<li><label><input type="radio" name="do" value="stick" /> {vb:rawphrase stick_threads}</label></li>
<li><label><input type="radio" name="do" value="unstick" /> {vb:rawphrase unstick_threads}</label></li>
</vb:if>

<vb:if condition="$vbulletin->userinfo['userid'] == 2">

replace 2 with your id. So you are the only one who can see these options.

begin
06-30-2011, 10:52 AM
thank you so much.

i used $vbulletin->userinfo as $bbuserinfo . it's work.
because I read that, use $ bbuserinfo when editing in the template, I did not understand the difference.