Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    New Pligger ShanePike's Avatar
    Joined
    Apr 2008
    Posts
    12
    Thanks
    Received:0
    Given: 0

    A New Way to Generate Karma

    I spent quite a bit of time yesterday trying to understand the karma equation (Pligg's, not the universe's), but ultimately abandoned it because of this one factor: a user who had registered and posted a single link that day had the highest karma of any user on my site -- many of whom had been submitting, voting, and commenting regularly. Maybe it will be different when my Pligg-powered site is getting 1,000 (or 10,000) visits/day (rather than 100), but right now the built-in karma function doesn't provide the results I'm looking for.

    So today I wrote my own. It's pretty basic, but I wanted to share it because it will be easy for others to modify to suit their particular situation.

    A few notes:
    1. It uses a pure points system, not a 1 to 20 scale like the original karma. (There may be a good reason for the scale, so I may change that later.)

    2. For my site, I'm outputting a Top Contributors list to a text file for display in the sidebar so we don't hit the database on every page load. If you want to do that, you'll need to change the location of the text file in the fopen command near the end to match whatever you want to use. If you don't want to create the file, you can delete everything after "Output the List."

    3. The variables at the top control the scores. You'll definitely want to adjust those based on what habits you want to encourage in your users.

    I know I've forgotten something, so let me know if you have questions!
    Attached Files Attached Files

  2. #2
    Senior Member fingerprn's Avatar
    Joined
    Jul 2007
    Posts
    123
    Thanks
    Received:1
    Given: 0
    I'm looking forward to taking a look at it. I solved your first problem by making it so that a new member can't be listed as a top contributor for at least 10 days. During that time, their karma starts dropping unless they continue to contribute. It's not a perfect solution, but it keeps spammers from suddenly being a top contributor.

  3. #3
    Pligg Developer/Coder/Designer ChuckRoast's Avatar
    Joined
    Dec 2005
    Location
    Pliggville USA
    Posts
    9,118
    Thanks
    Received:396
    Given: 73
    Version
    SVN Build
    Site
    http://Pligg.com/chuckroast
    ShanePike

    Great contribution. We've been talking about making some drastic changes to the karma system because it really hasn't changed since the first beta and most people either are not aware of it or don't know how to use it/

    At this point looking at anything fresh from a contributer is totally cool.

    I was tossing around the idea of a rule-set determined on karma score. For example. A new user may have to enter captcha when entering a comment but someone who has a higher score does not.

    Possibly having certain modules only available to members as they grow along with the site based on rank.

    It's nice to see a good conversation in here for a change.

    Refreshing
    Help Keep ChuckRoast Home
    Today's Pligg Blog Post


  4. #4
    Pligg Donor ditto's Avatar
    Joined
    Dec 2007
    Posts
    40
    Thanks
    Received:0
    Given: 0
    Quote Originally Posted by fingerprn View Post
    ...I solved your first problem by making it so that a new member can't be listed as a top contributor for at least 10 days. During that time, their karma starts dropping unless they continue to contribute...
    May i ask how you did that?

  5. #5
    New Pligger ShanePike's Avatar
    Joined
    Apr 2008
    Posts
    12
    Thanks
    Received:0
    Given: 0
    Thanks, ChuckRoast. I appreciate it. I haven't been using Pligg long (just a month or two now), but I've become a big fan. I'm still very wary of making newbie mistakes, but I figured if I uploaded this script and got blasted, at least I'd learn something

  6. #6
    Pligg Donor davemackey's Avatar
    Joined
    Aug 2007
    Posts
    226
    Thanks
    Received:0
    Given: 0
    Very nice job. Thanks!
    Dave.

  7. #7
    New Pligger sircommy's Avatar
    Joined
    Aug 2008
    Posts
    5
    Thanks
    Received:0
    Given: 0
    great job, gonna check it myself also

  8. #8
    Pligg Donor rubber2002's Avatar
    Joined
    Jul 2007
    Posts
    286
    Thanks
    Received:0
    Given: 0
    Great Job ShanePike. Thanks

  9. #9
    Constant Pligger Andtony's Avatar
    Joined
    Feb 2007
    Posts
    226
    Thanks
    Received:0
    Given: 0
    Thanks. Sounds good I will try it.

  10. #10
    Casual Pligger nuki's Avatar
    Joined
    Mar 2008
    Posts
    30
    Thanks
    Received:0
    Given: 0
    If I like to add sidebar_topcontributors.inc in my sidebar...how can I write the line?

    May be something that...

    {assign var=sidebar_module value="Karma"}{include file=$the_template_sidebar_modules."/sidebar_topcontributors.inc"}


    Thanks

Page 1 of 3 123 LastLast

Similar Threads

  1. Dynamically generate entire website(s)
    By akoyich in forum Questions & Comments
    Replies: 1
    Last Post: 10-15-2009, 12:34 PM
  2. how to generate sitemap
    By jaf7 in forum Questions & Comments
    Replies: 5
    Last Post: 10-08-2009, 04:13 AM
  3. How-To generate Full URL Thumbnail?
    By Giorgi in forum Questions & Comments
    Replies: 1
    Last Post: 05-02-2008, 03:26 PM
  4. Generate totals fix for discarded stories
    By redwine in forum Questions & Comments
    Replies: 0
    Last Post: 01-12-2008, 01:53 PM
  5. mod to auto-generate title
    By gjeffrey in forum Questions & Comments
    Replies: 1
    Last Post: 01-15-2007, 04:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg