General Community > Scripting Help

Saving a text field in Forum Profile


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

--- Code: --- '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;
--- End code ---

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!


[0] Message Index

Go to full version