![]() |
After fiddling with it, I figured out a way to limit it to X usergroups:
Code:
<if condition="is_member_of($vbulletin->userinfo, 2)"> Code:
<if condition="is_member_of($vbulletin->userinfo, 2, 6, 32, 14)"> If you put it around the code for sticking/unsticking a thread, only people in those groups will see that link! Code:
Need to add the first if statement then a </if> at the end. Keep in mind that if a person you allow to have stickies gets removed from the group, they will still see the stickied threads, they just won't be able to unstick them without using the direct link. Edit: co-admin brought up a good point, can you still stick from the URL if you knew it, the answer was yes, so I went back to fiddling. The URL's look like this: showthread.php?do=personalsticky&t=1 showthread.php?do=unpersonalsticky&t=1 And can be called even if you hide the link. Edit the following plugin: Stick/unstick check Find: Code:
if ($_REQUEST['do'] == 'personalsticky' ) Code:
if ($_REQUEST['do'] == 'personalsticky' AND is_member_of($vbulletin->userinfo, 2)) Making sure to edit your usergroups. If you aren't in the defined groups, and try to manually stick a thread, it just takes you to the thread and nothing happens. I'd love it to go to an error message but I have no idea how. |
Work in 3.7??
|
Quote:
https://vborg.vbsupport.ru/showthread.php?t=189444 |
All times are GMT. The time now is 07:33 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|