Points wont show up in in forum top poster block??

  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 wont show up in in forum top poster block??
zebra
CZ Newbie
zebra has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Oct 05, 2004
0.00 posts per day
Posts: 19
Points: 4,524
   
Hello,
I have downloaded the points mod and activated it.
I have made 2 user groups and made the points for each catagories and that is set.
When i click away or view something the points show up on the account page and just with the points block alone but will not show up on the top forum poster block w/ points???

Help please! and Thanks



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.04 posts per day
Posts: 8089
Points: 494,430
   
The top posters block uses the data field "user_points" the points system your using has the data field "points" so they dont work unless you open the file and find the referances to "user_points" and change them to just "points". If you have problems post the contents of the block and I will make the changes for you.




_________________
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: Points wont show up in in forum top poster block??
zebra
CZ Newbie
zebra has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Oct 05, 2004
0.00 posts per day
Posts: 19
Points: 4,524
   
Thanks for your help. You guys are the greatest here at coezwiz icon_mrgreen.gif

Dwight



<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com) */
/* [ Register or login to view links on this board. ] */
/* */
/* 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) */
/* [ Register or login to view links on this board. ] */
/************************************************************************/
/* Cosmetic changes by dvsDave at [ Register or login to view links on this board. ] */
/* [ Register or login to view links on this board. ] */
/************************************************************************/
/************************************************************************/
/* Points addon by Telli telli-at-codezwiz.com */
/* [ Register or login to view links on this board. ] */
/************************************************************************/


if (eregi("block-Top_Posters.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
global $prefix, $db;
$sql = "SELECT * FROM ".$prefix."_users ORDER BY user_posts DESC LIMIT 0,5";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
$user_id = $row[user_id];
$uname = $row[username];
$user_posts = $row[user_posts];
$user_avatar = $row[user_avatar];
$user_points = $row[user_points];
$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 .= "&nbsp;&nbsp;<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 .= "&nbsp;&nbsp;<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\">&nbsp;<a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$user_id\">$uname</a>&nbsp;<br>&nbsp;<a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$uname\">Posts:</a>";
$content .= "&nbsp;<a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$uname\">$user_posts</a><br>&nbsp;Points:&nbsp;$user_points&nbsp;</td>";
$content .= "</tr>";
$content .= "</table></div><hr>";
}

?>



Back to top Reply with quote
#4   re: Points wont show up in in forum top poster block??
zebra
CZ Newbie
zebra has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Oct 05, 2004
0.00 posts per day
Posts: 19
Points: 4,524
   
I fixed it with changing to the poins like you said.
I found only 2 places in the forum/point block to change it so it wasnt that bad to fix.
Thanks for your help as usual. icon_mrgreen.gif

<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com) */
/* [ Register or login to view links on this board. ] */
/* */
/* 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) */
/* [ Register or login to view links on this board. ] */
/************************************************************************/
/* Cosmetic changes by dvsDave at [ Register or login to view links on this board. ] */
/* [ Register or login to view links on this board. ] */
/************************************************************************/
/************************************************************************/
/* Points addon by Telli telli-at-codezwiz.com */
/* [ Register or login to view links on this board. ] */
/************************************************************************/


if (eregi("block-Top_Posters.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
global $prefix, $db;
$sql = "SELECT * FROM ".$prefix."_users ORDER BY user_posts DESC LIMIT 0,7";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
$user_id = $row[user_id];
$uname = $row[username];
$user_posts = $row[user_posts];
$user_avatar = $row[user_avatar];
$points = $row['points'];
$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 .= "&nbsp;&nbsp;<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 .= "&nbsp;&nbsp;<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\">&nbsp;<a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$user_id\">$uname</a>&nbsp;<br>&nbsp;<a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$uname\">Posts:</a>";
$content .= "&nbsp;<a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$uname\">$user_posts</a><br>&nbsp;Points:&nbsp;$points&nbsp;</td>";
$content .= "</tr>";
$content .= "</table></div><hr>";
}

?>



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