|uCoz Community » uCoz Modules » Statistics » Who's online (online statistics, who has visited the site)|
Message # 1 | 11:15 AM 2008-10-28
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 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$
CSS classes for the code $ONLINE_USERS_LIST$
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-
<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.
Message # 39 | 5:58 PM 2010-07-16
I just installed the Statistics widget, and put it on the sidebar/menu. However, now the Who's Online feature is not working, more like now showing up to work.
I do have it checked on the Common Settings page, and I know that at least I am online, haha. And yet, I know it's supposed to go under the Statistics gadget, right? Any idea why it's not there? D:
Message # 40 | 9:43 PM 2010-07-16
Can I see a link to the website where the problem occurs, please?
Post edited by abasovMike - Friday, 2010-07-16, 9:43 PM
Message # 41 | 11:51 PM 2010-07-17
Well it's all pages, but the site is http://horseislesense.ucoz.com
Message # 42 | 0:11 AM 2010-07-18
Are you sure that the $ONLINE_COUNTER$ or/and $ONLINE_USERS_LIST$ are written somewhere in the code?
If your are using the Builder, enable it, click to customize the Statistics block, switch to the HTML tab and enter this code instead of whatever there is:
Don't forget to save your changes.
Message # 43 | 4:13 AM 2010-08-02
This is me, Sunny has allowed me to switch to this acocunt since my other is not safe to be on...
I do have the Who's Online feature installed'checked, and the thing that says "uCoz, Hits, Hosts" and the various numbers.
Do I have to put that code in on ALL pages and apps (Page Editor, apps, news, etc)?
Message # 45 | 10:36 PM 2010-08-02
Okay, thanks! <3
Added (2010-08-02, 4:06 PM)
Added (2010-08-02, 4:28 PM)
I enabled site builder, edited the Statistics block, added that code instead of what was there (it was just $COUNTER$ if that means anything? o.O).
I tried just pasting $ONLINE_COUNTER$ right next to $COUNTER$ and even on a new line, with a space in between...
If it'd for sure work, I could try and find the $COUNTER$ code and put in the code that Mike gave me, but I don't know where to look for that... Would that work?
but first, before I go through the Customize Design thingamajigger, is there any way I can do on Site Builder, that will for sure work?
Added (2010-08-02, 4:36 PM)
I just copy/pasted $COUNTER$, $ONLINE_COUNTER$ and $ONLINE_USERS_LIST$ with spaces in between each one and it worked!
Thanks again guys!