PDA

View Full Version : Display different text based on onlinestatus trouble?


007
04-24-2004, 06:14 PM
Hi,

Can somebody tell me what's wrong with this 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>

For some reason every user shows up the same color.. What am I doing wrong? Thanks.

~006 :ermm:

007
04-25-2004, 07:07 PM
What's wrong with this statement? Thanks. :ermm:

007
04-27-2004, 01:19 PM
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.

filburt1
04-27-2004, 01:34 PM
Maybe you put it in a template that does not have access to a useful instance of that variable.

007
04-27-2004, 06:42 PM
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.

filburt1
04-27-2004, 06:53 PM
Look at the original postbit template. It includes values about onlinestatus that should resolve your question.