vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Help with an IF in VB (https://vborg.vbsupport.ru/showthread.php?t=89699)

imported_Halo 08-25-2004 11:03 AM

Help with an IF in VB
 
I need the if statement for vB that is the usergroupid , i have tried $bbuserinfo['usergroupid'] but no luck.. I also tried many more, if any body knows it off the top of there heads it is greatly appreciated

Beermonster 08-25-2004 12:25 PM

What template are you wanting to use it in as I think it makes a difference

imported_Halo 08-25-2004 01:53 PM

well obviously it isn't the showthreads :P, it is in the navbar template and footer =)

Beermonster 08-25-2004 02:05 PM

Quote:

Originally Posted by Halo
well obviously it isn't the showthreads :P, it is in the navbar template and footer =)

I only asked :rolleyes:

defi 08-25-2004 07:31 PM

Since it was never answered... There's variations on how to do this, but here's the way I'd do it :)

Code:

<if condition="$bbuserinfo['usergroupid'] == 6"><! -- Conditional content begin -->

<! -- / End Conditional Content -->
</if>

What this does is call the usergroupid "6" which is the default vb3 admin group. So, only admins will see that. Replace the div stuff with whatever.

imported_Halo 08-25-2004 09:28 PM

My code was already that =)

Code:

<if condition="$bbuserinfo['usergroupid'] == 9">
</else>
<center>
<br><font size="1">
Don't like ads? <a href="subscriptions.php?">Become a Premium Member!</a></font>
</center><br />
</if>

but still the problem still lays -.- and yes the usergroupid is correct. i still havn't tried any != because i don't know the function of what vb if is



*EDIT: Nvm changed code to != instead of == and you can fill in the request, thx for the help guys! You led me to the answer ;)*


All times are GMT. The time now is 07:08 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.00989 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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