Hola a todos alguien conoce este error y como solucionar:
tengo smf 1.1.10 instale el mod customprofile 3-20
y ahora cuando entro en administracion / caracteristicas y obciones me tira el siguiente error
Parse error: syntax error, unexpected $end in /home/padreric/public_html/Sources/ModSettings.php on line 335
trate de corregir el codigo pero no lo logro:
este es un freagmento de codigo que tengo es al final :
function ModifyProfileSettings()
{
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
CustomFieldSettings();
}
function ModifyKarmaSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Karma - On or off?
array('select', 'karmaMode', explode('|', $txt['smf64'])),
'',
// Who can do it.... and who is restricted by time limits?
array('int', 'karmaMinPosts'),
array('float', 'karmaWaitTime'),
array('check', 'karmaTimeRestrictAdmins'),
'',
// What does it look like? [smite]?
array('text', 'karmaLabel'),
array('text', 'karmaApplaudLabel'),
array('text', 'karmaSmiteLabel'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;s' <<<<----- esta es la linea 35 y el final del codigo en el documento
-------------------------------------------------------------------------------------------------------------------------------
por favor si me pueden ayudar se los agradezco.
te falta todo este codigo en tu archivo, desde
desde el comentario // Saving?
// Saving?
if (isset($_GET['save']))
{
// Fix PM settings.
$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
$save_vars = $config_vars;
$save_vars[] = array('text', 'pm_spam_settings');
saveDBSettings($save_vars);
writeLog();
redirectexit('action=featuresettings;sa=basic');
}
// Hack for PM spam settings.
list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(',', $modSettings['pm_spam_settings']);
$config_vars[] = array('int', 'max_pm_recipients');
$config_vars[] = array('int', 'pm_posts_verification');
$config_vars[] = array('int', 'pm_posts_per_hour');
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=basic';
$context['settings_title'] = $txt['mods_cat_features'];
prepareDBSettingContext($config_vars);
}
function ModifyLayoutSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Compact pages?
array('check', 'compactTopicPagesEnable'),
array('int', 'compactTopicPagesContiguous', null, $txt['smf235'] . '<div class="smalltext">' . str_replace(' ', ' ', '"3" ' . $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' . str_replace(' ', ' ', '"5" ' . $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
'',
// Stuff that just is everywhere - today, search, online, etc.
array('select', 'todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
array('check', 'topbottomEnable'),
array('check', 'onlineEnable'),
array('check', 'enableVBStyleLogin'),
'',
// Pagination stuff.
array('int', 'defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check', 'timeLoadPageEnable'),
array('check', 'disableHostnameLookup'),
'',
// Who's online.
array('check', 'who_enabled'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=layout');
loadUserSettings();
writeLog();
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=layout';
$context['settings_title'] = $txt['mods_cat_layout'];
prepareDBSettingContext($config_vars);
}
function ModifyKarmaSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Karma - On or off?
array('select', 'karmaMode', explode('|', $txt['smf64'])),
'',
// Who can do it.... and who is restricted by time limits?
array('int', 'karmaMinPosts'),
array('float', 'karmaWaitTime'),
array('check', 'karmaTimeRestrictAdmins'),
'',
// What does it look like? [smite]?
array('text', 'karmaLabel'),
array('text', 'karmaApplaudLabel'),
array('text', 'karmaSmiteLabel'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=karma');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];
prepareDBSettingContext($config_vars);
}
?>
saludos!