The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
hi,
i want to use the logininformations like username and user_id on another page, but i dont want to include global.php there to save performance, is this possible? Does anyone have a workaround to get the userinfo? Thank you, Yours David |
#2
|
||||
|
||||
![]()
See how vBulletin gets the info in fetch_userinfo(). By the way, you would still need to verify the user is logged in first though...
|
#3
|
|||
|
|||
![]()
there is no workaround.
the information you require is part of the "session" that is called directly from the API of vBulletin, and the actual structure require that the whole set of classes contained in global.php, init.php and functions.php is called. you could rewrite part of it and make a minimal class call, but it would require a lot of manipulations of the actual classes. btw, hello David! |
#4
|
|||
|
|||
![]()
I know this is an old thread, but I'm having a similar problem. My vbulletin forum is installed on domain.com/forum but I wish to extend the session over the entire website. I extended it on the main domain (domain.com) by using a global $vbulletin and everything works fine. However, I have a number of sub directories with mini sites , each of them a wordpress install and I can't make it work the session sharing. I also use the global $vbulletin on domain.com/site1 or domain.com/site2 and I cannot see the user when logged in. Any idea how I can do it without requiering global.php? Is is a cookie matter? 10x.
|
#5
|
|||
|
|||
![]()
Resolved. I included global.php as first line in my code and everything works fine.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|