top user points block. can i remove admins and moderators?

  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 user points block. can i remove admins and moderators?
Dazrulez
CZ Newbie
Dazrulez has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jul 23, 2005
0.00 posts per day
Posts: 2
Points: 216
   
hi, i would really apreciate some help with this:

basically, my user top points block works perfect and i have the poitns system set up great, i added a donate points system so that only admins can donate points to users and there points dont go down, but i have a top user points block.. and i would like to be able to remove moderators and admins from apearing in the block..

i am currently using this code for my top points block


<?php

if (eregi("block-Top_User_Points.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.html");
    die();
}
    $plimit = 10;
    global $user_prefix, $db;
    $result=$db->sql_query("SELECT user_id, username, points FROM ".$user_prefix."_users WHERE user_id !='1' ORDER BY points DESC LIMIT 0,$plimit");
    while(list($user_id, $username, $points) = $db->sql_fetchrow($result)) {
    $user_id = intval($user_id);
    $points = intval($points);
    $content .= "<img src=\"images/blocks/icon_poll.gif\" height=\"14\" width=\"17\">&nbsp;<a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$user_id\"><b>$username</b></a>-Points($points)<br>";
}

?>


i know i would need to add some if statements to check user_level.. but im not sure where to start.. im using phpnuke 7.5.. if i could get some help that could start me off on how i can code it into this i would really apreciate it very much

thanks for any help
~Daz


Back to top Reply with quote
#2   re: top user points block. can i remove admins and moderator
Dazrulez
CZ Newbie
Dazrulez has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jul 23, 2005
0.00 posts per day
Posts: 2
Points: 216
   
please anybody?



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