Log in

View Full Version : How to save custom fields?


ctimes
07-14-2011, 03:07 PM
I am trying to add some additional fields for users profiles for gaming handles and things like steam, vimeo etc.

I have this code setup in the modifyprofile template and have added a custom profile field (field15) to be assigned to it. I can see the field under the details page but it doesn't seem to save.

legend>Gaming Handles</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td colspan="2">You may enter your online gaming handles here.</td>
</tr>
<tr>
<br />
<tr>
<td>Xbox LIVE<br />
<img src="$stylevar[imgdir_misc]/xbox.jpg" alt="" />
<input type="text" class="bginput" name="field15" value="$bbuserinfo[field15]" size="25" maxlength="50" dir="ltr" /></td>

Is there someone else I should be doing? I've not done this before but I found a few hacks that do a similar thing and have been trying to use the code manually to get this going as none of them seem to have all the option I want like xbox live, psn, steam, xfire, vimeo, youtube etc.

Any help would be greatly appreciated and I will be adding my final result once done for others to use if they want in the future :o

Lynne
07-14-2011, 03:58 PM
Do you have some php code written that actually does the Save? Just adding a field to a form doesn't do anything if the form code does actually do anything with the field.

ctimes
07-14-2011, 04:08 PM
I thought that labeling it field15 which is a custom field I setup would do do the save the same way it pulls the data once filled out.

Lynne
07-14-2011, 04:19 PM
Check out the php code for the form and see. It doesn't sound like it is doing anything with it. The query to grab the fields probably just grabs all custom fields which is why it shows up.

ctimes
07-14-2011, 04:39 PM
Thank you I'll take a look, if not it may just end up being easier to modify something like this (https://vborg.vbsupport.ru/showthread.php?t=207742) to fit my need.