Top 5 Posters - Red X's

  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 5 Posters - Red X's
nixor
CZ Newbie
nixor has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Mar 03, 2004
0.00 posts per day
Posts: 6
Points: 256
   
I'm using the Mod CZForum-blocks. For the top posters I am getting red X's for the Avatar for members who have their avatar linked off site. Is there a fix for this?

This is the URL that it's trying to pull.

[ Register or login to view links on this board.]



Back to top Reply with quote
#2   re: Top 5 Posters - Red X's
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Try this one let me know how it goes.

// Begin Top Posters
global $user_prefix, $dbi;
$tdsize = 20;
$members = 5;
$result=sql_query("SELECT user_id, username, user_posts, user_avatar FROM ".$user_prefix."_users ORDER BY user_posts DESC LIMIT 0,$members", $dbi);
while(list($user_id, $username, $user_posts, $user_avatar) = sql_fetch_row($result, $dbi)) {
if ( ereg( "(http)", $user_avatar) )
{
$avatar2 = "<img src=\"$user_avatar\"><br> border=\"0\"vspace=\"10\" hspace=\"10\" width=\"48\" align=\"left\">";
} else
$avatar = $user_avatar;
$avatar2 = "<img src=\"modules/Forums/images/avatars/$avatar\" border=\"0\" vspace=\"10\" hspace=\"10\" width=\"48\" align=\"left\">";
if ($avatar2 == "<img src=\"modules/Forums/images/avatars/") {
         $avatar2 = "";
         }
if ( empty($user_avatar) )

   {
}
$Topposters .="<td width=\"$tdsize%\" class=\"row1\"><font class=\"content\"><a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$user_id\">$avatar2</a><br><a href=\"forum-userprofile-$user_id.html\">$username</a><br><a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$username\">Posts:</a>   <a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$username\">$user_posts</a></font></td>";
}
echo "<hr width='95%' noShade><br><table border=\"1\" cellspacing=\"2\" width=\"100%\" class=\"forumline\"><tr><td class=\"cat\" colspan=\"2\">Top 5 Posters</font></td></tr></table>";
echo "<table border=\"1\" cellspacing=\"1\" cellpadding=\"5\" width=\"100%\" class=\"forumline\" align=\"center\"><tr>";
echo "$Topposters";
echo "</tr></table>";
/*Copyright notice - Do not remove*/
echo "<div align=\"right\"><small>";
echo "Forum Blocks &copy; 2003-2004 <a href=\"http://codezwiz.com\">Codezwiz</a></small><br></div>";
/*Copyright notice - Do not remove*/
// End Top Posters




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Top 5 Posters - Red X's
nixor
CZ Newbie
nixor has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Mar 03, 2004
0.00 posts per day
Posts: 6
Points: 256
   
Produced this error.

mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/ninetn/public_html/includes/sql_layer.php on line 286



Back to top Reply with quote
#4   re: Top 5 Posters - Red X's
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Ok try it now.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   
nixor
CZ Newbie
nixor has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Mar 03, 2004
0.00 posts per day
Posts: 6
Points: 256
   
It fixed that error but didnt fix the problem. I'll just show the link to explain what I mean.
[ Register or login to view links on this board. ]

Looks like its pulling the one Avatar that is uploaded on the forum and pasting it to those who have one linked, except the first person, just another Red X.

Thanks for the help! Really appreciate your time and effort.



