Fork me on GitHub

Part of user points module hack help needed  Bottom

  • Hi

    I have question/suggestion/request (call it as you like) for Postnuke Module User Points.

    What I want to accomplish is to execlude some usernames (people who works on site) and give chance to visitors to get some points and rewards.

    Here is code:

    [PHP:1:c5398cbec4][/php:1:c5398cbec4]


    Now what I need is to call something before starting or at beggining of this
    if ($totalpnts > 0) { so listed members (sample: Webmaster, admin, Anonmyous) won't show at list.

    Any idea how to accomplish this?


    Thanks
  • I'd like to do the same thing but haven't attempted it.

    THeres probably two ways of doing it, either exclude those names from the SQL statement or build a list first and exclude them that way.
  • sounds simple enough.. just add a check for a group name .. if a user is a member of the group, they are not counted/displayed.
  • Also, does User Points ever work right anyways? I mean, I think it takes the monthly totals for comments, reviews, stories etc, but I think it keeps the post count for ever.

    So at the end of the month you start over with most of your points, but your forum points dont restart every month. So if yo upost in the forum you can beat all others regardless of how much stories/etc they add.

This list is based on users active over the last 60 minutes.