1
Soporte General SMF / Añadir imagen de categoría en bloque
« on: October 12, 2016 - 06:50 18:50 »
Añadir imagen de categoría en bloque
Datos importantes:
Url del foro: http://cz.mispelishd.com
Version de SMF: 2.0.12
Theme del foro: CZ
Cuenta demo: User: demo pass: demo
Descripcion del problema:
Hola,
Y disculpen que me vuelva a poner en contacto, me voy a poner demasiado pesado, ya es la última vez...
He terminado el bloque de últimos posts (el que trae default el portal) de darle el diseño para que sea tipo linksharing.
Solo me falta un pequeño detalle, que no hay manera, se que alguien que maneje no le costará demasiado, pero a mi me es imposible.
Me gustaría poner antes del nombre del post, una imagen en pequeñita de la categoría.
(tengo instalado este mod: http://custom.simplemachines.org/mods/index.php?mod=3604) y cada categoría con su imagen añadida, aquí se puede observar: http://cz.mispelishd.com/forum/
_____
Así tengo ahora mismo el bloque: https://s11.postimg.org/x8bn2sta9/Captura_de_pantalla_2016_10_13_a_las_1_47_26.png
Y me gustaría dejarlo así: https://s11.postimg.org/m7ghxs11f/Captura_de_pantalla_2016_10_13_a_las_1_47_38.png
¿Que tendría que modificar del código del bloque?, así les dejo mi codigo actual:
Datos importantes:
Url del foro: http://cz.mispelishd.com
Version de SMF: 2.0.12
Theme del foro: CZ
Cuenta demo: User: demo pass: demo
Descripcion del problema:
Hola,
Y disculpen que me vuelva a poner en contacto, me voy a poner demasiado pesado, ya es la última vez...
He terminado el bloque de últimos posts (el que trae default el portal) de darle el diseño para que sea tipo linksharing.
Solo me falta un pequeño detalle, que no hay manera, se que alguien que maneje no le costará demasiado, pero a mi me es imposible.
Me gustaría poner antes del nombre del post, una imagen en pequeñita de la categoría.
(tengo instalado este mod: http://custom.simplemachines.org/mods/index.php?mod=3604) y cada categoría con su imagen añadida, aquí se puede observar: http://cz.mispelishd.com/forum/
_____
Así tengo ahora mismo el bloque: https://s11.postimg.org/x8bn2sta9/Captura_de_pantalla_2016_10_13_a_las_1_47_26.png
Y me gustaría dejarlo así: https://s11.postimg.org/m7ghxs11f/Captura_de_pantalla_2016_10_13_a_las_1_47_38.png
¿Que tendría que modificar del código del bloque?, así les dejo mi codigo actual:
Show content
/*---------------------------------------------------------------------------------
* Ultimate Portal
* Version 0.3
* Project manager: vicram10
* Copyright 2011
* Powered by SMFSimple.com
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');
global $scripturl, $db_prefix, $txt, $settings, $modSettings, $context;
global $func, $sourcedir, $memberContext;
global $ultimateportalSettings, $sc, $user_info;
global $smcFunc, $boarddir;
global $boarddir;
$limit = !empty($ultimateportalSettings['board_news_limit']) ? $ultimateportalSettings['board_news_limit'] : 10;
$length = !empty($ultimateportalSettings['board_news_lenght']) ? $ultimateportalSettings['board_news_lenght'] : '';
$boards = array();
$boards = !empty($ultimateportalSettings['board_news_view']) ? explode(',', $ultimateportalSettings['board_news_view']) : null;
$bnews = array();
if(!empty($ultimateportalSettings['up_reduce_site_overload']))
{
if((cache_get_data('bk_boards_news', 1800)) === NULL)
{
$bnews = upSSI_BoardNews($limit, null, $boards, $length);
//Ultimate Portal use SMF Cache data... UP it's the best, only "UP", can create this feature
cache_put_data('bk_boards_news', $bnews, 1800);
}else{
$bnews = cache_get_data('bk_boards_news', 1800);
}
}else{
$bnews = upSSI_BoardNews($limit, null, $boards, $length);
}
loadLanguage('Stats');
foreach ($bnews as $news)
{
//load the member information
if(!empty($news['poster']['id']))
{
loadMemberData($news['poster']['id']);
loadMemberContext($news['poster']['id']);
}
echo '<span class="clear upperframe"><span></span></span>
<div class="roundframe"><img src="/punto.png"><strong> '. $news['link'] .'</strong>
</div><span class="lowerframe"><span></span></span>
';
}
//Page Index
if (!empty($context['page_index']))
echo '
<div style="text-align:center">
<strong>'. $txt['pages'] .':</strong> '. $context['page_index'] . '
</div>';
//End Page Index
* Ultimate Portal
* Version 0.3
* Project manager: vicram10
* Copyright 2011
* Powered by SMFSimple.com
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');
global $scripturl, $db_prefix, $txt, $settings, $modSettings, $context;
global $func, $sourcedir, $memberContext;
global $ultimateportalSettings, $sc, $user_info;
global $smcFunc, $boarddir;
global $boarddir;
$limit = !empty($ultimateportalSettings['board_news_limit']) ? $ultimateportalSettings['board_news_limit'] : 10;
$length = !empty($ultimateportalSettings['board_news_lenght']) ? $ultimateportalSettings['board_news_lenght'] : '';
$boards = array();
$boards = !empty($ultimateportalSettings['board_news_view']) ? explode(',', $ultimateportalSettings['board_news_view']) : null;
$bnews = array();
if(!empty($ultimateportalSettings['up_reduce_site_overload']))
{
if((cache_get_data('bk_boards_news', 1800)) === NULL)
{
$bnews = upSSI_BoardNews($limit, null, $boards, $length);
//Ultimate Portal use SMF Cache data... UP it's the best, only "UP", can create this feature
cache_put_data('bk_boards_news', $bnews, 1800);
}else{
$bnews = cache_get_data('bk_boards_news', 1800);
}
}else{
$bnews = upSSI_BoardNews($limit, null, $boards, $length);
}
loadLanguage('Stats');
foreach ($bnews as $news)
{
//load the member information
if(!empty($news['poster']['id']))
{
loadMemberData($news['poster']['id']);
loadMemberContext($news['poster']['id']);
}
echo '<span class="clear upperframe"><span></span></span>
<div class="roundframe"><img src="/punto.png"><strong> '. $news['link'] .'</strong>
</div><span class="lowerframe"><span></span></span>
';
}
//Page Index
if (!empty($context['page_index']))
echo '
<div style="text-align:center">
<strong>'. $txt['pages'] .':</strong> '. $context['page_index'] . '
</div>';
//End Page Index