![]() |
Navbar Links based on usergroups
I'd like to be able to only display a particular navbar item based on a set of usergroups I define. I wouldn't think this would be too hard to do, but I'm not sure where to start.
Has anyone done this, can offer pointers, etc? Thanks! |
I made a set of Dropdown Menus (https://vborg.vbsupport.ru/showthread.php?t=203521 ) which some admin wanted to add a serperate tab which only he and his mods could view.
Using conditionals to wrap an entire tab block like the example below Code:
<if condition="is_member_of($vbulletin->userinfo, X, X, X)"> The bottom block is viewable by everyone :) Hope that helps :up: The |
It looks like that condition is exactly what I needed, thank you very much!
--------------- Added [DATE]1234220413[/DATE] at [TIME]1234220413[/TIME] --------------- Added it to my template, works perfectly, thanks again for the tip on that function! |
Quote:
|
All times are GMT. The time now is 05:24 AM. |
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:
|