vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to save custom fields? (https://vborg.vbsupport.ru/showthread.php?t=266819)

ctimes 07-14-2011 03:07 PM

How to save custom fields?
 
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.

Code:

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 to fit my need.


All times are GMT. The time now is 07:23 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01166 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete