Hack (1.1 / 1.2?) needs 2 fixes (one bug mentioned by eXtremeTim). Thanks to Zachery for this nice hack :P
Edit: FIX FIXED
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
FIX 1 (no more option resets)
- Open file includes/functions_user.php
Find:
-----
PHP Code:
// check extra profile fields
$profilefields = $DB_site->query("
SELECT profilefieldid,required,title,size,maxlength,type,data,optional, regex
FROM " . TABLE_PREFIX . "profilefield
WHERE editable = 1
AND form " . iif($formtype, '>= 1', '= 0'). "
");
REPLACE with:
-------------
PHP Code:
// vB currently only uses $formtype=0(profile form 0) or $formtype=1(all options (form 1 to 5))
if ($formtype >= 1 and $formtype <=5) {
$typestart = 1;
$typeend = 5;
}
// formtype is either 0(profile) or our extra page
else $typestart = $typeend = $formtype;
// check extra profile fields
$profilefields = $DB_site->query("
SELECT profilefieldid,required,title,size,maxlength,type,data,optional, regex
FROM " . TABLE_PREFIX . "profilefield
WHERE editable = 1
AND (form >= $typestart)
AND (form <= $typeend)
");
- Open file profile.php
Find:
----
PHP Code:
if ($_POST['do'] == 'updateextra')
{
$userfields = verify_profilefields(1);
REPLACE with:
-------------
PHP Code:
if ($_POST['do'] == 'updateextra')
{
$userfields = verify_profilefields(6);
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
FIX 2 (Cache templates)
- Open file profile.php
Find:
-----
PHP Code:
'removelist' => array(
'modifylist_removeuser',
),
BELOW it add:
-------------
PHP Code:
'extra' => array(
'page',
'modifyoptions_timezone',
'userfield_checkbox_option',
'userfield_optional_input',
'userfield_radio',
'userfield_radio_option',
'userfield_select',
'userfield_select_option',
'userfield_select_multiple',
'userfield_textarea',
'userfield_textbox',
),