01-26-2021, 09:02 AM
2

[img]Registrate o inicia tu sesión para ver este contenido[/img]
En c.cuenta.php --> inc --> class --> c.cuenta.php
Buscar:
Código PHP: ( Seleccionar Todo )
// BLOQUEADO
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT * FROM `u_bloqueos` WHERE b_user = \''.$tsUser->uid.'\' AND b_auser = \''.(int)$user_id.'\' LIMIT 1');
$data['block'] = db_exec('fetch_assoc', $query);
Debajo agregar:
Código PHP: ( Seleccionar Todo )
// SEGURIDAD FAVORITOS
if($data['p_configs']['favs'] == 0){
$data['can_favs'] = false;
}elseif($data['p_configs']['favs'] == 3 && ($this->iFollow($user_id) || $tsUser->is_admod)){
$data['can_favs'] = true;
}elseif($data['p_configs']['favs'] == 4 && ($this->yFollow($user_id) || $tsUser->is_admod)){
$data['can_favs'] = true;
}elseif($data['p_configs']['favs'] == 5 && $tsUser->is_member){
$data['can_favs'] = true;
}elseif($data['p_configs']['favs'] == 6){
$data['can_favs'] = true;
}
// POSTS FAVORITOS
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT f.fav_date, p.post_id, p.post_title, p.post_portada, p.post_hits, c.c_nombre, c.c_seo, c.c_img FROM p_favoritos AS f LEFT JOIN p_posts AS p ON p.post_id = f.fav_post_id LEFT JOIN p_categorias AS c ON c.cid = p.post_category WHERE fav_user = \''.(int)$user_id.'\' AND p.post_status = \'0\' ORDER BY f.fav_id DESC LIMIT 10');
$data['favs'] = result_array($query);
// TOTAL
$query = result_array(db_exec(array(__FILE__, __LINE__), 'query', 'SELECT fav_id FROM p_favoritos WHERE fav_user = \''.(int)$user_id.'\''));
$data['favs_total'] = count($query);
Buscar:
Código PHP: ( Seleccionar Todo )
$see_hits = ($_POST['last_hits'] == 1 || $_POST['last_hits'] == 2) ? 0 : $_POST['last_hits'];
Debajo agregar:
Código PHP: ( Seleccionar Todo )
$last_favs = ($_POST['last_favs'] > 6) ? 5 : $_POST['last_favs'];
Una línea abajo al lado de:
Código PHP: ( Seleccionar Todo )
'hits' => $see_hits
Agregar:
Código PHP: ( Seleccionar Todo )
, 'favs' => $last_favs
En t.perfil --> themes --> default --> templates --> t.perfil.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
{include file='modules/m.perfil_medallas.tpl'}
Debajo agregar:
Código PHP: ( Seleccionar Todo )
{include file='modules/m.perfil_posts_favoritos.tpl'}
En m.cuenta_config.tpl --> themes --> default --> templates --> modules --> m.cuenta_config.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
{if !$tsUser->is_admod}
{if $tsPerfil.p_configs.rmp != 8}
Arriba agregar:
Código PHP: ( Seleccionar Todo )
<div class="field">
<label>ver últimos posts favoritos?</label>
<div class="input-fake">
<select name="last_favs" class="cuenta-save-7">
{foreach from=$tsPrivacidad item=p key=i}
{if $i != 1 && $i != 2}<option value="{$i}" {if $tsPerfil.p_configs.favs == $i}selected{/if}>{$p}</option>{/if}
{/foreach}
</select>
</div>
</div>
y subir esta carpeta
Mega
Google Drive
Mediafire
Demo
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