![]() |
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? |
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:
|
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:
|
b u m p
u m p |
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.
|
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..
|
*cough*
*cough* |
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. |
*on verge of death* Firefly...need..more..of..your..help on..post #3 :dead:
|
Firefly in post#2 are you saying to put this code:
Code:
if ($loc == 'http://www.mysite.com/multimedia.php') { ie: Code:
case 'forums/showthread.php': |
You need to add it AFTER the switch, not INSIDE.
|
:confused: =falls over=
I have been putting the code outside of the switch statement.. The switch ends right after the default and bracket, right? PHP Code:
PHP Code:
Which is outside and after the switch statement.. So I'm a bit lost :disappointed: |
Try this:
PHP Code:
|
Still no go :(
Very strange indeed. |
I too would like to know the answer to this. However, we already have a custom php file included in all of our pages to include the vB membership, instead of just including global.php. So users are logged in outside of the board, basically. I assume that this means I don't have to include global.php, correct?
And then just go ahead and post the code in online.php as stated above? Matthew Yette matt@antsmarching.org |
I'm going to bump this, but just one last time. This is still an unsolved problem I can't figure out.
|
Have you tried including global.php in the file?
PHP Code:
|
Yup, everypage on my site is requiring global.php, mainly because I have integrated the entire site ;)
The problem is not with locations within my forums directory, it's with those outside of the directory, such as www.mysite.com/multimedia.php Adding this in a regular fashion to online.php does not work, as discussed on the first page of this thread. |
Strange, that method works fine for me.
|
Hi,
NTLDR is right, it worked for me anyways. I managed to integrate files in a new directory, which was also outside the forum location. Just include the global in the external files and then add the locations as usual in the online.php |
Hmmm...
Why dont you get the "Who's Online Admin Locations" hack, and add a new location: Filename: ../mulitmedia.php Description: Viewing the <a href="../multimedia.php?s=">Multimedia</a> page Satan |
Quote:
|
I see...
Satan |
All times are GMT. The time now is 03:51 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|