The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Question about if statement
I'm trying to put something together that is only shown to the person viewing the thread.
So, for example, if a person is viewing their postbit and they have one of the profile fields empty a message will appear to them saying you have a profile field empty. How would I do that? Code:
<vb:if condition="What goes here?">You have a profile field empty...</vb:if> |
#2
|
||||
|
||||
<vb:if condition="$post[userid] == $bbuserinfo[userid]">stuff</vb:if>
|
#3
|
|||
|
|||
OK. I figured it out...in case anyone else wanted to know.
This is what goes in the red. Code:
$bbuserinfo[userid] == $post['userid'] --------------- Added [DATE]1289360242[/DATE] at [TIME]1289360242[/TIME] --------------- Quote:
Thanks lynne. I presume either of these ways would work. It's just flipped. |
#4
|
||||
|
||||
Yeah, either will work, the order in this condition doesn't matter.
|
#5
|
||||
|
||||
am guessing this is a vb4.x why is it posted in the 3.8.x?
|
#6
|
||||
|
||||
Um, uh.... moved!
|
#7
|
||||
|
||||
lol sorry..
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|