The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Add VB login to custom pages in PHP
Ok first off I have looked at this post and found some good answers.
Add VB login to custom pages This however did not answer my question. Here is my layout Main website www.mywebsite.com My forums are located here www.mywebsite.com/forums I want to be able to create pages in my main website directory that allows me to use the "USER" table to authenticate user on my site. If I use the example from the post above.. PHP Code:
PHP Code:
|
#2
|
||||
|
||||
I've got two ideas.
1. Use the code i wrote in the other thread, which you quoted above, and make a new file called login.php within the site directory with the following contents: <?php chdir("./forumdir"); require("./login.php"); chdir("../"); ?> Haven't tested it. i just had the idea. In theory, it should make the login form functional, and log your users in... 2. Use part of the code: chdir("./forumdir"); require("./global.php"); chdir("../"); this will allow you to use vbulletin functions and resources, such as the db class, so you can query the vbulletin database directly: $user = $DB_site->query_first("SELECT * FROM user WHERE ..."); you can work it out from here.. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|