09-02-2021, 11:41 AM
10
Captura[img]Registrate o inicia tu sesión para ver este contenido[/img]
En c.posts.php --> inc --> class --> c.posts.php
Antes de la última llave ( } ) agregar:
Código PHP: ( Seleccionar Todo )
//TAGS RELEVANTES
function getTags() {
$limit_tags = 15;
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT p.post_tags FROM p_posts AS p LEFT JOIN u_miembros AS u ON p.post_user = u.user_id WHERE p.post_status = \'0\' && u.user_activo = \'1\' && u.user_baneado = \'0\' ORDER BY RAND() LIMIT '.$limit_tags);
$data = result_array($query);
//
foreach($data as $i => $val) {
$tags = explode(',', $val['post_tags']);
$data[$i]['name'] = $tags[rand(0, count($tags))];
$data[$i]['size'] = rand(1,5);
}
return $data;
}
En posts.php --> inc --> php --> posts.php
Buscar:
Código PHP: ( Seleccionar Todo )
$smarty->assign("tsStats",$tsTops->getStats());
Debajo agregar:
Código PHP: ( Seleccionar Todo )
// TAGS RELEVANTES
$smarty->assign("tsTags",$tsPosts->getTags());
En t.home.tpl --> themes --> default --> templates --> t.home.tpl
Donde quieran agregan esto:
Código PHP: ( Seleccionar Todo )
{include file='modules/m.home_tags_relevantes.tpl'}
En estilo.css --> themes --> default --> estilo.css
Al final agregar:
Código PHP: ( Seleccionar Todo )
.tag-size1{font-size:180%;line-height:27px;font-weight:700}.tag-size2{font-size:150%;line-height:22px;opacity:.8}.tag-size3{font-size:125%;line-height:19px;opacity:.7}.tag-size4{font-size:100%;opacity:.6}.tag-size2:hover,.tag-size3:hover,.tag-size4:hover{opacity:1}
Y subir esta carpeta
Mega
Debes agradecer para ver el contenido...
Google Drive
Debes agradecer para ver el contenido...
Mediafire
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