Top Poster's Block Problem

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Top Poster's Block Problem
Howard
CZ Newbie
Howard has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jun 29, 2004
0.00 posts per day
Posts: 1
Points: 229
   
Hey ya'll-
I was working on a customer's site, and at somepoint, the Top-Posters Block stopped working correctly. IT still lists the top posters, but their Avatars don't show up anymore. The website is [ Register or login to view links on this board. ] and the block is on the lower left corner of the main page. If you could take a look for me, I'd really appreciate it. The code is as listed below.



<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com)         */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/************************************************************************/
/* block-Top_Posters.php                                                */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2003 by chatserv (chatserv@nukeresources.com)          */
/* http://nukeresources.com                                             */
/************************************************************************/
/* Cosmetic changes by dvsDave at [ Register or login to view links on this board. ]             */
/* http://controlbooth.com                                              */
/************************************************************************/

if (eregi("block-Top_Posters.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}
$a = 1;
    global $user, $cookie, $sitename, $prefix, $user_prefix, $dbi, $admin, $module_name;
    $result=sql_query("SELECT user_id, username, user_posts, user_avatar FROM ".$user_prefix."_users ORDER BY user_posts DESC LIMIT 0,5", $dbi);
    while(list($user_id, $username, $user_posts, $user_avatar) = sql_fetch_row($result, $dbi)) {
$content .= "<div align=\"left\"><table class=\"outer\" cellpadding=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" cellspacing=\"1\" border=\"0\">";
$content .= "<tr class=\"even\" vAlign=\"middle\">";

$content .= "<td align=\"middle\">";
if (eregi("http://", $user_avatar)) {
$content .= " ;; ;;<a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$user_id\"><img alt src=\"$user_avatar\" border =\"0\" width=\"32\"></a></td>";
}
else
$content .= " ;; ;;<a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$user_id\"><img alt src=\"modules/Forums/images/avatars/$user_avatar\" border =\"0\" width=\"32\"></a></td>";
$content .= "<td align=\"middle\"> ;;<a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$user_id\"><b>$username</b></a> ;;<br> ;;<a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$username\">Posts:</a> ;;<br>";
$content .= " ;;<a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$username\">$user_posts</a> ;;</td>";
$content .= "</tr>";
$content .= "</table></div><hr>";
}

?>


Thanks alot man. I already made a post over at nukecops, but I thought I'd give you a shot too.

_________________
Col. Howard
"You can get much further with a kind word and a gun than you can with a kind word alone."
-Al Capone.

505 Parachute Infantry Regiment
Second in Command [ Register or login to view links on this board. ]
Vent: 69.41.248.116:3822
COD: 65.254.50.10


Back to top Reply with quote
#2   re: Top Poster's Block Problem
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.70 posts per day
Posts: 5530
Points: 481,695
   
the block isn't there anymore....have you got it fixed?



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum