Saving a text field in Forum Profile

Started by FooToo, April 07, 2012, 03:09:49 PM

Previous topic - Next topic

FooToo

Hello im having a hard time trying to get this to save:

'gamer_steam' => array(
'type' => 'text',
'value' => $context['member']['username'],
'label' => $txt['gamer_steam'],
'subtext' => $txt['your_gamer_steam'],
'size' => 30,
'input_attr' => array('maxlength="30"'),
'permission' => 'profile_extra',
'input_validate' => create_function('&$value', '
$value = preg_replace(\'/[^a-zA-Z0-9-_]+/\', \'\', $value);
return true;
'),
),


I have it grab and place the Username(In this case its a 64bit URL for Steam) into the text field. Im having a hard time trying to get it to save Automatically. Essentially it grabs the Username and places it into the Field but i cant figure out have to have it Automatically Save.

Any help is appreciated!


Advertisement: