Points in a block on home page

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Points in a block on home page
sirius
CZ Newbie
sirius has been a member for over 19 year's 19 Year Member
uk.gif
Age: 47
Gender: Male
Website:
Status: Offline
Joined: Dec 21, 2004
0.00 posts per day
Posts: 17
Points: 2,415
   
Hi all,
i have installed points mod and it work very well but can you tell me where i can get that Top Forum Posters block or the code for it, would like to put the points on my user info block (top user bit) i have on my home page.
The block show at the min user name and nuke points would like to put on it forum points and post no.ect,

anybody help please.
my website: [ Register or login to view links on this board. ]



Back to top Reply with quote
#2   re: Poonit show in a block on home page
webshark
PayPal Donation
CZ Moderator
 Codezwiz Site Donator
webshark has been a member for over 20 year's 20 Year Member
turkey.gif
Age: 55
Gender: Male
Website:
Status: Offline
Joined: Mar 23, 2004
0.09 posts per day
Posts: 643
Points: 57,200
   
hello
check here plz
[ Register or login to view links on this board. ]




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#3   re: Poonit show in a block on home page
sirius
CZ Newbie
sirius has been a member for over 19 year's 19 Year Member
uk.gif
Age: 47
Gender: Male
Website:
Status: Offline
Joined: Dec 21, 2004
0.00 posts per day
Posts: 17
Points: 2,415
   
Thank's m8 just what i was looking for.

having a problem with it this is the code on my block for top 5 user:
$content .= "<img src=\"http://www.siriusdave.co.uk/images/blocks/group-2.gif\"> <a href=\"http://www.siriusdave.co.uk/modules.php?name=User_Groups&op=users\"><b><u>Top 5 users:</a></u></b><br><br>\n";
$plimit = 5;
global $user_prefix, $db ;
$result=$db->sql_query("SELECT user_id, username, user_avatar, points FROM ".$user_prefix."_users WHERE user_id !='1' ORDER BY points DESC LIMIT 0,$plimit");
    while(list($user_id, $username, $user_avatar, $points ) = $db->sql_fetchrow($result)) {
    $user_id = intval($user_id);
    $points = intval($points);
   $content .="<div align=\"left\">";
$content .="<center><table class=\"outer\" cellpadding=\"2\" style=\"border-collapse: collapse\" bordercolor=\"#FFFFFF\" cellspacing=\"1\" border=\"0\" noresize>";
$content .="<tr class=\"even\" vAlign=\"middle\"><td align=\"middle\">";
$content .="<a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$user_id\">";
if (eregi("http://", $user_avatar)) {
$content .= "<center><img src=\"$user_avatar\" border =\"0\" width=\"32\" height=\"32\"></a></td>";
}
else
$content .= "<img src=\"modules/Forums/images/avatars/$user_avatar\" width=32 height=32 border=0></center></a>";
$content .="<a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$user_id\">";
$content .= "<b>$username</b><br></a> Site Points: $points";
$content .= "<br>Sirius pounds:";
$content .="</center></td></tr></table></center></div>";
}


How can i put the forum point and post in were sirius pounds is in the code:
still learn how to write php and not having much luck.
in the block i'd like it to show

avatar
name of user
site points (ie nuke points)
sirius pounds (ie forum points)
post made

at the min i have:
avatar
name of user
site points (ie nuke points)
downloaded the block but can not get it to work with the code:
any help please


Back to top Reply with quote
#4   re: Points in a block on home page
webshark
PayPal Donation
CZ Moderator
 Codezwiz Site Donator
webshark has been a member for over 20 year's 20 Year Member
turkey.gif
Age: 55
Gender: Male
Website:
Status: Offline
Joined: Mar 23, 2004
0.09 posts per day
Posts: 643
Points: 57,200
   
yw

but im not a coder sorry icon_sad.gif hope some1 can help u ( not my id icon_mrgreen.gif )




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#5   re: Points in a block on home page
sirius
CZ Newbie
sirius has been a member for over 19 year's 19 Year Member
uk.gif
Age: 47
Gender: Male
Website:
Status: Offline
Joined: Dec 21, 2004
0.00 posts per day
Posts: 17
Points: 2,415
   
Thanks any way m8 sorted it myself working ok now icon_mrgreen.gif



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