The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
whats the IF code for this?
to only display something for a couple groups? I want to do something so a certain image only is in certain usergroups posts...
|
#2
|
|||
|
|||
And where do u want to display the image ?
|
#3
|
|||
|
|||
actually... I want it to be like this
for regular members and mods and smods I want it to show thier rep power in thier post... but for the admins I just want it to say SUPER POWER or some shit... na mean |
#4
|
|||
|
|||
Try something like this postbit_legacy (assuming you are using the legacy layout like you see here)
Code:
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div> Code:
<if condition="$show['reputation']"><div> <if condition="$bbuserinfo[usergroupid] == XX"> $vbphrase[reppower]: SUPER POWER </if> <if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div> thats probably not perfect as i didnt test it, but that should be close |
#5
|
|||
|
|||
thanks^...
|
#6
|
|||
|
|||
If that doesnt work, It may need a else in there
Code:
<if condition="$show['reputation']"><div> <if condition="$bbuserinfo[usergroupid] == XX"> $vbphrase[reppower]: SUPER POWER <else> <if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div> </if> |
#7
|
|||
|
|||
how could I make it work for several user groups?
<if condition="$bbuserinfo[usergroupid] == 1,2,3,4,5,7"> didnt work...,,, |
#8
|
|||
|
|||
Replace the IF statement
<if condition="!is_member_of($bbuserinfo, x, y, z) |
#9
|
|||
|
|||
ThankS
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|