02-01-2021, 07:19 PM
1
En inc --> class --> c.tops.phpBuscar:
Código: ( Seleccionar Todo )
// FAVORITOS
$data['favoritos'] = $this->getTopPostsVars($fecha, $cat, 'favoritos');Debajo agregar:
Código: ( Seleccionar Todo )
// RECOMENDADO
$data['shared'] = $this->getTopPostsVars($fecha, $cat, 'shared');Buscar:
Código: ( Seleccionar Todo )
/*
getTopPostsQuery($data)
*/
function getTopPostsQuery($data){
//
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT p.post_id, p.post_category, '.$data['type'].', p.post_puntos, p.post_title, c.c_seo, c.c_img FROM p_posts AS p LEFT JOIN p_categorias AS c ON c.cid = p.post_category WHERE p.post_status = \'0\' AND p.post_date BETWEEN '.$data['start'].' AND '.$data['end'].' '.$data['scat'].' ORDER BY '.$data['type'].' DESC LIMIT 10');
$datos = result_array($query);
//
return $datos;
}Al lado de p.post_puntos
Agregar:
Código: ( Seleccionar Todo )
, p.post_sharedCódigo: ( Seleccionar Todo )
/*
getTopPostsQuery($data)
*/
function getTopPostsQuery($data){
//
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT p.post_id, p.post_category, '.$data['type'].', p.post_puntos, p.post_shared, p.post_title, c.c_seo, c.c_img FROM p_posts AS p LEFT JOIN p_categorias AS c ON c.cid = p.post_category WHERE p.post_status = \'0\' AND p.post_date BETWEEN '.$data['start'].' AND '.$data['end'].' '.$data['scat'].' ORDER BY '.$data['type'].' DESC LIMIT 10');
$datos = result_array($query);
//
return $datos;
}KM-TRONOS
[img]Registrate o inicia tu sesión para ver este contenido[/img]
themes --> KM-TRONOS --> templates --> modules --> m.top_posts.tpl
Buscar:
Código: ( Seleccionar Todo )
<!--SEGUIDORES-->
<div class="boxy xtralarge">
<div class="boxy-title">
<h3>Top post con más seguidores</h3>
<span class="icon-noti follow-n"></span>
</div>
<div class="boxy-content">
{if !$tsTops.seguidores}<div class="emptyData">Nada por aqui</div>
{else}
{foreach from=$tsTops.seguidores item=p key=i}
<div class="TP_id">{$i+1}</div><li class="categoriaPost clearfix" style="background-image:url({$tsConfig.tema.t_url}/images/icons/cat/{$p.c_img})"><a href="{$tsConfig.url}/posts/{$p.c_seo}/{$p.post_id}/{$p.post_title|seo}.html">{$p.post_title}</a> <div class="TP_puntos">{$p.post_seguidores}</div></li>
{/foreach}
{/if}
</div>
</div>Debajo agregar:
Código: ( Seleccionar Todo )
<!--RECOMENDADOS-->
<div class="boxy xtralarge">
<div class="boxy-title">
<h3>Top post más recomendado</h3>
<span class="monac_icons ma_share" style="margin-top:-15px;float:right;"></span>
</div>
<div class="boxy-content">
{if !$tsTops.shared}<div class="emptyData">Nada por aqui</div>
{else}
{foreach from=$tsTops.shared item=p key=i}
<div class="TP_id">{$i+1}</div><li class="categoriaPost clearfix" style="background-image:url({$tsConfig.tema.t_url}/images/icons/cat/{$p.c_img})"><a href="{$tsConfig.url}/posts/{$p.c_seo}/{$p.post_id}/{$p.post_title|seo}.html">{$p.post_title}</a> <div class="TP_puntos">{$p.post_shared}</div></li>
{/foreach}
{/if}
</div>
</div>Default
[img]Registrate o inicia tu sesión para ver este contenido[/img]
themes --> default --> templates --> modules --> m.top_posts.tpl
Buscar:
Código: ( Seleccionar Todo )
<!--SEGUIDORES-->
<div class="boxy xtralarge">
<div class="boxy-title">
<h3>Top post con más seguidores</h3>
<span class="icon-noti follow-n"></span>
</div>
<div class="boxy-content">
{if !$tsTops.seguidores}<div class="emptyData">Nada por aqui</div>
{else}
<ol>
{foreach from=$tsTops.seguidores item=p}
<li class="categoriaPost clearfix" style="background-image:url({$tsConfig.tema.t_url}/images/icons/cat/{$p.c_img})"><a href="{$tsConfig.url}/posts/{$p.c_seo}/{$p.post_id}/{$p.post_title|seo}.html">{$p.post_title|truncate:45}</a> <span>{$p.post_seguidores}</span></li>
{/foreach}
</ol>
{/if}
</div>
</div>Debajo agregar:
Código: ( Seleccionar Todo )
<!--RECOMENDADO-->
<div class="boxy xtralarge">
<div class="boxy-title">
<h3>Top post más recomendado</h3>
<span class="icon-noti follow-n"></span>
</div>
<div class="boxy-content">
{if !$tsTops.shared}<div class="emptyData">Nada por aqui</div>
{else}
<ol>
{foreach from=$tsTops.shared item=p}
<li class="categoriaPost clearfix" style="background-image:url({$tsConfig.tema.t_url}/images/icons/cat/{$p.c_img})"><a href="{$tsConfig.url}/posts/{$p.c_seo}/{$p.post_id}/{$p.post_title|seo}.html">{$p.post_title|truncate:45}</a> <span>{$p.post_shared}</span></li>
{/foreach}
</ol>
{/if}
</div>
</div>V5
[img]Registrate o inicia tu sesión para ver este contenido[/img]
themes --> default --> templates --> modules --> m.top_posts.tpl
Buscar:
Código: ( Seleccionar Todo )
<div class="futopbox">
<div class="htops">
<h2>Top post con más seguidores</h2>
<span class="i issgu"></span>
</div>
<div class="boxtops">
{if $tsTops.seguidores}
{foreach from=$tsTops.seguidores item=p key=i}
<div class="zetops">
<b>{$i+1}</b>
<img src="{$tsConfig.tema.t_url}/images/icons/cat/{$p.c_img}"/>
<a href="{$tsConfig.url}/posts/{$p.c_seo}/{$p.post_id}/{$p.post_title|seo}.html">{$p.post_title|limit:35}</a>
<span>{$p.post_seguidores}</span>
</div>
{/foreach}
{else}
<div class="nada-gris">Nada por aqui</div>
{/if}
</div>
</div>Debajo agregar:
Código: ( Seleccionar Todo )
<div class="futopbox">
<div class="htops">
<h2>Top post más recomendado</h2>
<span class="i issgu"></span>
</div>
<div class="boxtops">
{if !$tsTops.shared}
{foreach from=$tsTops.shared item=p}
<div class="zetops">
<b>{$i+1}</b>
<img src="{$tsConfig.tema.t_url}/images/icons/cat/{$p.c_img}"/>
<a href="{$tsConfig.url}/posts/{$p.c_seo}/{$p.post_id}/{$p.post_title|seo}.html">{$p.post_title|limit:35}</a>
<span>{$p.post_shared}</span>
</div>
{/foreach}
{else}
<div class="nada-gris">Nada por aqui</div>
{/if}
</div>
</div>V6
[img]Registrate o inicia tu sesión para ver este contenido[/img]
themes --> default --> templates --> modules --> m.top_posts.tpl
Buscar:
Código: ( Seleccionar Todo )
<div class="futopbox">
<div class="htops">
<h2>Top post con más seguidores</h2>
<span class="i issgu"></span>
</div>
<div class="boxtops">
{if $tsTops.seguidores}
{foreach from=$tsTops.seguidores item=p key=i}
<div class="zetops">
<b>{$i+1}</b>
<span class="toup-{$p.c_seo}" style="margin-right: 5px;margin: 2px 10px 0 0;width: 16px;height: 16px;float: left;text-shadow: none;color: #25c2f5;" title="{$p.c_seo}"></span>
<a href="{$tsConfig.url}/posts/{$p.c_seo}/{$p.post_id}/{$p.post_title|seo}.html">{$p.post_title|limit:35}</a>
<span>{$p.post_seguidores}</span>
</div>
{/foreach}
{else}
<div class="nada-gris">Nada por aqui</div>
{/if}
</div>
</div>Debajo agregar:
Código: ( Seleccionar Todo )
<div class="futopbox">
<div class="htops">
<h2>Top post con más seguidores</h2>
<span class="i issgu"></span>
</div>
<div class="boxtops">
{if !$tsTops.shared}
{foreach from=$tsTops.shared item=p}
<div class="zetops">
<b>{$i+1}</b>
<span class="toup-{$p.c_seo}" style="margin-right: 5px;margin: 2px 10px 0 0;width: 16px;height: 16px;float: left;text-shadow: none;color: #25c2f5;" title="{$p.c_seo}"></span>
<a href="{$tsConfig.url}/posts/{$p.c_seo}/{$p.post_id}/{$p.post_title|seo}.html">{$p.post_title|limit:35}</a>
<span>{$p.post_shared}</span>
</div>
{/foreach}
{else}
<div class="nada-gris">Nada por aqui</div>
{/if}
</div>
</div>Creditos: Debes agradecer para ver el contenido...


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