Skip to:
Content
Pages
Categories
Search
Top
Bottom

new plugin: BuddyPress Rate Forum Posts

  • Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    hey all, I’ve put together a new plugin, it will eventually live here:

    http://wordpress.org/extend/plugins/buddypress-rate-forum-posts/

    but for now you can find it here:

    http://bluemandala.com/plugins/bp-rate-forum-posts.zip

    basically, as the name says, you can rate forum posts. Thumbs up or thumbs down. Only logged in users can rate, and they can rate only once. Site-admins can rate as much as they want. (but not group admins).

    Users get a karma score based on how their posts have been rated. In the code you can choose between a pure average, a pure total of ratings. Default is set to somewhere in-between and average and a total.

    much inspiration was taken from the elegantly designed Intense Debate. Code was inspired for the excellently programmed iLikeThis plugin.

    eventually I might add ratings to other things such as group activity feed. (but not personal feeds)

    enjoy, and give feedback.

Viewing 25 replies - 1 through 25 (of 39 total)
  • Avatar of Andy Peatling
    Andy Peatling
    Keymaster

    @apeatling

    Nice – can you add it to the plugin repo?

    Avatar of Andy Peatling
    Andy Peatling
    Keymaster

    @apeatling

    Nevermind – I re-read what you said in the first line. :)

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    I am enjoying it! I will be changing icon colors to RED though, didn’t see the icons at first in my custom theme :-) Thank you.

    edit – Just to add that I also enjoy the fact that Site Admins can rate as much as they want, hehehe.

    Avatar of xfreme
    xfreme
    Participant

    @xfreme

    Thank you! It is one of the most expected features i’d like to have :)

    BTW, what with rating on comments? some of them sometimes are great and it’ll be good to rate them also!

    Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    @xfreme which comments are you talking about? blog comments or activity feed replies?

    Avatar of xfreme
    xfreme
    Participant

    @xfreme

    @Dwenaus about thread comments. Like on this picture: http://s006.radikal.ru/i213/1002/54/d2697bdd7e39.png

    That idea is from russian IT site http://habrahabr.ru/ . And sorry for my poor language :)

    Avatar of xfreme
    xfreme
    Participant

    @xfreme

    Sorry, it’s my fault :) Really great plugin! Wow la vita e` bella !

    small bug from downloading at the WP repo

    some of the js and css calls are referring to bp-rate-forum-posts instead of buddypress-rate-forum-posts

    even after updating the bad references – i can’t seem to get it to work. It will rate to a +1 but nothing is being saved to the db. Maybe the repo has a bad version?

    Avatar of stwc
    stwc
    Participant

    @stwc

    Very much like to use this one, but nothing seems to be happening after install in terms of UI on the site. No errors on activation, tried activation and activation site-wide both, logged-in as admin (using version from WP repo).

    Screenshot and description look great, though, and looking forward to getting it working!

    Avatar of stwc
    stwc
    Participant

    @stwc

    Fixed – I renamed the folder for the plugin to ‘bp-rate-forum-posts’ rather than ‘buddypress-rate-forum-posts’ where it auto-installs to, and it seems to work!

    Very nice, minimal-style, plugin. Kudos!

    Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    hey @stwc I didn’t know that the WP repository changed the folder name. I’ve updated the code so it should work now. thanks for the heads-up. I wonder if there is a way to avoid a hard-coded call like that. anyone?

    Avatar of stwc
    stwc
    Participant

    @stwc

    Great stuff, @Dwenaus. What did you settle on for the prefix — bp- or buddypress- ?

    Also, a feature request already! ;-) Maybe we could put a user’s total forum karma number on their profile?

    Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    @nuprn1 @stwc @xfreme I’ve updated the copy to fix the folder name bug that was introduced when I uploaded it to the WP repository. learn something everyday. The new version is 1.0.1. thanks stwc for the heads up and easy solution :)

    fast work! thanks.

    Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    missed a folder name change in the javascript so we’re up to version 1.0.2 now.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    The plugin adds a th to html for the +1 next to each forum post but doesn’t add the matching th to forum labels to even it out. People may not know who to fix this.

    <th id="th-rating"></th>

    EDIT: this maybe a css prob in the default BP . I see the code for adding cells to the forum list but when you do it fudges the forum header leaving a whitespace.

    Just noticed on WP single 2.9.2 BP 1.2.1 When this plugin is activated it breaks the sidebar toggle on the options in the admin.

    Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    @stwc that is a good idea putting the user karma in the profile. I’ll add that soon. buddypress- is the final name, erase the other one :)

    @Modemlooper good eye, that is true. I’ve added a trac request for BP 1.2.2 to add a action hook so I can add that missing TH tag. i forgot to mention that in the installation. to solve that go to /bp-themes/bp-default/forums/forums-loop.php and after line 32 line which is ‘<th id=”th-freshness”><?php _e( ‘Freshness’, ‘buddypress’ ) ?></th>’ you should add this

    <?php do_action( 'bp_directory_forums_extra_cell_head' ) ?>

    then the plugin will correctly put in the th tag.

    Avatar of stwc
    stwc
    Participant

    @stwc

    Just noticed on WP single 2.9.2 BP 1.2.1 When this plugin is activated it breaks the sidebar toggle on the options in the admin.

    Oh, man, thank you for mentioning that. I’ve been trying for the last hour to track down what was going on there! Going to have to deactivate it until we track down what’s happening there. Seems to only happen with the last two recent updates from the 1.0 of the plugin, I think.

    Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    what do you mean by ‘sidebar toggle on the options in the admin’ and is this related to the missing th tag?

    Avatar of stwc
    stwc
    Participant

    @stwc

    No — the plugin is killing all ajax functionality on the backend dashboard for WPMU itself!

    Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    yikes! I’ll look into that tomorrow. And only load the plugin if it’s in the front end.

    Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    @stwc and @Modemlooper thanks for the quick feedback. version 1.0.3 is out fixing the admin javascript conflict. I was missing if (!is_admin()) when adding the JS.

    Avatar of stwc
    stwc
    Participant

    @stwc

    Thanks!

    Edit: new version seems to be working perfectly… thanks again.

    Avatar of andrew_s1
    andrew_s1
    Participant

    @andrew_s1

    Thank you! It works well (wp 2.9.2, bp 1.2.1, rfp 1.0.3).

    But it does collide with BP-TinyMCE – if that’s active, then the thumbs up/down don’t appear on forum posts. I’ll have a poke around and see if I can find the cause.

    Avatar of xfreme
    xfreme
    Participant

    @xfreme

    i love this plugin

Viewing 25 replies - 1 through 25 (of 39 total)

The topic ‘new plugin: BuddyPress Rate Forum Posts’ is closed to new replies.