PHPost | Soporte, Descargas y Tutoriales de Risus Nova
COMPLEMENTOS Post popular - Versión para impresión

+- PHPost | Soporte, Descargas y Tutoriales de Risus Nova (https://phpost.es)
+-- Foro: Risus 1.3 (https://phpost.es/foro-Risus-1-3)
+--- Foro: Complementos (https://phpost.es/foro-Complementos)
+---- Foro: Complementos Terminados (https://phpost.es/foro-Complementos-Terminados)
+---- Tema: COMPLEMENTOS Post popular (/tema-Complementos-Terminados-Post-popular)



Post popular - Chctrpgo - 07-16-2022

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



En m.home_last_posts.tpl --> themes --> default --> templates --> modules --> m.home_last_posts.tpl

Donde quieran agregan:
Código PHP:
{if $p.post_comments >= 15 && $p.post_puntos >= 50}<span class="qtip" title="Post Popular" style="margin-top: -20px; margin-right: -2px; color: #df7e17; font-weight: bold;float: right;"><img src="{$tsConfig.tema.t_url}/images/popular.png"></span>{/if} 


Ejemplo Default

Buscar:
Código PHP:
<span class="floatR"><a href="{$tsConfig.url}/posts/{$p.c_seo}/">{$p.c_nombre}</a></span


Antes agregar:
Código PHP:
{if $p.post_comments >= 15 && $p.post_puntos >= 50}<span class="qtip" title="Post Popular" style="margin-top: -20px; margin-right: -2px; color: #df7e17; font-weight: bold;float: right;"><img src="{$tsConfig.tema.t_url}/images/popular.png"></span>{/if} 


Cambiar el valor por el que quieran que aparezca:
Cita:$p.post_comments >= 15
$p.post_puntos >= 50






Creditos: dazn