Phpost
COMPLEMENTOS Tendencias y Destacados v1.0 - Versión para impresión

+- Phpost (https://phpost.es)
+-- Foro: Risus Nova 2.0 (https://phpost.es/forum-150.html)
+--- Foro: Complementos (https://phpost.es/forum-164.html)
+---- Foro: Terminados (https://phpost.es/forum-165.html)
+---- Tema: COMPLEMENTOS Tendencias y Destacados v1.0 (/thread-1012.html)



Tendencias y Destacados v1.0 - Tronlar - 05-30-2026

Tendencias y Destacados v1.0
Nuevo módulo para Risus Nova 2.0 — PHPost


Captura
[img]Registrate o inicia tu sesión para ver este contenido[/img]
 


Dos widgets para el sidebar de la portada: hashtags trending de las últimas 24h estilo Twitter y posts fijados por el admin.



🔥 Características

Tendencias (#hashtags)
Destacados (📌 PIN)  


🛠️ Instalación

Paso 1 — Subir los archivos
 
Código:
inc/class/c.trending.php                           →  inc/class/
themes/default/templates/modules/m.home_trending.tpl  →  themes/default/templates/modules/
themes/default/templates/modules/m.home_pins.tpl      →  themes/default/templates/modules/


Paso 2 — En posts.php buscar:
 
Código PHP:
$smarty->assign("tsTopcat",$tsPosts->topcat());
}




Reemplazar por:
 
Código:
$smarty->assign("tsTopcat",$tsPosts->topcat());
            // TRENDING Y PINS
            require_once TS_CLASS . 'c.trending.php';
            $tsTrend = new tsTrending();
            $smarty->assign('tsTrendingTags', $tsTrend->getTrendingTags(24, 15));
            $smarty->assign('tsPinnedPosts',  $tsTrend->getPinnedPosts(5));
        }
    }


Paso 3 — En t.home.tpl

Buscar:
 
Código:
{include file='modules/m.home_tags_relevantes.tpl'}


Arriba agregar:
 
Código:
{include file='modules/m.home_pins.tpl'}
{include file='modules/m.home_trending.tpl'}


Paso 4 — Borrar la caché

Borra el contenido de la carpeta /cache/ del sitio.



⚙️ Configurar
   


🗑️ Desinstalar

Elimina los archivos y quita los cambios en el controlador y t.home.tpl.

 
Descarga


Mediafire
http://Registrate o inicia tu sesión para ver este contenido


Google Drive
http://Registrate o inicia tu sesión para ver este contenido




¿Tienes dudas o encuentras algún problema? Déjalo en los comentarios.