¡Bienvenido! ¿Aún no estás registrado?, deberás registrarte antes de poder usar el Chat, Comentar y Descargar en el Foro. Usa un email válido para la activación.
Calificación:
  • 0 voto(s) - 0 Media
  • 1
  • 2
  • 3
  • 4
  • 5

COMPLEMENTOS Destacados (Act 1.3)
#1

4
Mejor respuesta del mensaje Destacados (Act 1.3)Capturas
[img]Registrate o inicia tu sesión para ver este contenido[/img]
 
[img]Registrate o inicia tu sesión para ver este contenido[/img]
 
[img]Registrate o inicia tu sesión para ver este contenido[/img]


En c.tops.php --> inc --> class --> c.tops.php

Buscar:
 
function getHomeTopPosts(){
// AYER
$data['ayer'] = $this->getHomeTopPostsQuery($this->setTime(2));
// SEMANA
$data['semana'] = $this->getHomeTopPostsQuery($this->setTime(3));
// MES
$data['mes'] = $this->getHomeTopPostsQuery($this->setTime(4));
// HISTÓRICO
$data['historico'] = $this->getHomeTopPostsQuery($this->setTime(5)); 
 
 
Debajo agregar:
 
// 15 MINUTOS
$data['15min'] = $this->getHomeTopPostsQuery($this->setTime(9));
// 1HORA
$data['hora'] = $this->getHomeTopPostsQuery($this->setTime(6));
// 3HORAS
$data['3horas'] = $this->getHomeTopPostsQuery($this->setTime(7));
// 6HORAS
$data['6horas'] = $this->getHomeTopPostsQuery($this->setTime(8)); 
 
 
Buscar:
 
// TODO EL TIEMPO
case 5:
//
$data['start'] = 0;
$data['end'] = $tiempo;
//
break; 
 
  
Debajo agregar:
 
// 15 Minutos
case 9:
//
$resta $this->setSegs(1'15min') + $this->setSegs(1'min') + $seg;
$data['start'] = $tiempo $resta;
$data['end'] = $tiempo;
//
break;
// 30 Minutos
case 10:
//
$resta $this->setSegs(1'30min') + $this->setSegs(1'min') + $seg;
$data['start'] = $tiempo $resta;
$data['end'] = $tiempo;
//
break;
// 1 HORA
case 6:
//
$resta $this->setSegs(1'dia') + $this->setSegs(1'min') + $seg;
$data['start'] = $tiempo $resta;
$data['end'] = $tiempo;
//
break;
// 3 HORAS
case 7:
//
$resta $this->setSegs(1'3horas') + $this->setSegs(1'min') + $seg;
$data['start'] = $tiempo $resta;
$data['end'] = $tiempo;
//
break;
// 6 HORAS
case 8:
//
$resta $this->setSegs(1'6horas') + $this->setSegs(1'min') + $seg;
$data['start'] = $tiempo $resta;
$data['end'] = $tiempo;
//
break; 
 
 
Buscar:
 
case 'mes' :
$segundos $tiempo 2592000;
break; 
 
 
Debajo agregar:
 
case 'hora' :
$segundos $tiempo 3600;
break;
case 
'3horas' :
$segundos $tiempo 10800;
break;
case 
'6horas' :
$segundos $tiempo 32400;
break;
case 
'15min' :
$segundos $tiempo 900;
break;
case 
'30min' :
$segundos $tiempo 1800;
break; 
 
 
En t.home.tpl --> themes --> default --> templates --> t.home.tpl

Buscar:
 
{include file='modules/m.home_last_comments.tpl'
 
 
Debajo agregar:
 
{if $tsUser->is_member}
{include 
file='modules/m.home_destacados.tpl'}
{/if} 
 
 
En head_menu.tpl --> themes --> default --> templates --> sections --> head_menu.tpl

Buscar:
 
{if $tsConfig.c_fotos_private == '1' && !$tsUser->is_member}{else}
<
li class="tabbed {if $tsPage == 'fotos'}here{/if}" id="tabbedfotos">
<
a title="Ir a Fotos" onclick="menu('fotos', this.href); return false;" href="{$tsConfig.url}/fotos/">Fotos <img alt="Drop Down" src="{$tsConfig.tema.t_url}/images/arrowdown.png"></a>
</
li>
{/if} 
 
 
Debajo agregar:
 
<li class="tabbed {if $tsPage == 'destacados'}here{/if}" id="tabbedtops">
<
a title="destacados" onclick="menu('tops', this.href); return false;" href="{$tsConfig.url}/destacados/">Destacados </a>
</
li
 
 
Buscar:
 
<li class="tabbed {if $tsPage != 'home' && $tsPage != 'posts' && $tsPage != 'tops' && $tsPage != 'admin' && $tsPage != 'fotos'}here{/if}" id="tabbedhome"
 
 
Reemplazar por:
 
<li class="tabbed {if $tsPage != 'home' && $tsPage != 'posts' && $tsPage != 'tops' && $tsPage != 'admin' && $tsPage != 'fotos' && $tsPage != 'destacados'}here{/if}" id="tabbedhome"
 
 
En head_submenu.tpl --> themes --> default --> templates --> sections --> head_submenu.tpl

Buscar:
 
<div id="subMenuFotos" class="subMenu {if $tsPage == 'fotos'}here{/if}">
<
ul class="floatL tabsMenu">
<
li{if $tsAction == '' && $tsAction != 'agregar' && $tsAction != 'album' && $tsAction != 'favoritas' || $tsAction == 'ver'} class="here"{/if}><a href="{$tsConfig.url}/fotos/">Inicio</a></li>
{if 
$tsAction == 'album' && $tsFUser.0 != $tsUser->uid}<li class="here"><a href="{$tsConfig.url}/fotos/{$tsFUser.1}">&Aacute;lbum de {$tsFUser.1}</a></li>{/if}
{if 
$tsUser->is_admod || $tsUser->permisos.gopf}<li{if $tsAction == 'agregar'} class="here"{/if}><a href="{$tsConfig.url}/fotos/agregar.php">Agregar Foto</a></li>{/if}
<
li{if $tsAction == 'album' && $tsFUser.0 == $tsUser->uid} class="here"{/if}><a href="{$tsConfig.url}/fotos/{$tsUser->nick}">Mis Fotos</a></li>
</
ul>
<
div class="clearBoth"></div>
</
div
 
 
Debajo agregar:
 
<div id="subMenuTops" class="subMenu {if $tsPage == 'destacados'}here{/if}">
<
ul class="floatL tabsMenu">
<
li{if $tsAction == 'posts'} class="here"{/if}><a href="{$tsConfig.url}/destacados/posts/">Posts</a></li>
<
li{if $tsAction == 'usuarios'} class="here"{/if}><a href="{$tsConfig.url}/destacados/usuarios/">Usuarios</a></li>
</
ul>
<
div class="clearBoth"></div>
</
div




Y subir esta carpeta

Mega
Debes agradecer para ver el contenido...

Googel Drive
Debes agradecer para ver el contenido...

Mediafire
Debes agradecer para ver el contenido...



Creditos: Debes agradecer para ver el contenido...
Responder
#2

0
Gracias
Responder


Compartir en:

Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)