Version: 1.00, by Gary King
Developer Last Online: Jun 2020
Version: 3.0.0
Rating:
Released: 01-09-2004
Last Update: Never
Installs: 64
No support by the author.
PLEASE CLICK ON THE INSTALL BUTTON IF YOU INSTALLED THIS! THANKS!
What does this hack do?
Using this hack, you can show who is currently on your forums from anywhere else on your website! The page, though, must be a PHP page.
If you want to display this information on another webpage by integrating it (which you'll probably want to ), just put
PHP Code:
<?php require_once("online.php"); ?>
or
PHP Code:
<?php
require_once("online_external.php");
?>
depending on the location of the online.php file
THE BELOW IS ONLY IF YOU ARE USING ONLINE.PHP
If you are using online.php, then this line of code MUST be at the top of the page!
If you don't want to show the total users online at the top of the page, though, then remove
PHP Code:
print $show;
and copy that to wherever you want to show the info instead (remember to surround this with PHP tags, such as:
PHP Code:
<?php
print $show;
?>
THE ABOVE IS ONLY IF YOU ARE USING ONLINE.PHP
Features
supports phrases!
option to display either usernames or a total number of registered members instead
only administrators can see users who choose to be invisible
Instructions
Download the attached online.php if you want to show invisible users to administrators, etc., or download online_external.php if you don't want to worry as much about things , and follow these instructions:
Find
PHP Code:
$path = "./vb3/"; // path to your forums folder, normally /forum/
, change the ./vb3/ to whatever the path is to your forums directory
Find
PHP Code:
$showusernames = 0; // 1 to show usernames online, 0 to only show the number of users online
and change $showusernames to 1 if you want to display usernames, instead of the total number of registered members browsing
That's it!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
It worked on my site as well...I added the require_once bit at the very top of my HTML page (even before the <html> tag) then, wherever I wanted to display the online info I just added the print command. Basically the code on your page 'should' look like:
is there a way to add the direct link to where the user is? because it just says on all the pages i added, that the member is viewing the startpage. no matter where they are.
I had to make a number of modifications to get this hack to work on my site (it's not very friendly with other scripts, changing dir, without changing back, not closing the mysql connection, etc... not good coding practices for something that's meant to work with meant other code).
However, after fixing it up, it works fine, and I've installed it
I'm able to get the online_external version working somewhat, but when it try to show usernames online, it always says (none). When i switch it to not show the user name, it shows the correct number of members online. What's wrong?