Log in

View Full Version : Online Status Help!


ThePimp
04-19-2006, 05:29 PM
I've setup a 2 custom fields where users can put in URLs to "Online" and "Offline" images to be displayed in the MEMBERINFO template.

My problem is that I can't seem to get the conditionals right when checking $userinfo[onlinestatus].

Can someone please help me with this?

My profile fields are field15 and field16 (Online / Offline) respectively. I'm just going to display text for "Invisible".

Here's my current code:

<if condition="$userinfo[field15]"><if condition="$userinfo[onlinestatus] == 0"><img src="$userinfo[field15]"></if></if>
<if condition="$userinfo[field16]"><if condition="$userinfo[onlinestatus] == 1"><img src="$userinfo[field16]"></if></if>
<if condition="$userinfo[field15] =="""><if condition="$userinfo[onlinestatus] == 0">OFFLINE</if></if>
<if condition="$userinfo[field16] =="""><if condition="$userinfo[onlinestatus] == 1">ONLINE</if></if>


All it currently does is show everyone as "OFFLINE", except for people who have field15 or field16 filled in.

Grrr!

Nevermind, I got it. :)