The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
What would the necessary code be that would allow visitors to be "logged in" to vBulletin without actually accessing the forums? For instance, I have my forums located at http://www.greenhybrid.com/discuss but if a member goes straight to http://www.greenhybrid.com/compare , I'd still like them to show up as a "guest" or logged in member in the Who's Online list, etc. They don't have to be prompted to log in, though.
On a side note, is it possible to define additional locations for the Who's Online list instead of having it say "unknown location?" My section at http://www.greenhybrid.com/learn is a vBulletin hack, but the Who's Online list doesn't recognize it and places them at the "unknown location" of the URL of the last image to load (a PHP-generated avatar). I'd like to be able to define this section. Thanks in advance. |
#2
|
|||
|
|||
![]()
you need to include global.php in the php pages you want to track where users are. then take a look at the code in functions_online.php and you need to add the location to case statements. Just copy one of the other cases and modify it.
|
#3
|
|||
|
|||
![]()
Okay, well I'm partially there. I included global.php in certain pages outside of the forum directory, but it doesn't appear to be tracking visitors.
On the flipside, I was able to edit functions_online.php to define the Unknown Location for my article system. Since the mod is just one file, however, I haven't yet figured out how to tell the exact location. I basically just stated that if the visitor is at article.php, they're "Browsing the Learn Section." Now that I know requiring 'global.php' isn't the only requirement, can anyone else please help? |
#4
|
|||
|
|||
![]()
It's now a month later. I've made modifications to the functions_online file for other reasons with success, but I still cannot figure this out. Global.php + adding the location is NOT doing enough.
|
#5
|
|||
|
|||
![]()
It's been months and I'm still unable to find a way to do this. Can anyone please help?
|
#6
|
|||
|
|||
![]()
To make this work you need 2 things:
In the new script you will need: PHP Code:
Then edit functions_online.php, and add a case for your new scriptname. |
#7
|
|||
|
|||
![]()
Thank you thank you thank you!!!!!! Works perfectly. Exactly what I need.
![]() There's also one related thing I'm trying to accomplish, if you don't mind. The system I'm using this for is a a script I coded myself that uses the user table to verify and "log in" members separately from the forums. Since I didn't know the vB code well, I had to make it separate. So, if they log in under this system, it won't be under the forum. This means they will always show up as a visitor in Who's Online. Do you know how to drop vBulletin's user cookie and how to read it? If I can do this, I will be able to better integrate the system. Thanks. Hmm interesting. When I put your code in a test page with nothing else, it works. But, when I put it at the top of my script, it doesn't work. Any idea why? |
#8
|
|||
|
|||
![]()
Your script is stored in a different directory then the test script?
|
#9
|
|||
|
|||
![]()
No. But, both are outside the forums directory. That shouldn't make a difference, though.
The script does connect to a different database, though. Could this be related? |
#10
|
|||
|
|||
![]()
I hate to keep digging this up from the grave, but can anyone please help?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|