The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to use vBulletin user database with external PHP scripts?
I would like to use the vBulletin user database with my external PHP scripts. How would I do this?
This is just an example: Code:
<?php include "vBulletin user file(s).php"; if($_SESSION['user_level'] > 0){ echo "Welcome ". $_SESSION['username'] . " , you have logged in"; } else { echo "Please log in (link to vBulletin login page)"; } ?> |
#2
|
||||
|
||||
PHP Code:
|
#3
|
|||
|
|||
Thanks, this almost work.
Now when people get the vBulletin login page, the image links is broken, and when I enter my user info and press Log In, I'm refered to the wrong page "login.php" (404 Not found) instead of "forums/login.php". This is the code I use: PHP Code:
|
#4
|
|||
|
|||
In what directory is this script located?
And you will probably need to either chaneg back to the directory you scripts are located in after the include of global.php, or qualify the path to your own scripts. |
#5
|
|||
|
|||
Quote:
public_html/myscript.php public_html/forums/ I solved it myself by making my own (borrowed from vBulletin) login script. Now everything works fine. Thanks |
#6
|
|||
|
|||
how did you fix it? can you explain more
|
#7
|
|||
|
|||
Quote:
This is what I use now: PHP Code:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|