Custom Board Icons

Started by SaD333, March 11, 2007, 12:33:04 PM

Previous topic - Next topic

SaD333

me podeis ayudar?? es que e hecho lo que dice en el reedme y no va :S
gracias ;)

SaD333

nadie sabe nada? esk lo necestido preciso porfavor os al agradeceria mucho ;)

EgAr

deberias ser mas especifico en tu pregunta...

1º cual es la url del mod?
2º especifica que pasó? instalaste? no funciona? da algun error?

SaD333

vale el mot lo descarge de esta misma pagina se llama cbi, no no daba ningun error simplemente no ace la funcion k deberia realizar, e buscado por aki y e visto k a otro xiko/a le pasaba lo mismo alguna sugerencia?

EgAr

usas el theme default?

si no es asi, debes hacer los cambios a mano...

SaD333

no no uso el default, k kambios debo de realizar en el readme no dice nada :S

SaD333

tienes razon!! al activar el theme default todo funciona korrectamente!! me podiras decir k linea tengo k modificar de mi theme? por favor, es urgente

EgAr

segun el modification.xml del mod:

en el archivo BoardIndex.template.php de tu theme

buscar:
// 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], '" />';




y reemplazar por:
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" />';
}



y en el archivo MessageIndex.template.php

buscar:
// 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], '" />';



reemplazar:
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" />';
}




ademas debes hacer lo que dice el readme, pero con tu theme:

forum/Themes/tutheme/icons
forum/Themes/tutheme/icons/board_id/on.gif
forum/Themes/tutheme/icons/board_id/on2.gif
forum/Themes/tutheme/icons/board_id/off.gif


suerte

SaD333

ay un problema... mi theme no contiene esos archivos   

EgAr

entonces solo te falta hacer lo que indica el readme, pero en tu theme:

forum/Themes/tutheme/icons
forum/Themes/tutheme/icons/board_id/on.gif
forum/Themes/tutheme/icons/board_id/on2.gif
forum/Themes/tutheme/icons/board_id/off.gif

SaD333


SaD333


EgAr

se me ocurre lo siguiente (NO garantizo que funcione)

copia los archivos

BoardIndex.template.php
MessageIndex.template.php

desde la carpeta del theme default hasta la carpeta de tu theme y por supuesto haces lo que dice el readme...

forum/Themes/tutheme/icons
forum/Themes/tutheme/icons/board_id/on.gif
forum/Themes/tutheme/icons/board_id/on2.gif
forum/Themes/tutheme/icons/board_id/off.gif

Tuon

la verdad no entendi mucho como usar este mod?
xfa lo xplicas mas detallado?
es que ok creo los directorios en mi theme.. y luego? como eligo los iconos y eso..
esplicame paso a paso xfavor..si? sobretodo lo del readme

SaD333

aver es muy facil, simplemete instalas el mod y pones los archivos komo dice el readme y ya esta con el theme defalut, si va

SaD333

ya esta todo claro chicos!! gracias a tods por ayudarme, el fayo estaba en k yo lo metia enla carpeta default y es en la carpeta del theme, otra cosa, como puedo acer para que esten en al carpeta defautl por ejemplo y k kada skin lo koja de ai? es para aorrar espacio esk komo cada usuario puede elegir le suyo..

SaD333

me a kedado muy bien!! u puesto gif animados y todo!

BredeBS


echo '<img src="/Themes/carpeta_comun/'.$board['id'].'/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';

reemplaza por algo como eso en CADA BoardIndex.template.php (línea 122 aprox. en el default)
aunque sería útil que des el código para decirte en que línea exactamente

SaD333


sneijder23

pues en el theme classic k es el k yo uso no me aparecen esas lineas...

Advertisement: