News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Custom Profile Fields Mod - Improved

Started by murdo, November 14, 2007, 04:03:18 AM

Previous topic - Next topic

rsw686

That line shouldn't be there. You should only have


require_once($GLOBALS['sourcedir'] . '/CustomProfile.php');
verifyCustomFieldsInput();


Then further down in the file around line 300 you should have


    // Registration options are always default options...
    if (isset($_POST['default_options']))
        $_POST['options'] = isset($_POST['options']) ? $_POST['options'] + $_POST['default_options'] : $_POST['default_options'];
    $regOptions['theme_vars'] = isset($_POST['options']) && is_array($_POST['options']) ? $_POST['options'] : array();

    $memberID = registerMember($regOptions);

    makeCustomFieldsChanges($memberID);
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

myaicons

#21
... odd... how did that happen?

i removed the line 172

and this is what i have around 300:

// Registration options are always default options...
if (isset($_POST['default_options']))
$_POST['options'] = isset($_POST['options']) ? $_POST['options'] + $_POST['default_options'] : $_POST['default_options'];
$regOptions['theme_vars'] = isset($_POST['options']) && is_array($_POST['options']) ? $_POST['options'] : array();

$memberID = registerMember($regOptions);
require_once($GLOBALS['sourcedir'] . '/CustomProfile.php');
verifyCustomFieldsInput();

makeCustomFieldsChanges($memberID);


should i remove this:
?

require_once($GLOBALS['sourcedir'] . '/CustomProfile.php');
verifyCustomFieldsInput();

i scratch your back you scratch my back...
funny thing about my back is its located on my...

rsw686

Yes I would remove those two lines. Did you hand install the mod?
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

myaicons

ok... ive made the changes... and hopefully i wont see that error again :)

nope... i think i had the package manager install it and just changed my template manually...
i scratch your back you scratch my back...
funny thing about my back is its located on my...

rsw686

Quote from: myaicons on February 13, 2008, 07:51:19 PM
nope... i think i had the package manager install it and just changed my template manually...

Not sure why that happened then. Never seen that issue before.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

myaicons

either way... still glad the mod exists ! :)
i scratch your back you scratch my back...
funny thing about my back is its located on my...

Advertisement: