Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: MysteriousDark on May 25, 2012, 03:26:46 PM

Title: Error mod color name
Post by: MysteriousDark on May 25, 2012, 03:26:46 PM
hello I have an error using this mod (http://custom.simplemachines.org/mods/index.php?mod=111) on my forum smf 2.0.2

Fatal error: Call to undefined function ModifyMemberColorLinksSettings() in /home/l2sixsen/public_html/L2Admins/Sources/ManageSettings.php on line 134

Insert it as I said the guide but I get this when pressed in the admin panel.

Someone would help me?
Title: Re: Error mod color name
Post by: Xenocidius on May 25, 2012, 08:12:41 PM
EDIT: I see your question was already answered in Spanish. Glad to see everything worked out.

Did you get any errors during the test installation? If so, it is likely that ManageSettings.php wasn't edited properly.

Open up ManageSettings.php in an editor like Notepad++ and make sure the lines specified here were correctly entered: http://custom.simplemachines.org/mods/index.php?action=parse.

In particular, search for 'function ModifyKarmaSettings' and before it paste this:

function ModifyMemberColorLinksSettings($return_config = false)
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array(
// Standard Membercolor?
array('check', 'MemberColorLink'),
array('check', 'MemberColorLinkOldSpanStyle'),
'',
//Some Stat Settings
array('check', 'MemberColorLatestMember'),
array('check', 'MemberColorStats'),
array('check', 'MemberColorWhoIsOnline'),
'',
//Thread and Boardsettings
array('check', 'MemberColorThreadOwner'),
array('check', 'MemberColorThreadLastPost'),
array('check', 'MemberColorThreadChild'),
'',
//Birthday and Calendar
array('check', 'MemberColorModeratorLinks'),
array('check', 'MemberColorBoardindex'),
array('check', 'MemberColorBirthday'),
'',
//Some Recent Things
array('check', 'MemberColorRecentOwner'),
array('check', 'MemberColorRecentLastPost'),
'',
// PM Colors
array('check', 'MemberColorInbox'),
array('check', 'MemberColorOutbox'),
'',
//Moderation Things :)
array('check' , 'MemberColorModCenter'),
array('check' , 'MemberColorIssuePList'),
'',
//The Heavy Member Search Option
array('check' , 'MemberColorAllSearch'),
'',
//Guest Color
array('text', 'MemberColorGuests'),
//Banned User Color
array('text', 'MemberColorBanned'),
//Birthday User Color
array('text', 'MemberColorBirthdayColor'),
);

if ($return_config)
return $config_vars;

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=admin;area=featuresettings;sa=MemberColorLinks');
}

$context['post_url'] = $scripturl . '?action=admin;area=featuresettings;save;sa=MemberColorLinks';
$context['settings_title'] = $txt['MemberColorLinkHeadline'];

prepareDBSettingContext($config_vars);
}


Good luck!