Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-23-2007, 03:27 PM
johnmont johnmont is offline
 
Join Date: Feb 2006
Location: Chicago
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Register -- copy one userfield to another problem

When someone registers I'm copying the data from one userfield to another when they submit their registration information.

PHP Code:
Hook Location : register_addmember_process

$vbulletin->GPC['userfield']['field16']=$vbulletin->GPC['field12'];
$userdata->set_userfields($vbulletin->GPC['userfield'], true, 'admin'); 
This worked great until I changed one of my userfields -- the one for Country -- from a text entry to a single item popup menu listing of countries. Now, whenever someone submits their Registration they get an error message the required "Country" has no data....even though it was submitted. For some reason, there is a difference between using a text input field for this vs. the select menu.

Is there a way I can do this? I'm a bit lost....
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:09 AM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.