• Page 1 of 1
  • 1
Help with $ONLINE_USERS_LIST$ code
Bio
Posts: 3
Reputation: 0

Message # 1 | 2:47 PM
So I'm using the $ONLINE_USERS_LIST$ code to display who's online with this code

<!-- <block4> -->
<table border="0" cellpadding="0" cellspacing="0" style="border:1px solid #3C3C3C;margin-bottom:2px;" width="180">
<tr><td height="23" style="background:url('/.s/t/984/5.gif') #252525;color:#FFCA42;padding-left:28px;font-size:10px;"><b><!-- <bt> --><!--<s5351>-->Who's online<!--</s>--><!-- </bt> --></b></td></tr>
<tr><td style="background:#131313;padding:5px;text-align:center"><!-- <bc> -->$ONLINE_USERS_LIST$<!-- </bc> --></td></tr>
<tr><td><img src="/.s/t/984/6.gif" border="0"></td></tr>
</table>
<!-- </block4> -->

But when there are NO users online the table still appears so I wanted to know if there is a way to combine it with the <?if($code$)?> code to remove the table when there are ZERO users online. Is this possible? Excuse me I'm kind of a newb at html and ucoz just really starting to get the hang of it.

Scubs
Posts: 18
Reputation: 2

Message # 2 | 3:36 PM
i don't think this is even possible u can hide it for members , mabey for guests , but whats the point u will be visiting your website and if u are on it the online user list will appear if there's a code to make it dissappear
kostova
Posts: 97
Reputation: 9

Message # 3 | 11:07 PM
It actually is possible and is quite simple. The point is to inform people who's online. If no one's online, you inform any guests or other members that no one else is on at the moment.
I think you get the picture.

<!-- <block4> -->
<table border="0" cellpadding="0" cellspacing="0" style="border:1px solid #3C3C3C;margin-bottom:2px;" width="180">
<tr><td height="23" style="background:url('/.s/t/984/5.gif') #252525;color:#FFCA42;padding-left:28px;font-size:10px;"><b><!-- <bt> --><!--<s5351>-->Who's online<!--</s>--><!-- </bt> --></b></td></tr>
<tr><td style="background:#131313;padding:5px;text-align:center"><!-- <bc> --><?if($ONLINE_USER_LIST$)?>$ONLINE_USERS_LIST$<?else?>No one is online at the moment<?endif?><!-- </bc> --></td></tr>
<tr><td><img src="/.s/t/984/6.gif" border="0"></td></tr>
</table>
<!-- </block4> -->

Sanjay_149
Posts: 212
Reputation: 5

Message # 4 | 4:50 AM
Scubs, Don't reply if u don't know UCOZ properly.
Unlike computers, no human brain has ever said:" Hard drive full."
Bio
Posts: 3
Reputation: 0

Message # 5 | 7:15 AM
Thanks kostova that's a great solution!

Added (2010-09-16, 1:15 Am)
---------------------------------------------
Take note that there is a missing "s" in the word ($ONLINE_USER_LIST$) instead it should be ($ONLINE_USERS_LIST$)

Post edited by Bio - Thursday, 2010-09-16, 7:16 AM
kostova
Posts: 97
Reputation: 9

Message # 6 | 10:41 AM
My mistake. Wrote that extemporaneously.
  • Page 1 of 1
  • 1
Search: