12-16-2021, 02:14 PM
(Última modificación: 05-14-2026, 01:08 PM por Chctrpgo.
Razón: Actualizado 2.0
)
18
Captura[img]Registrate o inicia tu sesión para ver este contenido[/img]
Buscar:
Código PHP: ( Seleccionar Todo )
/*
lalala
*/
Arriba agregar:
Código PHP: ( Seleccionar Todo )
/*
Top Categorias
*/
function topcat(){
global $tsCore;
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT c.cid, c.c_nombre, c.c_seo, c.c_img, COUNT(p.post_id) AS total
FROM p_categorias AS c
LEFT JOIN p_posts AS p ON p.post_category = c.cid AND p.post_status = \'0\'
GROUP BY c.cid
HAVING total > 0
ORDER BY total DESC, c.c_nombre ASC LIMIT 20');
return result_array($query);
}
En posts.php --> inc --> php --> posts.php
Buscar:
Código PHP: ( Seleccionar Todo )
$smarty->assign("tsDo",$_GET['do']);
Debajo agregar:
Código PHP: ( Seleccionar Todo )
$smarty->assign("tsTopcat",$tsPosts->topcat());
En t.home.tpl --> themes --> default --> templates --> t.home.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
{include file='modules/m.home_afiliados.tpl'}
Arriba agregar:
Código PHP: ( Seleccionar Todo )
{include file='modules/m.home_topcat.tpl'}
Y subir esta carpeta
Mediafire
Debes agradecer para ver el contenido...
Google Drive
Debes agradecer para ver el contenido...
Creditos: Debes agradecer para ver el contenido...



Facebook
Twitter
Reddit
Digg
del.icio.us
Tumblr
Pinterest
Blogger
Fark
LinkedIn
Mix
Google