vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Miscellaneous Hacks - Multiple Navbars (https://vborg.vbsupport.ru/showthread.php?t=127525)

Sarcoth 12-18-2006 03:23 PM

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!

optrex 12-18-2006 08:55 PM

Sarcoth,

try this and let me know how you get on

Code:

<if condition="$bbuserinfo['usergroupid'] == '23'">
</if>


Sarcoth 12-19-2006 05:23 PM

Quote:

Originally Posted by optrex (Post 1141188)
Sarcoth,

try this and let me know how you get on

Code:

<if condition="$bbuserinfo['usergroupid'] == '23'">
</if>


Thanks for the reply optrex. I found something yesterday that actually worked.

PHP Code:

<if condition="is_member_of($bbuserinfo, 23)"></if> 

Found a few things that go along with it as well in this link; good stuff.

almqdad 01-14-2007 01:25 PM

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

thincom2000 01-14-2007 02:01 PM

Quote:

Originally Posted by almqdad
WHAT IF I WANT TO SHOW THE LINK TO MORE THAN ONE GROUP

LET SAY GROUP 5,6,7

You can use OR

For example:

PHP Code:

<if condition="($bbuserinfo['usergroupid'] == '5') OR ($bbuserinfo['usergroupid'] == '6') OR ($bbuserinfo['usergroupid'] == '7')">
</if> 

I think that's the simplest code you can do without making a file edit first.

Zowners 01-21-2007 12:20 AM

Awsome Mod
I Love It!

afmarko99 01-21-2007 11:08 PM

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?

optrex 01-22-2007 05:35 AM

Depending on the skin, you may have to modify your header

nureeves 08-08-2007 03:33 PM

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?

optrex 08-08-2007 03:38 PM

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
  • Page Generation 0.01467 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete