The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Modifying register.php to collect additional information
New to this forum and to php/vBulletin. Thanks in advance for any replies and discussion.
I need to modify the registration process to enable three data points to be tracked at the user level. For example, User 1 registers, selects from three drop-downs: favorite pet=dog, favorite food=pizza, and favorite movie=tombstone. After registration, this information should be maintainable by the user in edit profile. I did some searches but could not find a plugin that allowed you to edit the registration process. My next thought was to just edit the register.php and profile.php to enable these changes. Is this the best idea for making the change? Please let me know if I'm overlooking something. From looking at the code, it seems that I should add the logic to the following: // ############################### start add member if ($_POST['do'] == 'addmember') And I assume profile.php would handle the maintaining portion. Any instructions on how to best implement this solution would be very much appreciated! |
#2
|
|||
|
|||
What you require can be done via the ACP without the need for an additional hack.
In the User Profile Fields section of your ACP, click Add New User Profile Field and fill out the information. You have the option to make it required at registration. This information is then automatically added to the registration templates. No further editing is required. Check the vBulletin documentation for more details. It's quite an easy process. Some info in this thread. Should be enough to get you started. http://www.vbulletin.com/forum/showthread.php?t=205214 |
#3
|
|||
|
|||
Thanks for the fast reply. That's exactly what I needed to know.
Much obliged! |
#4
|
|||
|
|||
No problem, good luck.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|