The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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"> <p>guest</p> <else /> <if condition="$bbuserinfo['userid'] == 2"> <p>registered</p> <else /> <p>not guest or registered</p> </if> </if> I'm in my own usergroup and I get "guest". Any help would be appreciated... |
#2
|
|||
|
|||
![]()
Try
Code:
<if condition="$show[registerbutton]"> <p>Guest</p> <else /> <if condition="$bbuserinfo['usergroupid'] == 2"> <p>registered</p> <else /> <p>not guest or registered</p> </if> </if> |
#3
|
|||
|
|||
![]()
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... |
#4
|
||||
|
||||
![]() Quote:
|
#5
|
|||
|
|||
![]() Code:
<if condition="!$bbuserinfo['userid']"> <p>guest</p> <else /> <p>registered</p> </if> |
#6
|
|||
|
|||
![]()
Thank you.. Is it supposed to say "userid" with the actual usergroup "number" in there somewhere? Like 'userid=1'?
|
#7
|
||||
|
||||
![]()
For different user groups, the easiest method is ;
HTML Code:
<if condition="$bbuserinfo['usergroupid'] == 1"> <p>Group 1 message (Guests)</p> </if> <if condition="$bbuserinfo['usergroupid'] == 2"> <p>Group 2 message (Normal registered users)</p> </if> <if condition="$bbuserinfo['usergroupid'] == 9"> <p>Group 9 message</p> </if> |
#8
|
|||
|
|||
![]()
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> |
#9
|
||||
|
||||
![]() Quote:
Code:
<if condition="is_member_of($bbuserinfo[usergroupid], array(1,2,3,4,5))"> <p>Message here</p> </if> |
#10
|
|||
|
|||
![]() Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|