Modified Top posters

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Modified Top posters
skullcramp
CZ Newbie
skullcramp has been a member for over 20 year's 20 Year Member
usa.gif idaho.gif
Occupation: General Manager
Gender: Male
Fav. Sports Team: San Diego Chargers
Website:
Status: Offline
Joined: Apr 28, 2004
0.00 posts per day
Posts: 28
Points: 2,662
   
I'm trying to modify a script posted in your downloads called top posters. I like how it reads on your site, but the script I downloaded just showed top posters with no points. I've got it show the points but I don't know how to get it to stack like yours.

Posts: 00
Points: 00


Here's the mess I've made so far... Can someone lend a helping hand.


oh.. and the profile linking doesn't work either.
I'm using 7.1 with 2.0.6

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, points FROM ".$user_prefix."_users ORDER BY user_posts DESC LIMIT 0,10", $dbi);
    while(list($user_id, $username, $user_posts, $user_avatar, $points) = 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 ($user_avatar=="") {
$content .= " ;; ;;<a href=\"forum-userprofile-$user_id.html\"><img alt src=\"modules/Forums/images/avatars/noimage.gif\" border =\"0\" width=\"32\"></a></td>";
}
else
if (eregi("http://", $user_avatar)) {
$content .= " ;; ;;<a href=\"forum-userprofile-$user_id.html\"><img alt src=\"$user_avatar\" border =\"0\" width=\"32\"></a></td>";
}
else
$content .= " ;; ;;<a href=\"forum-userprofile-$user_id.html\"><img alt src=\"modules/Forums/images/avatars/$user_avatar\" border =\"0\" width=\"32\"></a></td>";
$content .= "<td align=\"middle\"> ;;<a href=\"forum-userprofile-$user_id.html\"><b>$username</b></a> ;;<br> ;;<a href=\"fsearch-author-$username.html\">Posts:</a> ;;<br>";

$content .= " ;;<a href=\"fsearch-author-$username.html\">$user_posts</a> ;;<br></td>";


$content .= "<td align=\"middle\"> ;;<a href=\"forum-userprofile-$user_id.html\"><b></b></a> ;;<br> ;;<a href=\"fsearch-author-

$username.html\">Points:</a> ;;<br>";
$content .= " ;;<a href=\"fsearch-author-$username.html\">$points</a> ;;</td>";

$content .= "</tr>";
$content .= "</table></div><hr>";
}

?>


Thanks...


Back to top Reply with quote
#2   re: Modified Top posters
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.71 posts per day
Posts: 5530
Points: 481,695
   
did you dl the GT-Top Posters block

This the Top Forum Posters block see it on the left of this site. Updated for GT-Nextgen 0.4.
[ Register or login to view links on this board. ]

that's the same one on this site



Back to top Reply with quote
#3   re: Modified Top posters
skullcramp
CZ Newbie
skullcramp has been a member for over 20 year's 20 Year Member
usa.gif idaho.gif
Occupation: General Manager
Gender: Male
Fav. Sports Team: San Diego Chargers
Website:
Status: Offline
Joined: Apr 28, 2004
0.00 posts per day
Posts: 28
Points: 2,662
   
Yep, that's the one I downloaded. Look at the code for it, It's different than the block that is on the home page of this site.



Back to top Reply with quote
#4   re: Modified Top posters
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.71 posts per day
Posts: 5530
Points: 481,695
   
icon_redface.gif ok then.....so I copied the wrong file...it should be the

Top Posters w-Points

This block is only for use with the points mod or cash mod version2.x. This block will list the Top 5 posters for your boards. See it here on the left side bottom. Has avatar, post amount, and points

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



Back to top Reply with quote
#5   re: Modified Top posters
skullcramp
CZ Newbie
skullcramp has been a member for over 20 year's 20 Year Member
usa.gif idaho.gif
Occupation: General Manager
Gender: Male
Fav. Sports Team: San Diego Chargers
Website:
Status: Offline
Joined: Apr 28, 2004
0.00 posts per day
Posts: 28
Points: 2,662
   
Sweetness... Thank you much...



Back to top Reply with quote
#6   re: Modified Top posters
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.71 posts per day
Posts: 5530
Points: 481,695
   
yw...sorry for the first post lol



Back to top Reply with quote
#7   re: Modified Top posters
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,430
   
Yes you just have to change the user_points to points just like you had done in your block for Nuke points.




_________________
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
#8   re: Modified Top posters
skullcramp
CZ Newbie
skullcramp has been a member for over 20 year's 20 Year Member
usa.gif idaho.gif
Occupation: General Manager
Gender: Male
Fav. Sports Team: San Diego Chargers
Website:
Status: Offline
Joined: Apr 28, 2004
0.00 posts per day
Posts: 28
Points: 2,662
   
I saw that hehe, Can you believe I figured it out all me own... Nice block. I built the nuke site for all my family to play on, and they get a big kick out of seeing there pionts.

I just saw a nuke site with a pretty cool shout box, you guys or gals know where I could score one?



Back to top Reply with quote
#9   re: Modified Top posters
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.71 posts per day
Posts: 5530
Points: 481,695
   
there's quite a few of them. check these posts for the links to many of them
[ Register or login to view links on this board. ]
[ Register or login to view links on this board. ]



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