vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=326230

Link to zero replies: Display for specific usergroups only
by djbaxter
22 Mar 2018 14:19

vBulletin 4.2.5

Using this as a link in the navbar lists threads with zero replies:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Is there a way to make that display only for certain usergroups, e.g., admins, mods, top contributors?

MarkFL 22 Mar 2018 15:15

Create a plugin hooked at "global_bootstrap_init_complete" with the following code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change "X,Y,Z" for the usergroups you wish to give permission. Then, in the "Show Permission Name" option for your navbar item, enter:

noreplies

djbaxter 22 Mar 2018 20:01

Simple but elegant. Thanks, Mark. :)


All times are GMT. The time now is 10:53.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.