![]() |
I noticed you can put <if condition="$show['member']"> if you want the link to be only viewable by registered users and <if condition="$GLOBALS[show][admincplink]"> for admins. I was wondering how I could go about making a link only viewable to certain membergroup, i.e. membergroup id 23 for instance.
My guess would be finding the code where the $show['member'] is original defined and add something similiar to that but for membergroup 23 only. Or is there a way to just set up a reference in the navbar template? Thank you! |
Sarcoth,
try this and let me know how you get on Code:
<if condition="$bbuserinfo['usergroupid'] == '23'"> |
Quote:
PHP Code:
|
hi every body
WHAT IF I WANT TO SHOW THE LINK TO MORE THAN ONE GROUP LET SAY GROUP 5,6,7 WHAT WILL BE THE CODE YOUR HELP WILL BE HIGHLY APPRECAITED |
Quote:
For example: PHP Code:
|
Awsome Mod
I Love It! |
optrex,
Thanks for the great post. I do have one question though. I have Blak-Ice skin installed and don't see: <!-- nav buttons bar --> <div align="center"> in the navbar template. I am trying to install my additional navbar directly underneath the buttons. Currently it is attached to the welcome module. I put all my coding in the top of the navbar template but that doesn't work. See here: www.thepublicenemy.net What template do I need to modify for this to work? |
Depending on the skin, you may have to modify your header
|
Hii
would you please help me .. :D I am newbie at coding and editing template. Well first thing .. which template should I edit and which new script should i add? |
edit your navbar template.
You dont need to add scripts as such, just add the code portions above to get what you need. |
All times are GMT. The time now is 02:53 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:
|