The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Conditionals
Im trying to add a button to the thread view postbit controlls next to the edit and quote buttons. Adding the button is easy but Im trying to make it so only the original poster can see the button If i put in the conditional
<if condition="$vbulletin->userinfo['userid'] == $threadinfo['postuserid']"> everyone can see it if i put in the conditional <if condition="$threadinfo['postuserid'] == $bbuserinfo['userid']"> no one can see it shouldnt both of these return the same result? |
#2
|
||||
|
||||
Code:
<if condition="$thread['postuserid'] == $bbuserinfo['userid']"> In the second example, $bbuserinfo does exist, and will not match null, empty, 0, or false. |
#3
|
|||
|
|||
Ok after messing with that for about 6 hours I came to the same conclusion.
So my question is , is there a way to make a button appear in the postbit controls that only the original thread starter can see. --------------- Added [DATE]1219195384[/DATE] at [TIME]1219195384[/TIME] --------------- Thanks for the help i figured it out |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|