The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm creating a pseudo-marketplace outside of vbulletin and I'm running into a snag where I think many people do and I can't seem to find the solution I'm after.
I really need to be able to know if a user is logged into vbulletin and if they are, get their messages information, (userid, # of new/old messages etc.) and other things like the popup notification when they get a new message (although that's trivial at this point). Any help would be much appreciated. I'm really just looking to know what vbulletin files/functions/classes I need to be using/including and any tips you might have the subject. |
#2
|
||||
|
||||
![]()
There is a wealth of information on these forums and in the articles section covering this. Try searching for some obvious keywords.
Not being a smartass, just reminding you that "Search" is your friend. ![]() -- hugh |
#3
|
|||
|
|||
![]()
I've searched and browsed quite a bit but I'm either not using the right keywords or they don't exist. I wouldn't have posted the question before I looked for the answer myself.
That said, the only in depth article I found involved doing this at the apache level which is not an appropriate solution for my application. Again; any help would be much appreciated. |
#4
|
||||
|
||||
![]()
Include vBulletin's global.php. That will give you the essential functions including if the user is logged in or not.
|
#5
|
|||
|
|||
![]() Quote:
I apologize for the ignorance, but surely there must be hundreds of people who have done this and have documented it somewhere? |
#6
|
||||
|
||||
![]()
It has, and most times, the solution was posted by me
![]() PHP Code:
|
#7
|
|||
|
|||
![]()
Ahh, thank you.
Now, about the no http referrer/not logged in issues. Got anything for those? ![]() UPDATE: Your code must have been written on the fly ![]() PHP Code:
|
#8
|
||||
|
||||
![]()
Yes, sorry, I typed the code out, it would've taken longer for me to copy and paste
![]() PHP Code:
|
#9
|
|||
|
|||
![]()
Cheers, but....
The issue isn't that the class is empty, it's that somewhere throughout the process in global.php. View this page to see what I mean: http://www.myspacepros.com/_test.php |
#10
|
||||
|
||||
![]()
You might need to set the Cookie Domain/Path properly for it to recognise logged in users.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|