View Full Version : help with a conditional.
neocorteqz
05-26-2004, 11:17 AM
I have the following
<if condition="$bbuserinfo['usergroup'] == 6">
$vbphrase[posts]: $post[posts]
</if>
I'm using that in postbit and postbit_legacy.
Nothing is displayed for admins.
Any help is appreciated. :)
Thanks.
sabret00the
05-26-2004, 11:23 AM
<if condition="$bbuserinfo[usergroupid] == 6">
$vbphrase[posts]: $post[posts]
</if>
that should work
neocorteqz
05-26-2004, 11:37 AM
That did it. Thanks.:)
another quick question.
to add another usergroup, id do this?
<if condition="$bbuserinfo[usergroupid] == 6" and "$bbuserinfo[usergroupid] == 7">
$vbphrase[posts]: $post[posts]
</if>
??
Thanks again, I'm still getting the hang of this.
sabret00the
05-26-2004, 12:01 PM
<if condition="$bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7">
$vbphrase[posts]: $post[posts]
</if>
should fix it
neocorteqz
05-26-2004, 12:09 PM
Sweet, thanks again.
Wifey
01-17-2005, 03:20 PM
Okay so you're trying to hide it from admins posts?
I'm trying to get a profile field that only admins/mods can edit and it shows up in only their postbits. Would I use this to do that? (Thanks neocorteqz for linking me here)
neocorteqz
01-17-2005, 03:57 PM
Okay so you're trying to hide it from admins posts?
I'm trying to get a profile field that only admins/mods can edit and it shows up in only their postbits. Would I use this to do that? (Thanks neocorteqz for linking me here) trying to hide it from normal members. What i was trying to accomplish was making it so that admins and other usergroups i defined would be able to view post counts, and any usergroup not in the conditional would not be able to see it.
Wifey
01-22-2005, 05:27 PM
OO okay so that's close to what I want to do.
What I'm trying to do is get a profile field that only mods and admins can edit and see. Maybe I'll poke around vB2 forum and see if I can find something close and mod it :)
cbr929rrerion
01-30-2006, 04:20 PM
<if condition="$bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7">
$bbuserinfo['fieldX']
</if>
So would this work if I wanted to restrict a profile field to admin, reg users and mod ?
I have a profile field that allows you to upload a video to your profile, I dont want non-member to be able to view it.
it would be ok to replace it with an image or something.. any help would be appreciated..
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.