The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
SQL queries to create a valid user
I'm creating my own registration form outside of the vbulletin templates... I would like to know what queries are required to successfully add a user to vbulletin. I've done a simple insert into vb_user table but when I try to edit that user from the admincp (they do show up), the form errors and I cannot edit them.
heres the query i use from php (it executes fine without any errors): Code:
$query = "INSERT INTO vb_user " . "(usergroupid,username,password,passworddate,email,usertitle,joindate,lastvisit,lastactivity,timezoneoffset,birthday,birthday_search,ipaddress,languageid,salt) " . "VALUES($usergroupid,'$username','$password',$passworddate,'$email','$usertitle',$joindate,$lastvisit,$lastactivity,$timezoneoffset,'$birthday',$birthday_search,'$ipaddress',$languageid,'$salt')"; What else must be done to create a user? |
#2
|
|||
|
|||
Use the User datamanger....
Heres a simple ex. PHP Code:
|
#3
|
|||
|
|||
What files must be included? datamanager_init() and $vbulletin must be defined somewhere right?
|
#4
|
|||
|
|||
when you include 'globals.php' everything is done.
|
#5
|
|||
|
|||
i dont have a globals.php, but i have a global.php .... but when i include/require that, my page fails to load.
its the only line in the file... Code:
require("/mydir/forum/global.php"); echo "SUCCESS"; |
#6
|
|||
|
|||
PHP Code:
|
#7
|
|||
|
|||
Sorry the 's was a typo.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|