The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
need quick small conditional help
I currentley use something like this in my postbit:
<if condition="$bbuserinfo[userid]"> customfields <else /> Contact info not avilable to non subscribers. </if> Is there anyway i can add to this so that if the post is made by an administrator, even a visitor with no user id could still see the fields? maybe by using a conditional that specifys either a few admins userid#'s or just plain if the post was made by an admin? need quick, please help |
#2
|
||||
|
||||
you could use <if condition="$post[usergroupid] == 6">
</if> |
#3
|
||||
|
||||
WORKS! here is what i did:
<if condition="$bbuserinfo[userid]"> customfields <else /> <if condition="$post[usergroupid] == 6"> customfields <else /> Contact info not avilable to non subscribers. </if> </if> |
#4
|
||||
|
||||
quick question. If i use this conditional in the postbit for the guest usergroup, it does not work.
<if condition="$post[usergroupid] == 1"> using "1" for the unregistered/not logged in group. how would I make this apply for guest? your response is appreciated |
#5
|
||||
|
||||
use
$post[userid] == 0 |
#6
|
|||
|
|||
<font size="2">Edit.</font>
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|