5
« on: July 23, 2011 - 11:24 23:24 »
Bueno primero este es es un tutorial donde les enseñare como adaptar el member awards para SMF 2.0 y espero que les sirva lo hice rapido xD aqui va.
Primero es ir a: Sources/Admin.php y buscar:
'modsettings' => array(
'label' => $txt['admin_modifications'],
'file' => 'ManageSettings.php',
'function' => 'ModifyModSettings',
'icon' => 'modifications.gif',
'subsections' => array(
'general' => array($txt['mods_cat_modifications_misc']),
y reemplazas por esto:
'awards' => array(
'label' => $txt['awards'],
'file' => 'ManageAwards.php',
'function' => 'Awards',
'icon' => 'awards.gif',
'permission' => array('manage_awards'),
'subsections' => array(
'main' => array($txt['awards_main']),
'modify' => array($txt['awards_modify']),
'assign' => array($txt['awards_assign']),
'categories' => array($txt['awards_categories']),
'settings' => array($txt['awards_settings']),
),
),
'modsettings' => array(
'label' => $txt['admin_modifications'],
'file' => 'ManageSettings.php',
'function' => 'ModifyModSettings',
'icon' => 'modifications.gif',
'subsections' => array(
'general' => array($txt['mods_cat_modifications_misc']),
Despues buscas:
// You have to be able to do at least one of the below to see this page.
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_boards', 'manage_smileys', 'manage_attachments'
y despues agregas:
,'manage_awards',
Despues bamos a: Sources/Subs.php y buscamos:
'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
y reemplazas por:
'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys', 'manage_awards'));
y tendran el member awards adaptado a la 2.0 SMF.
espero y les sirva RECUERDEN SIEMPRE HACER RESPALDO DE LOS ARCHIVOS QUE MODIFIQUEN y dudas o aclaraciones comentar.
Saludos,azecktR12.