PDA

View Full Version : whois online in non-vB pages by showing the page title


Ruth
08-29-2001, 07:11 PM
could someone add some code to who is online in 2.0.3, so that when you include global.php in non vb pages it automatically display the user in whois online list, if the user on that page.

it works by capturing the title of your page, and show it in the whois online list.

thanks

Admin
08-29-2001, 07:21 PM
Correction:
It doesn't "capture" the title of the page.
It gets the filename, and then uses the text specified for that filename (the text is set in online.php).

Ruth
08-29-2001, 07:27 PM
FireFly, thats why i'm asking for a hack to get the title :rolleyes:

and what if i have 10 files named index.php, how can the script differentiate where the user is?

thanks

Admin
08-29-2001, 07:38 PM
vBulletin removes from the url everything from / to the left, and from ? to the right, so I don't know how to do this.

Freddie Bingham
08-29-2001, 07:42 PM
The 2.0.4/2.1 version allows you do this.

Ruth
08-29-2001, 07:46 PM
great news

cheers :)

Admin
08-30-2001, 04:49 AM
Ohh goodie. :D

Ruth
11-04-2001, 07:22 PM
Originally posted by freddie
The 2.0.4/2.1 version allows you do this.

Freddie, is this function present now in 2.2?

Admin
11-05-2001, 11:09 AM
Yup. :)