The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Who's Online Assistance
I integrated the Who's Online to generate the listing across the entire site and not just the forums using the require global.php line.
My question is, where do I start to make the changes so those viewing pages outside of the forum are not Unknown Location but shows the location? In online.php I find: Code:
case 'online': $userinfo[where] = "Viewing <a href='online.php?s=$session[sessionhash]'>Who's Online</a>"; break; Thanks, Syl... |
#2
|
||||
|
||||
Actually, it only shows Unknown Location for administrators, but regular members just see <forum_name> Index
Find PHP Code:
You have to add a new filename there, and also at the location you posted. |
#3
|
|||
|
|||
Ok. The "case" confused me because I thought this was a variable of some sort, already pre-defined elsewhere and I couldn't understand how it was working.
I've spent so long reading other threads about getting the Who's Online to work across the entire site, tried FireFly's Who's Online Admin hack...nothing was working. Got a fix for subdirectories? yoursite.com/sub_dir/filename.shtml does not work via the online.php. Files within the forum and root of the site work fine, anything in another directory do not. Now I'm really stumped. I am calling in the global.php as I am able to see that I'm listed in the Who's Online except whenever I am on a page that is within a sub-directory from the root of the site, it lists me as being at the Main Index. I've tried [code]case = '/directory/filename'[code] and nothing. Syl... |
#4
|
||||
|
||||
You first assign the variable value according to visited pages file name. See the lines around 580. Eg.
PHP Code:
PHP Code:
|
#5
|
|||
|
|||
Alright, now it works! I had the second part that both you and Gary W. mentioned but I didn't have the first part in your post Logican.
Thanks for the help, working as it should and with sub-directories. Syl... |
#6
|
||||
|
||||
Hey, I already had that part in my post as well
|
#7
|
||||
|
||||
hi there! wonder if ur successful in putting the scripts to work in your page. if so, can u share?
regards, afterglow |
#8
|
|||
|
|||
Well all I did was use the Who's Online on Non-VB Pages hack that is found in the database. I don't have the link handy but you can do a search for it. Search for ONLINE and it's on the 1st or 2nd page.
Since the ./global.php function is already required for the Who's Online to display on all your non-vb pages, all you'll need to do is include it into those non-vb pages. Syl... |
#9
|
||||
|
||||
Thanks. I'll do the search. Anyway, I can't find hacks that's made to work under vb 3.0 beta5 . most of the hacks available are made to work under 2.3 and below.
I just purchased ver 3 and found out there's not much hack available for this version. Amori |
#10
|
|||
|
|||
I'm sure there will be but the question still remains. Will the authors of the more popular hacks for 2.3.0 and below rewrite their code for VB 3? If not, I don't know how many people will want to switch over and possibly miss out on some of the better hacks currently available.
Only time will tell. Syl... |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|