The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Display different text based on onlinestatus trouble?
Hi,
Can somebody tell me what's wrong with this code??? Code:
<if condition="$onlinestatus==0"><div class="smallfont"><font face=verdana,arial,helvetica size="1" color="#FFFFFF"><b>$post[usertitle]</b></font></div></if> <if condition="$onlinestatus==1"><div class="smallfont"><font face=verdana,arial,helvetica size="1" color="#000000"><b>$post[usertitle]</b></font></div></if> <if condition="$onlinestatus==2"><div class="smallfont"><font face=verdana,arial,helvetica size="1" color="#C0C0C0"><b>$post[usertitle]</b></font></div></if> ~006 :ermm: |
#2
|
||||
|
||||
What's wrong with this statement? Thanks. :ermm:
|
#3
|
||||
|
||||
Can text not be used in onlinestatus or something? it worked before on VB2 but this is obviously a lot different in VB3. I wouldn't see why it can't work but for now I just can't seem to code it right. Has anybody else tried this? Any ideas? Thanks.
|
#4
|
|||
|
|||
Maybe you put it in a template that does not have access to a useful instance of that variable.
|
#5
|
||||
|
||||
I put it in my postbit template. I also tried putting it in the onlinestatus template and calling it with $post[onlinestatus] with no luck as well. I will try a few other ideas with it. I still don't know whats wrong though.
|
#6
|
|||
|
|||
Look at the original postbit template. It includes values about onlinestatus that should resolve your question.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|