The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Who's online on non-vb pages request
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 Code:
what can I do to make $onlineusers and $username work on that page? thanks in advance |
#2
|
||||
|
||||
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 |
#3
|
||||
|
||||
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 |
#4
|
||||
|
||||
Use tubedogg's hack and change his file name to online2.php instead of online.php
Amy |
#5
|
||||
|
||||
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 |
#6
|
|||
|
|||
Quote:
Side note: upgrade ASAP because that old a version has a broken Hoover Dam of security holes. |
#7
|
||||
|
||||
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. |
#8
|
||||
|
||||
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 |
#9
|
||||
|
||||
hmm, you have to get the infos you want out of the session table
just count the ammount of users where th location is.... |
#10
|
||||
|
||||
thank you for your input Xenon....sadly I have no idea how to do that.
thank you anyway |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|