Admin demo

You can view an admin demo here - login with the password "default"

NOTE: Any changes made in the demo won't be saved!

PHP implementation

This page guides you through the process of adding the online counts to your PHP files.

Step #1

Include the following PHP in the file:

<?php
include('online.class.php');
$usersonline = new usersonline;
$usersonline->track();
?>

NOTE: Be sure to point to the correct location of online.class.php

Step #2

Use $usersonline->count and $usersonline->record to output the current users online and record users online, for example:

<p>There are currently <?php echo($usersonline->count);  ?> users online. The most users online ever was <?php echo($usersonline->record);  ?></p>

Javascript implementation

Default

The below example outputs the current users online and the total users online record using and javascript widget and the default template - which can be edited in the admin panel.

Code:

<script type="text/javascript" src="js.php"></script>

Override

The below example shows how you can easily override the default template to suit output to your pages

Code:

<script type="text/javascript" src="js.php?override=Most%20online:%20%2$d%20Online%20now:%20%1$d"></script>