• Page 1 of 1
  • 1
uCoz Community » Archives » Locked » Website Stats: users online, birthdays, new PMs, etc. (a live example)
Website Stats: users online, birthdays, new PMs, etc.
Jek-Hazit
Posts: 12
Reputation: 0

Message # 1 | 12:08 PM
Heres an example on my site. It changes depending on if your online or not.
http://gamecraft.ucoz.org/
Its at right side.




Heres the code itself.
Code
<!-- <bc> -->$ONLINE_COUNTER$<hr>
    <?if($IS_NEW_PM$)?>You have <a href="$PM_URL$">$UNREAD_PM$ PMs</a><br><hr><?endif?>
    Users Online: $ONLINE_USERS_LIST$<br><hr>
    Todays Birthdays: $TODAY_BIRTHDAYS$<br><hr>
    <?if($USER_LOGGED_IN$)?><img src="$USER_AVATAR_URL$" border="0"><br>
    Welcome back $USERNAME$<br><hr><?else?>
    <img src="http://gamecraft.ucoz.org/UserRanks/Guest.png" border="0"><br>
    You are not logged in.<br><a href="$LOGIN_LINK$">Login</a><br>
    <a href="$REGISTER_LINK$">Register</a><hr><?endif?>
    Today is $DATE$<br>
    Time: $TIME$<br><hr>
    You have been registered for: $USER_REG_DAYS$ days
    <!-- </bc> -->


Where do you put this code? Go into first or second container. If you post this into first, it will be on the left. If you post this in second it will be on the right side.

Copy a block going from to . Change the title first. Usually the title is inbetween these tags.
Code
<!-- <bt> --><!--<s5184>--><!--<s5184>-->Title goes here<!--</s>--><!--</s>--><!-- </bt> -->

Replace "Title goes here" with the title you are using.

Now, on the line directly underneath that one, there should be a part that is kinda like this:
Code
<!-- <bc> -->$MODULE$<!-- </bc> -->

Replace all of that with the code supplied above. If you want to change the guest image, chage this link:
Code
http://gamecraft.ucoz.org/UserRanks/Guest.png

Post edited by Jek-Hazit - Monday, 2009-09-07, 12:08 PM
Leekinz
Posts: 36
Reputation: 2

Message # 2 | 1:14 PM
Quote (Jek-Hazit)
<!-- <bc> -->$ONLINE_COUNTER$<hr>
<?if($IS_NEW_PM$)?>You have <a href="$PM_URL$">$UNREAD_PM$ PMs</a><br><hr><?endif?>
Users Online: $ONLINE_USERS_LIST$<br><hr>
Todays Birthdays: $TODAY_BIRTHDAYS$<br><hr>
<?if($USER_LOGGED_IN$)?><img src="$USER_AVATAR_URL$" border="0"><br>
Welcome back $USERNAME$<br><hr><?else?>
<img src="http://gamecraft.ucoz.org/UserRanks/Guest.png" border="0"><br>
You are not logged in.<br><a href="$LOGIN_LINK$">Login</a><br>
<a href="$REGISTER_LINK$">Register</a><hr><?endif?>
Today is $DATE$<br>
Time: $TIME$<br><hr>
You have been registered for: $USER_REG_DAYS$ days
<!-- </bc> -->

Why not just add that code through Builder into a New Block?


There was once a man named Lee. He used to love taking a ***, then he found THIS!
Dartz
Posts: 1931

Message # 3 | 5:59 PM
http://forum.ucoz.com/forum/38-6851-1
[... With uCoz since December 2 2007 ...]
uCoz Community » Archives » Locked » Website Stats: users online, birthdays, new PMs, etc. (a live example)
  • Page 1 of 1
  • 1
Search: