The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Who's online locations to non-forum pages..
I know how to add who's online locations to any page within the forum directory, but I would also like to add them to my main homepage index.php and other non-forum pages.
In online.php, at here: PHP Code:
In example, it will work with this: PHP Code:
So how might I be able to fix this? |
#2
|
||||
|
||||
You need to check $loc, and not $filename, which means you need to put the first bit of code outside (and AFTER) the switch statement.
PHP Code:
|
#3
|
||||
|
||||
I'm still receiving errors, which must mean I'm putting that bit of code you posted above in the wrong spot..
Here is the area in online.php I placed it: PHP Code:
|
#4
|
||||
|
||||
b u m p
u m p |
#5
|
||||
|
||||
Now how would it pick up where they are if on the other page you do not have anything connecting it to the site? so you might need to put some code in the scripts that are non-forum.
|
#6
|
||||
|
||||
Oh, lol, forgot to mention. I'm running my homepage on VBhome lite, and also I've integrated just about the rest of my site with vbulletin, so everypage is referencing to global.php. So all I need now is to figure out what Firefly suggested..
|
#7
|
||||
|
||||
*cough*
*cough* |
#8
|
|||
|
|||
the way i did this with vBindex, was to rename the vBulletins index.php to forum.php. then i edited the index.php call in online.php to say "site home", made a new call for forum.php to say "forum index".
both the forum and site now run out of the same directory. just edit the templates with links to index.php to forum.php and you sould get the effect you want. a little extra work i know but a bit easyer on me in the end. |
#9
|
||||
|
||||
*on verge of death* Firefly...need..more..of..your..help on..post #3 :dead:
|
#10
|
||||
|
||||
Firefly in post#2 are you saying to put this code:
Code:
if ($loc == 'http://www.mysite.com/multimedia.php') { $userinfo['activity'] = 'multimedia'; } ie: Code:
case 'forums/showthread.php': $userinfo[activity] = showthread; break; |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|