uCoz Community » uCoz Modules » Statistics » Who's online (online statistics, who has visited the site)
Who's online
Sunny
Posts: 9296
Reputation: 456

Message # 1 | 11:15 AM
There are codes which serve to display the information "Who’s online", the codes work only if the corresponding option is enabled in "Common Settings" (Admin Bar » Settings » Common Settings).

The codes:
$ONLINE_COUNTER$ – a counter that displays number of visitors online (total/guests/users)
$ONLINE_USERS_LIST$ – a list of users online

The codes may be pasted in any place of a template between the tags < body> and < /body>

Forum settings have an option Consider all site visitors in "Who's online" statistics. With this option enabled forum statistics will show the users that are currently not only on the forum but on the whole site. Otherwise only users that are online on the forum will be counted.

In "Substitution of default phrases" section you can modify such phrases as "Total online" etc.; you can also replace the separator between usernames (", " on default). Each element has its class and ID, so you can add any pictures by means of CSS.

CSS classes for the code $ONLINE_COUNTER$
tOnline (id="onl1") - total
gOnline (id="onl2") - guests
uOnline (id="onl3") - users

CSS classes for the code $ONLINE_USERS_LIST$
/* User Group Marks */
a.groupModer:link,a.groupModer:visited,a.groupModer:hover {color:blue;}
a.groupAdmin:link,a.groupAdmin:visited,a.groupAdmin:hover {color:red;}
a.groupVerify:link,a.groupVerify:visited,a.groupVerify:hover {color:green;}
/* ---------------- */

An example of Statistics block:

Here how it looks:


If you want to replace words by images go to "Substitution of default phrases" and put instead of the words "online/offline" the image tag-

Code
<img src="http://..." >

An URL must be short because the length of the field is limited.

I'm not active on the forum anymore. Please contact other forum staff.
Intense
Posts: 3
Reputation: 0

Message # 46 | 4:45 PM
Can someone tell me how to add a $COUNTER$ like in the picture of the main post to view all the visits of the side in total and perhaps the visits for the day ?
ZTSF
Posts: 24
Reputation: 1

Message # 47 | 5:45 PM
Activate the "Statistics" Module in the Control Panel.
Is that wat you mean??


ZTSF.

Come to ZTSF: www.superzt.ucoz.com
Animorph
Posts: 2856
Reputation: 189

Message # 48 | 7:28 PM
Intense, continue here to discuss about statistics itself and how to add them
http://forum.ucoz.com/forum/20-12055-1

To busy building a passive income online ;)
Natashko
Posts: 3366
Reputation: 171

Message # 49 | 3:10 PM
Intense, first of all, you need Statistics module to be installed in CP->Statistics->Install module. After module installation Hit counter will appear on your website. The code $COUNTER$ is responsible for it. The code
Code
<?if($ONLINE_COUNTER$)?><hr />$ONLINE_COUNTER$$ONLINE_USERS_LIST$<?endif?>
displays number of total online users. You can make it appear in the place you need it on the website by inserting its code
XRTC
Posts: 32
Reputation: 0

Message # 50 | 10:55 AM
Hey everyone.
I've read through all possible posts and threads but still haven't found what I'm looking for.
(I hope I'm not looking in the wrong section)

I'm only interested in displaying the total amount of visitors in website, from the site creation,whether those are registered or not.
My site will only have 2 registered users,myself and my friend.
It will not require registration and it will be publicly viewable to everyone.

So I want it to display the total amount of visitors from the "beginning of time", is this possible?

And another thing.. is there a "flag counter" to display visitors based on location?(detects IP/shows flag). thanks!

Edit: I know I can add the $COUNTRY$ or $COUNTRY_ID$ just want to know if it can display little tiny flags instead of country name smile

I ask cause I've found external sites that support what I want to do, just wanna know if ucoz has their own system.
Post edited by XRTC - Friday, 2013-04-12, 11:14 AM
Sunny
Posts: 9296
Reputation: 456

Message # 51 | 1:10 PM
Quote (XRTC)
So I want it to display the total amount of visitors from the "beginning of time", is this possible?


Install the Statistics module, it will count all visitors/views but will start counting from now. You can also use the informers (Counter for users).

Quote (XRTC)
is there a "flag counter" to display visitors based on location?


Not as a standard feature, but I think it should not be difficult to find a third-party script.

I'm not active on the forum anymore. Please contact other forum staff.
uCoz Community » uCoz Modules » Statistics » Who's online (online statistics, who has visited the site)
Search: