bbPress

Simple, fast, elegant

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: 9 months ago #
  2. _ck_

    Moderator

    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: 9 months ago #
  3. works most perfectly, cheers ck, ill handle the non-existing urls with members later on.

    most apprecieated!

    Posted: 9 months 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: 5 months 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: 5 months 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 months ago #
  7. I actually think someone needs to work on this plugin. It has loads of potential. :D

    Posted: 1 month 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: 1 month ago #

RSS feed for this topic

Add a Comment

You must log in to post.

Code is Poetry.