The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Another application using vBulletin registration and user modules. How do I do it?
I have a situation that I've not seen addressed elsewhere. Currently, my vBulletin application is open to all, but when a user registers, I validate him against a list of airline pilots from one specific airline and assign them to a custom usergroup. Once they are validated and assigned to this custom usergroup, they have access to the airline specific forums.
Now, I am writing severals applications in php/mysql that I would like to be accessible only by these previously validated members in this custom usergroup. As I see it, the easiest way to do this would be to hook into the vBulletin user database. There are several requirements for the system
Thanks. Alan Pollenz |
#2
|
|||
|
|||
Well the basics for integrating with vB are very simple, just include the following line in your script:
PHP Code:
When your script is located outside the vB homedirectory, you will have to chdir to the forumhome dir before calling global.php, and depending on your script chdir back afterwards. This should get you started. If you have any more specific questions, feel free to ask. |
#3
|
|||
|
|||
You might also look at vbAdvanced cmps if you want to make your own custom pages, it could be an easy way to do it.
Regards, Matt |
#4
|
|||
|
|||
Marco,
I think I can make due without actually hooking into the forum code at all. I can simply fork to the current registration process from the new application to register new users and use my current process to validate users for access. What I will be doing is checking for the existance of the forum cookie for the "Remember me" feature as well as checking that the user actually exists in the database, the password entered matches the password in the database, and the usergroup access is appropriate. The only problem I see is that the forum cookie for pdpbbuserid, as an example, has a host of forums.apapdp.org, and I'm not sure I'll be able to read this from within the members area, which will probably be members.apapdp.org. Do you either:
Alan Pollenz Quote:
|
#5
|
|||
|
|||
You can set the cooki domain in your vB settings. Note that this could be very troublesome to find the correct setting. Not a real cookie monster (ehh Expert) myself.
|
#6
|
|||
|
|||
Thanks! That accomplished exactly what I wanted to accomplish.
You da man!! Alan Pollenz |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|