vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   show special nav bar to certin groups (https://vborg.vbsupport.ru/showthread.php?t=71970)

djjeffa 11-20-2004 07:51 PM

show special nav bar to certin groups
 
I have special templates that i want to ad to the nave bar but i only want certin groups to see them. can this be done? I have no problem adding a second nav bar to the site.

Zachery 11-20-2004 08:23 PM

<if condition="$bbuserinfo[usergroupid] == X"> $templatevar </if>

djjeffa 11-20-2004 09:06 PM

Quote:

Originally Posted by Zachery
<if condition="$bbuserinfo[usergroupid] == X"> $templatevar </if>

ok evven though im starting to get the hang of hacking please give me alittle more info would the x be where the group id# goes and would i add a , after each group also the template is radio.php so where would i put that or how would i set it up I want a link to only show for certin groups and when they click it would take them to www.djjeffa.com/vb/radio.php or is there a way i could just grant acces to this page for certin groups so ill just add it to the nav bar and everone will see but only some could acces?

djjeffa 11-25-2004 03:43 PM

Quote:

Originally Posted by djjeffa
www.djjeffa.com/vb/radio.php is there a way i could just grant acces to this page for certin groups so ill just add it to the nav bar and everone will see but only some could acces?

bump?

Andreas 11-25-2004 03:53 PM

X must be replace with the usergroupid.

If you want to check for several groups

HTML Code:

<if condition="is_member_of($bbuserinfo, x) or is_member_of($bbuserinfo, y) or is_member_of($bbuserinfo, z)">
your stuff here
</if>


You can also specify which groups are allowed to access radio.php (put this right after require global):

PHP Code:

if (!is_member_of($bbuserinfox) and !is_member_of($bbuserinfoy) and !is_member_of($bbuserinfoz)) {
  
print_no_permission();




All times are GMT. The time now is 07:04 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
  • Page Generation 0.01161 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete