Jigowatt

Install

Please read through this guide carefully, if you experience any issues please contact us via our ThemeForest profile, we’ll try and get back to you the very same day (GMT).

Requirements

Step 1

Check the downloaded package.

Here at Jigowatt, we all use a selection of Macintosh computers and laptops, this script was developed and packaged using one, occasionally Windows doesn’t like this so please check a selection of the files to make sure they’ve got to you in one piece. If not, please find out what to do here.

Backup Backup Backup! Keep a fresh copy of the files somewhere safe before you edit them.

Step 2

Create your MySQL Database, you will need the server address (usually localhost), the database name, database user and password.

File: online.inc.php – Line 3

Replace these details with those of your database and save.
$db = dbconn(‘localhost’,'database_name’,'database_user’,'database_pass’);

File: online.sql

Copy the contents of this file, Paste it into your SQL insertion box within the new database you have made (in phpMyAdmin etc)

Note: If you are limited to the amount of databases you have, you can insert this into an existing database (just make sure the database info is correct above)

Step 3

On completion of Steps 1 & 2 you need to now upload the following files to your root (i.e. www or public_html or httpdocs) directory.

Take Note: If you are aware of any file conflicts do not upload those files, for example, if you already have a online.inc.css file in the root directory you need to rename the new file (make changes to the inluce accordingly) or merge the files together.

online.inc.php

Step 4

File: your_file.php (A test file is recommended)

Insertion within previous pages of your website is extremely quick and simple! Just place the following code at the top of each PHP page you wish to display users online on (make sure it’s inside PHP open ( < ? ) and close ( ? > ) tags).

include_once (“online.inc.php”);
$users = jigowatt_users();

Step 5

File: index.example.php – line N/A

We recommend you view this file to see how to display the variable on your page!

For example, to display the variable simply use this code inside your PHP page
< ?=$users ?>
OR, an alternate way to display the variable (without the spaces in the tags)
< ? echo "< p>< h3>$users< /h3>< /p>“; ?>

Step 6 (Optional)

File: your_stylesheet.css – line N/A

In our Online Demo you will notice that the Users Online value is not only diplayed several times, but in different sizes. You can easily change the style of the variable by creating 1 class in your existing stylesheet.


For example (will make it Red in colour)

.users_online { color: FF0000; }

Feel free to modify accordingly to suit your website using standard CSS.

Finished!

Save and upload changed files to your server. You must upload them in the file structure provided, any questions or for support please view the online FAQ’s or contact chris.balchin@jigowatt.co.uk.

Please don’t post support issues on the scripts comments page it will take us longer to reply to you, we use e-mail for time and support management.