The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]()
If you add the vbulletin userid to the user table, it's a simple matter to check to see the userid of the user on the page. You just check for $vbulletin->userinfo[userid]
Once you know that, you can do several things. You can check to see if that userid is listed in your custom database. If it isn't, show the no permission page. If it is, send them to an edit form for their profile. You don't necessarily have to use a login script on your page. You could do this: Code:
require_once('./global.php'); $userid = $vbulletin->userinfo[userid]; if(!$userid) { print_no_permission(); } else { // query the custom database to see if userid is in there // if it is, show your edit form // if it's not, throw the user out. print_no_permission(); } |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|