View Full Version : Help with an IF in VB
imported_Halo
08-25-2004, 11:03 AM
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
well obviously it isn't the showthreads :P, it is in the navbar template and footer =)
I only asked :rolleyes:
Since it was never answered... There's variations on how to do this, but here's the way I'd do it :)
<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 =)
<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 ;)*
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.