View Full Version : Who's online on non-vb pages request
drives fast
03-17-2003, 03:04 AM
I have found all of the threads touching on this subject but maybe I am having a brain fart or something I cannot understand them.
Well...maybe it is because my non-vb pages I want this to work on are located inside my forum directory and I cannot upload another online.php file since there is already one in there.
say I have a page that looks like this:
<?php
error_reporting(7);
$templatesused='guides';
require('./global.php');
if ($bbuserinfo[userid]==0) {
show_nopermission();
}
$bbusername = $bbuserinfo[username];
eval("dooutput(\"".gettemplate('guides')."\");");
?>
and it uses a template as shown above
what can I do to make $onlineusers and $username work on that page?
thanks in advance
drives fast
03-17-2003, 07:27 PM
I forgot to mention that I am using v2.2.5 and I do understand that this has been done but in different capacity.
thanks in advance
Xenon
03-17-2003, 07:34 PM
instead of $username use $bbuserinfo[username] in the template, that will work ;)
to use the onlineusers, just copy the part of index.php which creates it
amykhar
03-17-2003, 07:34 PM
Use tubedogg's hack and change his file name to online2.php instead of online.php
Amy
drives fast
03-18-2003, 12:52 AM
Xenon,
thank you for the tip on the $username
as for the other thing.....I really meant $browsers rather than $onlineusers (I think) because I only want it to display the members that are on the page at the time.
I looked in index.php and found code starting with this:
"// Users browsing each forum"
and ended with one of these: }
but it refers to the "inforum" colum of the user table......is that going to work?
The reason I ask is that I tried adding the code I found in index.php and put $browsers in the template but nothing showed.
I am a bit lost on this.
thanks for your help
filburt1
03-18-2003, 12:54 AM
Today at 04:27 PM drives fast said this in Post #2 (https://vborg.vbsupport.ru/showthread.php?postid=368234#post368234)
I forgot to mention that I am using v2.2.5 and I do understand that this has been done but in different capacity.
thanks in advance
Side note: upgrade ASAP because that old a version has a broken Hoover Dam of security holes.
drives fast
03-18-2003, 01:08 AM
I changed the php files to a newer version without upgrading (hard to explain how I did it)...I have so many hacks installed....I loathe the thought of upgrading.
In case you visited the site....the style currently used is not the one I am working on....I have a style in the works that is leaps and bounds ahead of the current one.
I just can't imagine trying to upgrade now.
drives fast
03-18-2003, 01:32 AM
amykhar,
that hack is not what I am looking for....I am looking to show who is on the page at the time...not who is on the whole site
Xenon
03-18-2003, 10:36 AM
hmm, you have to get the infos you want out of the session table
just count the ammount of users where th location is....
drives fast
03-18-2003, 08:31 PM
thank you for your input Xenon....sadly I have no idea how to do that.
thank you anyway
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.