![]() |
Extending vBulletin's session management
Anyone out there know of a way to extend vB's session management? I want to use the vB database for other parts of the site.
Is it just a matter of copying all the various include files (globals.php, functions.php, db_mysql.php etc.) to a new location, then changing the urls in those files, and finally including globals.php on the pages I want to protect? Thanks, Antun |
You can just include global.php in your PHP script.
|
Thanks Firefly
I had to create a copy of the global file (& a bunch of others) because of relative url issues. Take care, Antun |
One more thing:
On the vBulletin pages, how do I make it so that the user has to log in for everything? e.g. to browse the forums? On my variation one, I redirected the user to the necessary page, but I had to add that into my global.php script. I don't want to mess around too much with the original files. Take care, Antun |
Quote:
Code:
chdir('/home/users/path/to/your/site'); Code:
if ($bbuserinfo['userid'] == 0) { |
We have a slightly different method for doing things, including our own custom antsglobals file in each page. However, if I try requiring global.php, i get a blank page.
Sooooo my question is, what do I have to add to my antsglobals file to add the functionality that global.php brings in order to include these external pages in who's online? Matthew Yette matt@antsmarching.org |
All times are GMT. The time now is 07:10 PM. |
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:
|