The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
||||
|
||||
![]()
You can just include global.php in your PHP script.
|
#3
|
|||
|
|||
![]()
Thanks Firefly
I had to create a copy of the global file (& a bunch of others) because of relative url issues. Take care, Antun |
#4
|
|||
|
|||
![]()
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 |
#5
|
||||
|
||||
![]() Quote:
Code:
chdir('/home/users/path/to/your/site'); require('./global.php'); Code:
if ($bbuserinfo['userid'] == 0) { show_nopermission(); } |
#6
|
|||
|
|||
![]()
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 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|