The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to disable stick thread option for moderator?
I want to setting mods and super-mods can not using ( or not showing ) stick thread option when administrative .
What do I do? |
#2
|
|||
|
|||
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 Code:
<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 Code:
<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> <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 Code:
<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> replace 2 with your id. So you are the only one who can see these options. |
Благодарность от: | ||
begin |
#3
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|