![]() |
Any conditionals experts out there? I need assistance...
I'd like to display information at the very top of my forum - different for guests, registered members and supporting members. Am I on the right track with the code I've typed below? It doesn't work for me so would somebody mind helping me out?
Thanks in advance... HTML Code:
<if condition="$bbuserinfo['userid'] == 1"> I'm in my own usergroup and I get "guest". Any help would be appreciated... |
Try
Code:
<if condition="$show[registerbutton]"> |
Thank you.. Well.. I'm actually trying to get this information to display at the very top of the page.. At the very beginning of the header.. Would anyone happen to know the trick for that?
Thank you... |
Quote:
|
Code:
<if condition="!$bbuserinfo['userid']"> |
Thank you.. Is it supposed to say "userid" with the actual usergroup "number" in there somewhere? Like 'userid=1'?
|
For different user groups, the easiest method is ;
HTML Code:
<if condition="$bbuserinfo['usergroupid'] == 1"> |
Thank you.. That's exactly what I needed. :)
Okay. Just one more request... If I want to give the same message to several usergroups, would it be done like this?: <if condition="$bbuserinfo['usergroupid'] == 1,2,3,4,5"> <p>Message here</p> </if> |
Quote:
Code:
<if condition="is_member_of($bbuserinfo[usergroupid], array(1,2,3,4,5))"> |
Quote:
|
All times are GMT. The time now is 03:50 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:
|