We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
  • 10
Members Online Today; Show members who were online within the past 24 hours in the board stats...
Topic Started: Sep 28 2010, 08:41 PM (28,424 Views)
Epsilekt
Member Avatar
Member
[ *  *  *  *  *  * ]
Code Name:
Members Online Today

What the code does and how to use it:
When viewing the board index, or wherever the board stats table appears, a new section called "Users Online Today" will be added. The modification can be customized to allow you to change at what part of the board stats the section is added, the marker image next to the list of users, the title of the section (for example by default it's labeled "Users Online Today"), and the time span to show users.

Preview: Dylanmodification

How to install the code:
Just add the following code to your "above the copyright" section in the "Board Wrappers".

Quote:
 
<script language="JavaScript" src="http://z4.ifrm.com/30060/199/0/p1027838/zmot.js"></script>


To customize the script, add the following code before the code above...

Quote:
 
<script language="JavaScript">
var overallzmotlimit = 86400000;
// The max number of miliseconds that a user can have been active to show up on the list. 86400000 means 24 hours.
// Use the following equation: 1000 * 60 * 60 * 24 * NUMBER_OF_DAYS


var shl = 3;
// Increasing this number by one will force the section to be displayed after the board statistics.
// Decreasing it by one will force the section to be displayed before the currently active users section.


var motcmarkimg = 'http://z4.ifrm.com/static/1/s_users.png';
// Change http://.../s_users.png to link of image you want in left column next to list of members...
// If you do not provide your own image, the image used in your forum's active users icon column will be used.
// If your forum does not show active users, the default ZetaBoard's theme's active users icon will be used.


var motcmarktext = 'Users Online Today';
// Change Users Online Today to whatever text you want to appear in the label...


var donotfixactiveuserslist = true;
// Add this to stop the script from reloading the page the user is on so that when users view the Active Users List people do not show up as "Viewing Members List".
// This is useful for people who have ad-removal and want to save their credits.


var sortusersalpha = true;
// Add this to sort the members shown online today alphabetically instead of sorting them by recent activity.
</script>
Edited by Epsilekt, Nov 5 2010, 11:21 AM.
Offline Profile Quote Post Goto Top
 
Replies:
sun ce
Member
[ * ]
Hoping for some help. Been using this script with no issue for a little while, but suddenly the list of users has started appearing twice in the MOT list (although the count seems correct). Any insight?

Spoiler: click to toggle
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
Viral
[ *  *  *  *  *  * ]
Have you got the code in twice (check your board templates and theme layout)?
Offline Profile Quote Post Goto Top
 
sun ce
Member
[ * ]
Viral
Mar 6 2015, 08:03 AM
Have you got the code in twice (check your board templates and theme layout)?
Annoyingly the code doesn't appear twice but it seems to be getting called twice.
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
Viral
[ *  *  *  *  *  * ]
I noticed you're using Dynamo - it has a Members Online Recently module, have you tried using that instead?
Offline Profile Quote Post Goto Top
 
Doctor L
Member
[ * ]
This code for me hasn't worked for awhile on Chrome or Firefox but it works on Safari mobile.
Offline Profile Quote Post Goto Top
 
RockingRitu
Member Avatar
Member
[ *  * ]
How to change the Pic?
Offline Profile Quote Post Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

RockingRitu
May 12 2015, 08:44 AM
How to change the Pic?
Look for
Code:
 
var motcmarkimg = 'http://z4.ifrm.com/static/1/s_users.png';
in the code.
Offline Profile Quote Post Goto Top
 
RockingRitu
Member Avatar
Member
[ *  * ]
thanks. :D
Offline Profile Quote Post Goto Top
 
Mozz
Member Avatar
" Its not a bug its an undocumented feature "
[ *  *  *  * ]
This code since yesterday gas started to double up as well with the member count as sun ce pointed out .

Posted Image
Offline Profile Quote Post Goto Top
 
-Neo Metallix-
Member Avatar
Metal Overlord
[ *  *  *  *  * ]
This code stopped working in Chrome and FF. Some reason it still works when viewing my forum on my PS4's web browser. :\
Offline Profile Quote Post Goto Top
 
BmoreAgressive
Member
[ * ]
I used this code on my board and it was fine for the first day.. But now 2 Days in after 24 hours .. It disappeared and no members names are showing up on the list at all for who has been online today?
Offline Profile Quote Post Goto Top
 
RedJohn
Member
[ * ]
This isn't working anymore. No users appear on the box.
Offline Profile Quote Post Goto Top
 
Flad
Member
[ * ]
Is there something similar like this and works?
Offline Profile Quote Post Goto Top
 
Skyon Archer
Member Avatar
Member
[ *  *  *  * ]
Flad
Dec 6 2017, 03:26 PM
Is there something similar like this and works?
Yes, Planet Nexus has Members Online Today built into their system. More information: http://forums.planetnexus.net/topic/5077132/1/
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Here's my version: http://support.zathyus.com/topic/5168059/1/
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply
  • Pages:
  • 1
  • 10