The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello -
I've been trying to learn how to use templates outside the forum directory by duplicating the online.php page, and putting it a level up.
All links and data are working correctly except the location link, which refuses to add "forum" to the path. This comes from the $onlinebits which is in the copy of the template I made, and I've tried a number of ways to point to a level down to the forum directory, but no luck. Interestingly enough, when I hover over a user's location, the alt-text correctly shows the correct information. THis is probably a very simple fix, but I've tried and errored a fix for too long. Any ideas? Thanks, dc |
#2
|
||||
|
||||
![]()
My guess would be a plugin the runs on an "online" hook that uses THIS_SCRIPT to see if its being run from the external file and if so, modify the variable holding the path to manually add /forum/ to it...
That is if i understand what you are tying to do... |
#3
|
|||
|
|||
![]()
In a nutshell, I'm just trying to get a copy of the online.php file to work above the forum directory. Is that how you understood it?
|
#4
|
||||
|
||||
![]()
Basically, but I guess since it's it's own file you don't need a plugin you could just edit the code directly.
|
#5
|
|||
|
|||
![]()
I've tried everything, but can't find what to change or where to change it. What really drives me nuts is that every other link on the page works.
Do you know what to do to make this work as it should? |
#6
|
||||
|
||||
![]()
Looking more closely this is being controlled by the template: whosonlinebit and I believe the location and associated link is stored in the variable: $userinfo[where]
In your custom php page I think you need code to read in the data in $userinfo[where] and alter it to add /forums/ to the link. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|