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..
|