Simple Machines Community Forum

SMF Support => Language Specific Support => Español (Spanish) => Topic started by: Uluku on July 14, 2014, 07:21:54 PM

Title: Extraños valores al meterme en Administración
Post by: Uluku on July 14, 2014, 07:21:54 PM
Quote/ ENotify function ENotify($return_config = false) { global $txt, $scripturl, $context, $settings, $sc, $modSettings; loadLanguage('ENotify'); $config_vars = array( array('check', 'enotify_replies'), array('check', 'enotify_pms'), array('int', 'enotify_refresh', 'postinput' => 'ms'), array('int', 'enotify_life', 'postinput' => 'ms'), array('int', 'enotify_exp', 'postinput' => $txt['hours']),    ); if ($return_config) return $config_vars; $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=enotify'; $context['settings_title'] = $txt['enotify_admin']; // No removing this line you, dirty unwashed mod authors. :p if (empty($config_vars)) { $context['settings_save_dont_show'] = true; $context['settings_message'] = '
' . $txt['modification_no_misc_settings'] .

'; return prepareDBSettingContext($config_vars); } // Saving? if (isset($_GET['save'])) { checkSession(); $save_vars = $config_vars; // This line is to help mod authors do a search/add after if you want to add something here. Keyword: FOOT TAPPING SUCKS! saveDBSettings($save_vars); // This line is to help mod authors do a search/add after if you want to add something here. Keyword: I LOVE TEA! redirectexit('action=admin;area=modsettings;sa=enotify'); } // This line is to help mod authors do a search/add after if you want to add something here. Keyword: RED INK IS FOR TEACHERS AND THOSE WHO LIKE PAIN! prepareDBSettingContext($config_vars); }

Me sale en algunas secciones de administración. Decir que empezó a salir tras intentar instalar el mod ENotify. Había realizado un backup antes pero tampoco me deja restaurarlo. EL resto del foro no tiene ese problema
Title: Re: Extraños valores al meterme en Administración
Post by: Diego Andrés on July 15, 2014, 12:37:33 PM
Busca en el archivo Sources/ManageSettings.php lo siguiente:


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

loadLanguage('ENotify');

$config_vars = array(
    array('check', 'enotify_replies'),
    array('check', 'enotify_pms'),
    array('int', 'enotify_refresh', 'postinput' => 'ms'),
    array('int', 'enotify_life', 'postinput' => 'ms'),
    array('int', 'enotify_exp', 'postinput' => $txt['hours']),
);
 
if ($return_config)
return $config_vars;

$context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=enotify';
$context['settings_title'] = $txt['enotify_admin'];

// No removing this line you, dirty unwashed mod authors. :p
if (empty($config_vars))
{
$context['settings_save_dont_show'] = true;
$context['settings_message'] = '<div class="centertext">' . $txt['modification_no_misc_settings'] . '</div>';

return prepareDBSettingContext($config_vars);
}

// Saving?
if (isset($_GET['save']))
{
checkSession();

$save_vars = $config_vars;

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: FOOT TAPPING SUCKS!

saveDBSettings($save_vars);

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: I LOVE TEA!

redirectexit('action=admin;area=modsettings;sa=enotify');
}

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: RED INK IS FOR TEACHERS AND THOSE WHO LIKE PAIN!

prepareDBSettingContext($config_vars);
}


Y asegúrate de que se encuentre antes de la etiqueta ?>
Title: Re: Extraños valores al meterme en Administración
Post by: Uluku on July 15, 2014, 05:13:05 PM
Quote from: Diego Andrés on July 15, 2014, 12:37:33 PM
Busca en el archivo Sources/ManageSettings.php lo siguiente:


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

loadLanguage('ENotify');

$config_vars = array(
    array('check', 'enotify_replies'),
    array('check', 'enotify_pms'),
    array('int', 'enotify_refresh', 'postinput' => 'ms'),
    array('int', 'enotify_life', 'postinput' => 'ms'),
    array('int', 'enotify_exp', 'postinput' => $txt['hours']),
);
 
if ($return_config)
return $config_vars;

$context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=enotify';
$context['settings_title'] = $txt['enotify_admin'];

// No removing this line you, dirty unwashed mod authors. :p
if (empty($config_vars))
{
$context['settings_save_dont_show'] = true;
$context['settings_message'] = '<div class="centertext">' . $txt['modification_no_misc_settings'] . '</div>';

return prepareDBSettingContext($config_vars);
}

// Saving?
if (isset($_GET['save']))
{
checkSession();

$save_vars = $config_vars;

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: FOOT TAPPING SUCKS!

saveDBSettings($save_vars);

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: I LOVE TEA!

redirectexit('action=admin;area=modsettings;sa=enotify');
}

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: RED INK IS FOR TEACHERS AND THOSE WHO LIKE PAIN!

prepareDBSettingContext($config_vars);
}


Y asegúrate de que se encuentre antes de la etiqueta ?>

Gracias. Era eso  :P

Solucionado