The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
registration.php
Instead of merging two databases, I'm going to have one signup page (the vbulletin register.php) and insert into the other database from there.
Right now I have my insert code under the following code at the end: Code:
// ############################### start add member ############################### if ($_POST['do'] == 'addmember') { Code:
$emailid = $vbulletin->GPC['email']; $userpwd = $vbulletin->GPC['password']; $username = $vbulletin->GPC['username']; Thanks. *bump I've tried everything and cannot get the password of the user currently signing up. I see $vbulletin->GPC['password'] being used by vbulletin, but why is it not working for me? |
#2
|
|||
|
|||
looking for this too.
|
#3
|
||||
|
||||
Try using $userdata->vars['password'].
But your code must be located below: Code:
$vbulletin->userinfo['userid'] = $userid = $userdata->save(); |
#4
|
|||
|
|||
Quote:
Code:
// SQL data $db_u = "root"; // fill in ur db username $db_p = "***"; // fill in ur db pass $db_host = "********"; // fill in only if u're not running it on the same machine as the db. // don't change $u = $_POST['user']; $p = $_POST['pass']; $e = $_POST['email']; //Database Link @$link = mysql_connect("$db_host", "$db_u", "$db_p"); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db('v3'); $q = "insert into `accounts` (login,password,s,v,gm,sessionkey,email) values ('$u','$p','NULL','NULL','0','NULL','$e')"; } ?> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|