Shoutbox mini chat installation guide
- Upload a folder called 'wtag' (including all the files within the folder) and the minichat.php file to your main web server directory using an FTP program.
- Run the wTag installation file from your browser (go to http://yoursite.com/wtag/install.php). The script will create a table called 'wtagshoutbox' in your MySQL database. If the installation went well you will see a confirmation message that the table has been created successfully.
- Go to http://yoursite.com/minichat.php, you should see a newly installed shoutbox and a welcome message.
- Important: do not forget to delete the install.php file once you finish installing the chatbox.
How to add the shoutbox code to your existing pages:
-
Open minichat.php file. You will see this piece of code written in PHP at the beginning of the page:
<?php session_start(); $token = md5(uniqid(rand(), true)); $_SESSION['token'] = $token; ?>
Copy this code and paste it at the top of any page you want the shoutbox to appear (before any HTML is started).