The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Is this If statement correct?
<if condition="($show['member']) && ($post[postcount] = 0)">
is it correct? I want to show something "if the member viewing is a member and also if the member has 0 posts" |
#2
|
|||
|
|||
No need for parentheses.
<if condition="$bbuserinfo[userid] != 0"> Is saying "If the userid is not zero (zero is guest) show text" |
#3
|
||||
|
||||
Quote:
Let me rephrase. I want to show a message, If is a member and if postcount is equal to 0 |
#4
|
||||
|
||||
You probably don't need the brackets round each condition, and I would use AND, not &&.
|
#5
|
||||
|
||||
Quote:
<if condition="$show['member'] AND $post[postcount] = 0"> ? |
#6
|
|||
|
|||
two equal signs
<if condition="$show['member'] AND $post[postcount] == 0"> |
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
Where are you actually putting this ?
|
#9
|
||||
|
||||
Quote:
pm sent |
#10
|
||||
|
||||
You need to change $post[postcount] to $bbuserinfo[posts] .
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|