Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 22 Mar 2018, 15:19
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Link to zero replies: Display for specific usergroups only

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?
Reply With Quote
  #2  
Old 22 Mar 2018, 16:15
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #3  
Old 22 Mar 2018, 21:01
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Simple but elegant. Thanks, Mark.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 11:59.

Layout Options | Width: Wide Color: