GrAfiX
12-05-2001, 10:00 PM
This is an elaboration to the online.php to track users on nonVB pages and show users online...
1. Edit the path to global.php in online1.php
2. include online1.php in your pages
<? include("online1.php"); ?>
This will track all users so now you can find out how many people are on your site... Next hack will be this same hack but will show users logged in and the path to where they are...
On any page that you want to track users on you must either include online1.php or you have to put this at the head of each page
<? require("/path/to/global.php">
changing the path of course...
I've done a lot of hacking to my global.php but this should work right out of the box... If it doesn't leave me a message here and I'll look into it...
The reason I'm posting all these hacks is because people keep asking me how I did that....
DEMO: http://www.thetoybox.net
1. Edit the path to global.php in online1.php
2. include online1.php in your pages
<? include("online1.php"); ?>
This will track all users so now you can find out how many people are on your site... Next hack will be this same hack but will show users logged in and the path to where they are...
On any page that you want to track users on you must either include online1.php or you have to put this at the head of each page
<? require("/path/to/global.php">
changing the path of course...
I've done a lot of hacking to my global.php but this should work right out of the box... If it doesn't leave me a message here and I'll look into it...
The reason I'm posting all these hacks is because people keep asking me how I did that....
DEMO: http://www.thetoybox.net