02-01-2021, 07:03 PM
[img]Registrate o inicia tu sesión para ver este contenido[/img]
En c.posts.php --> inc --> class --> c.posts.php
Buscar:
Código:
/*
getRelated()
*/Arriba agregar:
Código:
/*
Postautor($user_id)
*/
function Postautor($user_id = NULL){
global $tsUser;
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT p.post_id, 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_user = \''.(int)$user_id.'\' AND p.post_id <> \''.(int)intval($_GET['post_id']).'\' ORDER BY p.post_date DESC LIMIT 10');
$data['posts'] = result_array($query);
return $data;
}En posts.php --> inc --> php --> posts.php
Buscar:
Código:
// DATOS DEL AUTOR
$smarty->assign("tsAutor",$tsPosts->getAutor($tsPost['post_user']));Debajo agregar:
Código:
$smarty->assign("tsPostautor",$tsPosts->Postautor($tsPost['post_user']));En t.posts.tpl --> themes --> default --> templates --> t.posts.tpl
Buscar:
Código:
{include file='modules/m.posts_banner.tpl'}Reemplazar por:
Código:
{include file='modules/m.posts_mas_autor.tpl'}En m.posts_related.tpl --> themes --> default --> templates --> modules --> m.posts_related.tpl
Código:
<div class="post-relacionados">Por:
Código:
<div class="post-relacionados" style="width:370px;">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...
Greditos: Kmario19