SMF Support > Tutoriales
[Manual] cBi (Custom Board Icons)
Loкiтox:
Hola!.
Bueno muchos han tenido problemás con este MOD, claro está errores aquí les explicaré unas cosas para que se configure bien y puedan hacerlo funcionar.
1. Instalar MOD Manual:
Board.Index.Template.php:
--- Code: ---// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';
--- End code ---
Remplazas por:
--- Code: ---if ($board['new']) {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on.gif'))
$board_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on.gif';
else
$board_new_img=$settings['images_url']. '/on.gif';
echo '<img src="', $board_new_img,'" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
} elseif ($board['children_new']) {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on2.gif'))
$childboard_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on2.gif';
else
$childboard_new_img=$settings['images_url']. '/on2.gif';
echo '<img src="', $childboard_new_img,'" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
} else {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/off.gif'))
$board_nonew_img=$settings['theme_url']. '/icons/' . $board['id'] . '/off.gif';
else
$board_nonew_img=$settings['images_url']. '/off.gif';
echo '<img src="', $board_nonew_img,'" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
}
--- End code ---
Message.Index.Template.php:
Buscas por:
--- Code: ---// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';
--- End code ---
Remplazas por:
--- Code: ---if ($board['new']) {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on.gif'))
$board_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on.gif';
else
$board_new_img=$settings['images_url']. '/on.gif';
echo '<img src="', $board_new_img,'" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
} elseif ($board['children_new']) {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on2.gif'))
$childboard_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on2.gif';
else
$childboard_new_img=$settings['images_url']. '/on2.gif';
echo '<img src="', $childboard_new_img,'" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
} else {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/off.gif'))
$board_nonew_img=$settings['theme_url']. '/icons/' . $board['id'] . '/off.gif';
else
$board_nonew_img=$settings['images_url']. '/off.gif';
echo '<img src="', $board_nonew_img,'" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
}
--- End code ---
Todo esos archivos los encontramos en Themes/tu themes/
2. Agregando las imágenes.
A continuación enseñare a poner las imágenes.
- Para poner la imagen debes crear una ruta en Themes/tu themes/ creas una carpeta/ruta llamada icons, osea quedaría así Themes/tu themes/icons.
- Para poner una imagen por foro, luego de crear la carpeta te metes dentro un ejemplo de foro es el español que su url es:
http://www.simplemachines.org/community/index.php?board=16.0
Nos fijamos en los ultimos números que es 16.0, entonces vamos a Themes/tu themes/icons y creamos una carpeta llamada 16, dentro ponemos el on.gif,off.gif y on2.gif
¿Por qué es 16?.
Porque claro, el .0 no cuenta, entonces verás casos así:
http://www.simplemachines.org/community/index.php?board=40.0
Fácil, haces una carpeta llamada 40 y listo ;D!.
Saludos!.
mirahalo:
muy buen manual, pero creo que debería de ir en el subforo Tutoriales.
;)
Kiel D-04:
Muy bueno el tuto jeje
:)
Loкiтox:
--- Quote from: 130860 on May 14, 2009, 01:14:10 PM ---muy buen manual, pero creo que debería de ir en el subforo Tutoriales.
;)
--- End quote ---
No sabía donde ponerlo, contactaré con NIBOGO o algún MOD de castellano y veo la posibilidad ;)!.
SPerroud:
Buen tuto, ya se acabaran los post "Problema con CBI" xDD
Saludos y gracias
Navigation
[0] Message Index
[#] Next page
Go to full version