Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

Vellenger

Ágata
  • Content Count

    4680
  • Posts on chatbox

    35
  • Joined

  • Last visited

  • Days Won

    4

Vellenger last won the day on March 6 2022

Vellenger had the most liked content!

Community Reputation

2690 The best

About Vellenger

  • Rank
    Webmasters
  • Birthday 04/30/1983

Recent Profile Visitors

22903 profile views
  1. Estas?

    1. airkpo

      airkpo

      para ti si mi reina -r 

  2. Quedo Bien, quizas sumarle el la cantidad de usuarios que ocupan los rangos se veria mejor. +1
  3. Bueno aqui les dejo a pedido de un user.. La verdad que no me quedo muy claro lo que me pedia. Ya que era poder poner los modulos d elos top user, tops posts, comentarios, No se si lo queria que sea dentro de los post ya que no hay mucho espacio.. Hasi que lo agregue en el lado lateral.. Use el theme de gonzalo V5 asi que para otros temas esto puede cambiar el estylo.. Comenzamos.. En el archivo c.posts.php buscamos : /* lalala */ Y agregamos arriba: /* Top Post General*/ function act_tpost(){ global $tsUser, $tsCore; $query = mysql_query("SELECT p.post_id, p.post_category, p.post_title, p.post_puntos, c.c_seo FROM p_posts AS p LEFT JOIN p_categorias AS c ON c.cid = p.post_category WHERE p.post_status = 0 ORDER BY p.post_puntos DESC LIMIT 10"); $data = result_array($query); // return $data; } /* Top User General*/ function act_tuser(){ global $tsUser, $tsCore; $query = mysql_query("SELECT SUM(p.post_puntos) AS total, u.user_id, u.user_name, u.user_baneado, u.user_posts, u.user_activo FROM p_posts AS p LEFT JOIN u_miembros AS u ON p.post_user = u.user_id WHERE p.post_status = 0 AND u.user_activo = 1 AND u.user_baneado = 0 GROUP BY p.post_user ORDER BY total DESC LIMIT 10"); $data = result_array($query); // return $data; } /* Ultimos TOP comentarios General*/ function act_cuser(){ global $tsUser, $tsCore; $query = mysql_query("SELECT SUM(p.post_comments) AS total, u.user_id, u.user_name, u.user_baneado, u.user_posts, u.user_activo FROM p_posts AS p LEFT JOIN u_miembros AS u ON p.post_user = u.user_id WHERE p.post_status = 0 AND u.user_activo = 1 AND u.user_baneado = 0 GROUP BY p.post_user ORDER BY total DESC LIMIT 10"); $data = result_array($query); // return $data; } /* Ultimos comentarios*/ function act_comuser(){ global $tsUser, $tsCore; $query = mysql_query("SELECT * FROM p_comentarios AS c LEFT JOIN u_miembros AS u ON c.c_user = u.user_id LEFT JOIN p_posts AS p ON p.post_id = c.c_post_id LEFT JOIN p_categorias AS ca ON ca.cid = p.post_category WHERE p.post_status = 0 AND u.user_baneado = 0 AND u.user_activo = 1 ORDER BY c.cid DESC LIMIT 10"); $data = result_array($query); // return $data; } EN el Archivo posts.php Buscamos: // DATOS DEL AUTOR $smarty->assign("tsAutor",$tsPosts->getAutor($tsPost['post_user'])); Y Agregamos abajo: // DATOS TOP POSTS, TOP USUARIOS, TOP COMENTADOR, ULTIMOS COMENTARIOS... $smarty->assign("tsPostpv",$tsPosts->act_tpost()); $smarty->assign("tsUserpv",$tsPosts->act_tuser()); $smarty->assign("tsCompv",$tsPosts->act_cuser()); $smarty->assign("tsComupv",$tsPosts->act_comuser()); En el archivo m.posts_autor.tpl buscamos al final: {/if} y Agregamos despues {include file='modules/m.top_posts_general.tpl'} Agregamos esto a su extras.css #box-top-post{width:100%;height:auto;overflow: hidden; border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;-webkit-border-radius:5px 5px 0 0;-o-border-radius:5px 5px 0 0;} .top-p-g h3{padding: 5px 0 5px 0;color:#FFF;font-weight:bold;font-size:16px;border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;-webkit-border-radius:5px 5px 0 0;-o-border-radius:5px 5px 0 0;} #box-top-post ul li{font-family: Helvetica,Arial;display:block;padding:3px 0 3px 0;}.top-p-g{width:100%;background:#00608A;text-align:center;} #box-top-post ul li a{font-weight: 600;color:#A6A6A6;}.ver-mas-v{background:#EAF7FF;text-align:center;padding: 3px 0 3px 0;border-top:1px solid #81BBE0;}.ver-mas-v a{color:#005CA5;} Y Subimos el archivo m.top_posts_general.tpl a modules/ http://www.mediafire.com/?mkomrn866tmf2k8 Les dejo el archivo + las instruciones en txt para los que lo necesiten.. Espero que les sea de utilidad.. (Los tops son con los datos genrales) Hasta la Proxima..
×