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(); } |
#12
|
|||
|
|||
Thanks again Amy, but I think this might be beyond my current abilities. I've been able to accomplish a lot on my site using Dreamweaver to create dynamic pages, restrict access to pages, etc, but I'm not too good at writing php from scratch.
If it's not too much to ask would you be able to provide a sample page that uses your example above with a print statement to verify I'm seeing the userid? I tried for a few hours last night and I just couldn't get it to work. That might give me a good place to start and I might be able to figure how to pass the userid as a session variable to the edit form for their profile. Thanks again, Andrew |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|