bbPress Plugin Browser »

Reputation (Karma) for bbPress (0.0.6)

Download

Version: 0.0.6

Last Updated: 2009-3-11

Requires bbPress Version: 0.8.3 or higher

Compatible up to: 0.9

Author Homepage »

Plugin Homepage »

Donate to this plugin »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(3)

Your Rating

Author: _ck_


  1. it works fine, but can you make it so the username links to their website field on their profile. i know basic sql, but not enough to edit what you have. http://www.massbase.com - on the bottom right on the sidebar.. its all their. I got the rep points linking to their profiles fine, but i need to make the usernames link their websites.

    <?php
    		global $bbdb;
    		$results=$bbdb->get_results("SELECT user_login as name,meta_value as reputation FROM $bbdb->usermeta LEFT JOIN $bbdb->users ON ID=user_id WHERE meta_key='bb_reputation' ORDER BY CAST(meta_value as UNSIGNED) DESC LIMIT 10");
    		foreach ($results as $result) {echo  "$result->name(<a style='font-weight: bold; color: black;' href='http://www.massbase.com/profile/$result->name'>$result->reputation</a>) , ";}
    		?>

    thanks

    Posted: 2 years ago #
  2. Isn't it store in user_url ?
    So try this

    <?php
    		global $bbdb;
    		$results=$bbdb->get_results("SELECT user_login as name,user_url,meta_value as reputation FROM $bbdb->usermeta LEFT JOIN $bbdb->users ON ID=user_id WHERE meta_key='bb_reputation' ORDER BY CAST(meta_value as UNSIGNED) DESC LIMIT 10");
    		foreach ($results as $result) {echo  "<a href='$result->user_url'>$result->name</a> (<a style='font-weight: bold; color: black;' href='http://www.massbase.com/profile/$result->name'>$result->reputation</a>) , ";}
    		?>

    Of course some users won't have a url, so you'll have to write some code to handle that. Or don't directly link to their url and just use the profile link instead.

    Posted: 2 years ago #
  3. works most perfectly, cheers ck, ill handle the non-existing urls with members later on.

    most apprecieated!

    Posted: 2 years ago #
  4. beansarenotfruit

    Member

    Hey, there's no options showing up in the admin sidebar, and I don't know enough scripting to remedy that myself. Is there an easy way to drop some code in there to make it show up? That would be great!

    Posted: 2 years ago #
  5. Feature requests:

    1) Option to show the graph only (instead of both points AND the graph)
    2) Option to show graph in profile info, not just in threadauthor info

    Thanks for another great plugin!

    Posted: 2 years ago #
  6. jasonpeinko

    Member

    Is there an easy way to make it so a user cannot give reputation more than one time per post?

    Posted: 2 years ago #
  7. I actually think someone needs to work on this plugin. It has loads of potential. :D

    Posted: 2 years ago #
  8. I would like to use this plugin in BuddyPress, can anyone give me some pointers as to how to go about it. Or is there another buddypress plugin that is better suited?

    Posted: 2 years ago #
  9. Bug Report:

    The reputation points are off when posts are spammed and deleted.

    Steps to reproduce -

    When the plugin is active and set to award points when a participating member creates a topic the points get updated when the member successfully publishes the post.

    However, if that post is deleted or marked as spam the reputation points don't reflect that change (i.e not deducted from that members profile)

    This bug can be abused by members as one may continue to create topics while the moderator may mark them as spam but the reputation points will still increase.

    On the side note: The plugin features mentions that the admin can deduct points too but I am still to find out how to make this work.

    Another suggestion is that the reputation points can only be whole numbers and I would suggest that it should include decimals too. For large forums where members might post hundreds of topics it would be better if each topic results only in 0.1 or 0.3 points.

    Posted: 1 year ago #
  10. Thanks for the detailed report Touch.

    Unfortunately this plugin is very old and I never updated it.

    It uses a poor technique (in hindsight) where the data is stored in the user's meta which limits speed.

    To correct karma on deletions a full recount should be done but unfortunately I never wrote it for this plugin.

    Posted: 1 year ago #

RSS feed for this topic

Add a Comment

You must log in to post.