Back to top Reply with quote
#6   re: Top 5 Posters - Red X's
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
// Begin Top Posters
global $user_prefix, $dbi;
$tdsize = 20;
$members = 5;
$result=sql_query("SELECT user_id, username, user_posts, user_avatar FROM ".$user_prefix."_users ORDER BY user_posts DESC LIMIT 0,$members", $dbi);
while(list($user_id, $username, $user_posts, $user_avatar) = sql_fetch_row($result, $dbi)) {
if ( ereg( "(http://)", $user_avatar) )
{
$avatar2 = "<img src=\"$user_avatar\" border=\"0\" vspace=\"10\" hspace=\"10\" width=\"48\" align=\"left\">";
} else
$avatar = $user_avatar;
$avatar2 = "<img src=\"modules/Forums/images/avatars/$avatar\" border=\"0\" vspace=\"10\" hspace=\"10\" width=\"48\" align=\"left\">";
if ($avatar2 == "<img src=\"modules/Forums/images/avatars/") {
         $avatar2 = "";
         }
if ( empty($user_avatar) )

   {
}
$Topposters .="<td width=\"$tdsize%\" class=\"row1\"><font class=\"content\"><a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$username\">$avatar2</a><br><a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$username\">$username</a><br><a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$username\">Posts:</a>  <a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$username\">$user_posts</a></font></td>";
}
echo "<hr width='95%' noShade><br><table border=\"1\" cellspacing=\"2\" width=\"100%\" class=\"forumline\"><tr><td class=\"cat\" colspan=\"2\">Top 5 Posters</font></td></tr></table>";
echo "<table border=\"1\" cellspacing=\"1\" cellpadding=\"5\" width=\"100%\" class=\"forumline\" align=\"center\"><tr>";
echo "$Topposters";
echo "</tr></table>";
/*Copyright notice - Do not remove*/
echo "<div align=\"right\"><small>";
echo "Forum Blocks &copy; 2003-2004 <a href=\"http://codezwiz.com\">Codezwiz</a></small><br></div>";
/*Copyright notice - Do not remove*/
// End Top Posters


Ok lets try this one I had a typo in the one above.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#7   
nixor
CZ Newbie
nixor has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Mar 03, 2004
0.00 posts per day
Posts: 6
Points: 256
   
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/ninetn/public_html/includes/sql_layer.php on line 286



Back to top Reply with quote
#8   re: Top 5 Posters - Red X's
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Ok i took out the points try it now.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#9   
nixor
CZ Newbie
nixor has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Mar 03, 2004
0.00 posts per day
Posts: 6
Points: 256
   
this error again.

Looks like its pulling the one Avatar that is uploaded on the forum and pasting it to those who have one linked, except the first person, just another Red X.

Thanks for the help! Really appreciate your time and effort.



Back to top Reply with quote
#10   re: Top 5 Posters - Red X's
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
// Begin Top Posters
global $user_prefix, $dbi;
$tdsize = 20;
$members = 5;
$result=sql_query("SELECT user_id, username, user_posts, user_avatar FROM ".$user_prefix."_users ORDER BY user_posts DESC LIMIT 0,$members", $dbi);
while(list($user_id, $username, $user_posts, $user_avatar) = sql_fetch_row($result, $dbi)) {
if ( ereg( "(http://)", $user_avatar) )
{
$avatar2 = "<img src=\"$user_avatar\" border=\"0\" vspace=\"10\" hspace=\"10\" width=\"48\" align=\"left\">";
} else {
$avatar = $user_avatar;
$avatar2 = "<img src=\"modules/Forums/images/avatars/$avatar\" border=\"0\" vspace=\"10\" hspace=\"10\" width=\"48\" align=\"left\">";
}
if ($avatar2 == "<img src=\"modules/Forums/images/avatars/") {
         $avatar2 = "";
         }
if ( empty($user_avatar) )

   {
}
$Topposters .="<td width=\"$tdsize%\" class=\"row1\"><font class=\"content\"><a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$username\">$avatar2</a><br><a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$username\">$username</a><br><a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$username\">Posts:</a>&nbsp;<a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$username\">$user_posts</a></font></td>";
}
echo "<hr width='95%' noShade><br><table border=\"1\" cellspacing=\"2\" width=\"100%\" class=\"forumline\"><tr><td class=\"cat\" colspan=\"2\">Top 5 Posters</font></td></tr></table>";
echo "<table border=\"1\" cellspacing=\"1\" cellpadding=\"5\" width=\"100%\" class=\"forumline\" align=\"center\"><tr>";
echo "$Topposters";
echo "</tr></table>";
/*Copyright notice - Do not remove*/
echo "<div align=\"right\"><small>";
echo "Forum Blocks &copy; 2003-2004 <a href=\"http://codezwiz.com\">Codezwiz</a></small><br></div>";
/*Copyright notice - Do not remove*/
// End Top Posters




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
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