Log in

View Full Version : Changing reg template/storing custom fields


youradultworld
01-23-2005, 04:26 AM
I am adding custom fields to my registration template, not through admincp as I want the field(s) to be listed below username and above the password. But lets say for instance the input field name was "fav_dessert", besides having to add this below the username stuff in the registration file:
<fieldset class="fieldset">
<legend>$vbphrase[singco]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="400">
<tr>
<td colspan="2">$vbphrase[singcolong]</td>
</tr>
<tr>
<td>
$vbphrase[singco]:<br />
Favorite Desert <input type="text" class="bginput" name="FavDessert" value="single" /> </td>
</tr>
</table>
</fieldset>

Since I created this myself I imagine I will need to create something in the database, but where? Also how do I tell vbulletin (or the registration system) to include this new question that I manually added to register template to the database so that I can later manipulate data?

Thanks

AFemaleProdigy
09-20-2012, 02:37 PM
I am trying to work something similar out. I am close, but stuck on a small bit of code. I am using the custom profile field creator in the admincp to create the custom field that I need. Then I plan to load the specific field wherever I want in the register template, instead of loading the entire collection of custom fields at once. Then I can pick and choose where and which to show. I can't get the code right to load the individual custom fields instead of the entire group though. That is my idea on getting it done.