The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need some help with userfields
OK guys, please forgive me, but I am trying to port some antispam mods I had in my vB 3.0.xx site to the newest vB I plan to use in it and I have a problem. I am trying to alter register.php from vB 4.2.0 Patch Level 2.
Specifically, I need to grab the value of a userfield and compare it with the value I'll get from a table. It is a Single-selection menu field, I have it defined in the Profile fields, exactly as I had it in the old vB. It contains a list of countries and the registering member has to select one of them. I check $vbulletin->GPC['userfield']['field5'] (field5 is the name of the field) right before the register_addmember_process hook and I get a numeric value, which corresponds to the country the user has selected. What I want however, is the name of the country associated with that country value. In vB 3.0.xx I used $bbuserinfo['field5'] after I checked for errors and I got the country name. What am I supposed to check in vB 4.2?? Here is the part of the code I am looking at in register.php pf vB 4.2 Code:
else { $show['errors'] = false; // save the data $vbulletin->userinfo['userid'] = $userid = $userdata->save(); echo "HERE: "; echo ($vbulletin->userinfo['field5']); break; What is the variable I should use in : Code:
$country_name = some_variable_here??? I could use some help here guys, many thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|