The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
help with a conditional.
I have the following
HTML Code:
<if condition="$bbuserinfo['usergroup'] == 6"> $vbphrase[posts]: $post[posts] </if> Nothing is displayed for admins. Any help is appreciated. Thanks. |
#2
|
||||
|
||||
HTML Code:
<if condition="$bbuserinfo[usergroupid] == 6"> $vbphrase[posts]: $post[posts] </if> |
#3
|
||||
|
||||
That did it. Thanks.
another quick question. to add another usergroup, id do this? HTML Code:
<if condition="$bbuserinfo[usergroupid] == 6" and "$bbuserinfo[usergroupid] == 7"> $vbphrase[posts]: $post[posts] </if> Thanks again, I'm still getting the hang of this. |
#4
|
||||
|
||||
HTML Code:
<if condition="$bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7"> $vbphrase[posts]: $post[posts] </if> |
#5
|
||||
|
||||
Sweet, thanks again.
|
#6
|
|||
|
|||
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) |
#7
|
||||
|
||||
Quote:
|
#8
|
|||
|
|||
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 |
#9
|
|||
|
|||
Code:
<if condition="$bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7"> $bbuserinfo['fieldX'] </if> 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.. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|