Tool to link Vbulletin extra fields to kobold account registration:
Working on it....need help cause my php skills are lame ...
so far:
love this vBulletin deal --- MUCHO....
- Code:
-
$vbulletin->GPC['userfield']["field5"]
$vbulletin->GPC['userfield']["field6"]
are the values you need to insert for your custom fields...assuming these are the first two cusstom fields you added....
for me it was 5 -= first name and 6 =- last name
and I inserted them into another database table upon regisration....so they hit userfield5 and 6 in the vb_userfield tables....or usertext not sure which....
and they also hit my database table
PHP Code:
- Code:
-
$insertSQL = sprintf("INSERT INTO table_name (firstname, lastname) VALUES (%s, %s)",
GetSQLValueString($vbulletin->GPC['userfield']["field5"], "text"),
GetSQLValueString($vbulletin->GPC['userfield']["field6"], "text"));
Of course GetSQLValueString is a dreamweaver code inserted when you insert your recordset to begin with...
This type registration to a private server may just be the way around the vbulletin encrypted password and allow users to choose a different username and password for the server account. I do not think Kobold server needs the e-mail address..but wouldn't hurt to ask for that either.
I just need to know how to implement this and where to put it??
Code from: vbulletin official forums