The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Sitewide use of VB permissions
Had a quick browse round these forums and what I gather is that to use the VB member permissions etc throughout your site you would just have to include external.php into your page. Do you then have to write your own queries to use that or is there a way to access the existing functions?
e.g. How would you check that someone is in the usergroup which is allowed to access a certain page? Or could you allow someone to login from a non forum page? Thanks in advance, Mark |
#2
|
||||
|
||||
all you need is to import global.php, with that file you can use the complete permission system of vb
|
#3
|
|||
|
|||
I tried to import it like so from my file:
Quote:
Quote:
|
#4
|
||||
|
||||
chdir('./../forum/');
require_once('./global.php'); Try that.. |
#5
|
|||
|
|||
I tried this including global.php, and it works to get the cookie data of the user, but it doesn't seem to be updating the session to keep users logged in when they're on non-vb pages.... so when they go back to the forum, if its been longer than the cookie timeout, they're no longer logged into the forums.... any ideas?
|
#6
|
||||
|
||||
That's expected behaviour if they don't have userid/password cookies.
There is no way around this, except increasing cookie timeout |
#7
|
|||
|
|||
they would have userid and password cookies wouldn't they? Well, not individual cookies but doesn't the vb cookie store the userid and the password? theres no way to update the cookie to keep them 'active'? even if it's a code snippet or something that I need to throw into my non-vb pages, i'd be glad to do it if I could figure out where in VB it updates the cookie to keep the user active
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|