¡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 Top user con más Puntos (Act 1.3)
#1

4
Mejor respuesta del mensaje Top user con más Puntos (Act 1.3)
[img]Registrate o inicia tu sesión para ver este contenido[/img]


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

Buscar:

/*
        editComentario()
    */ 


Arriba agregar:

/* 
      TOPs Punteador
    */
     
function tops_puntos(){
         global 
$tsCore$tsUser;
         
$query db_exec(array(__FILE____LINE__), 'query'"SELECT * FROM u_miembros ORDER BY user_puntos DESC LIMIT 5");
         
$data result_array($query);
         
//
         
return $data;
     } 


En post.php --> inc --> class --> post.php

Buscar:

// AFILIADOS
        
$smarty->assign("tsAfiliados",$tsAfiliado->getAfiliados()); 


Debajo agregar:

$smarty->assign("tsTOPs_p",$tsPosts->tops_puntos()); 


En t.home.tpl --> themes --> default --> templates --> t.home.tpl

Buscar:

{include file='modules/m.home_stats.tpl'


Debajo agregar:

{include file='modules/m.home_tops_puntos.tpl'


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...
Responder
#2

0
Gracias
Responder
#3

1
(01-25-2021, 03:39 PM)Chctrpgo escribió: Debes agradecer para ver el contenido...
[img]Registrate o inicia tu sesión para ver este contenido[/img]


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

Buscar:
 
/*
        editComentario()
    */ 


Arriba agregar:
 
/* 
      TOPs Punteador
    */
     
function tops_puntos(){
         global 
$tsCore$tsUser;
         
$query db_exec(array(__FILE____LINE__), 'query'"SELECT * FROM u_miembros ORDER BY user_puntos DESC LIMIT 5");
         
$data result_array($query);
         
//
         
return $data;
     } 


En post.php --> inc --> class --> post.php

Buscar:
 
// AFILIADOS
        
$smarty->assign("tsAfiliados",$tsAfiliado->getAfiliados()); 


Debajo agregar:
 
$smarty->assign("tsTOPs_p",$tsPosts->tops_puntos()); 


En t.home.tpl --> themes --> default --> templates --> t.home.tpl

Buscar:
 
{include file='modules/m.home_stats.tpl'


Debajo agregar:
 
{include file='modules/m.home_tops_puntos.tpl'


Y subir esta carpeta


Mega


Google Drive


Mediafire



Creditos:

gracias
Responder


Compartir en:

Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)