![]() |
hidden link
Just a quick question. I would like to have a few links in my nav, but I would like certain links to only be shown either to mods or admins. I would like the link to show based on there group. How would I do this.
Thanks in advance |
Ok, I did a quick put together of code here and I havn't tested it so :S
First off goto your templates and goto the template named phpincludes at the very bottom put: Code:
//if admin you can also change the == to < or > if you want a certain range of users to have a certain image. good luck ^_^ |
You can check which usergroupid's belong to which group in the Usergroup manager. Hover over the edit link and check your statusbar...
By default, vB2 creates: admins = usergroupid 6 moderators = usergroupid 7 supermods = usergroupid 5 members = usergroupdi 2 oh, and the template is phpinclude, no s :) |
Thanks for the quick replies. I guess I should have mentioned this part. I wanted to do it from a non-vb page. I wanted to do something like this:
<?php if ((isset($_SESSION['usergroupid'])) && ($_SESSION['usergroupid']==3)) { ?> Bascially if the usergroupid matches the users group the link would show. What would be the best way to go about this. Thanks again |
Search for vbtemplates, it allows you to make vBulletin powered pages, and you can call variables with it.
|
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:
|