Buenas,
vengo a dejar un pequeño tutorial, sobre como agregar en el menu el numero de reportes abiertos de manera similar a como se muestran los mensajes personales. el tutorial esta hecho para smf 2.0 y hacia arriba y funciona con todos los temas pues no hace modificaciones en ningun archivo de plantilla. pues bueno a empezar:
Abrimos el archivo Subs.php y buscamos:
$context['menu_buttons'][$current_action]['active_button'] = true;
luego agregamos:
if (!empty($user_info['mod_cache']) && $user_info['mod_cache']['bq'] != '0=1' && $context['open_mod_reports'] > 0){
$context['menu_buttons']['moderate']['title'] .= ' [<strong>' .$context['open_mod_reports'] . '</strong>]';
}
Quedaria asi:
$context['menu_buttons'][$current_action]['active_button'] = true;
if (!empty($user_info['mod_cache']) && $user_info['mod_cache']['bq'] != '0=1' && $context['open_mod_reports'] > 0){
$context['menu_buttons']['moderate']['title'] .= ' [<strong>' .$context['open_mod_reports'] . '</strong>]';
}
bueno eso es todo, simple y sencillo.
agradecimiento a los moderadores de mi foro por quejarse tanto y así darme ideas XD
o pueden instalar este mod que hace exactamente lo mismo:
http://custom.simplemachines.org/mods/index.php?mod=3666