Group Mods

  • Profile picture of Hugo
  • Profile picture of r-a-y
  • Profile picture of @mercime

new version of BuddyPress Rate Forum Posts (59 posts)

Started 2 years, 2 months ago by: Dwenaus

  • Profile picture of Dwenaus Dwenaus said 2 years, 2 months ago:

    Just a heads up that there is a new version of BuddyPress Rate Forum Posts. This version mainly adds admin options, so if you make customizations to the variables, future upgrades won’t erase them. I also added the karma points in the member view.

  • Profile picture of snark snark said 2 years, 2 months ago:

    Great plugin, @Dwenaus ! I just upgraded, and it’s working fine, but you mention “admin options” and the Readme says, “admin screen to change karma levels, and post highligting [sic] and diminishing values”, but I can’t seem to find the admin options. Is there a admin page in the WP backend, or just a config file. Thanks.

  • Profile picture of modemlooper modemlooper said 2 years, 2 months ago:

    I suggest the profile Post Rating: be placed under the avatar. It’s a bit wonky and hidden where its at.

  • Profile picture of snark snark said 2 years, 2 months ago:

    @Dwenaus Nevermind, I just fount the Rate Forum Posts settings under the Buddypress menu in the WP back-end. That seems like a natural place to me to put setting for Buddypress plugins, but this is the first one I’ve installed to do that — the other’s I’ve tried all add their specific settings under the general Settings area. Thanks again for the great work.

  • Profile picture of epsi epsi said 2 years, 2 months ago:

    I like to try any plugin and, hei…
    @Dwenaus, this Rate Forum Posts plugin looks cool.

    It is fine in my localhost but I found this error in live site

    http://iluni-ftui.org/groups/situs-iluni/forum/

    WordPress database error You have an error in your SQL syntax;
    check the manual that corresponds to your MySQL server version for the right syntax to use near
    ‘WHERE object_type = ‘bb_post’ AND meta_key = ‘rfp_rating’ AND object_id = 1′ at line 1 for query
    SELECT meta_value FROM WHERE object_type = ‘bb_post’ AND meta_key = ‘rfp_rating’ AND object_id = 1
    made by require, require_once, do_action, call_user_func_array, bp_core_do_catch_uri, load_template, require_once, locate_template, load_template, require_once, do_action, call_user_func_array, rfp_after_topic_title, rfp_get_post_rating_signed, rfp_get_post_rating

    It solved by adding code below in rate.inc.php

    require_once ABSPATH.’bb-config.php’;
    global $bb_table_prefix, $bb_meta_table;
    $bb_meta_table = $bb_table_prefix . ‘meta’;

    Thanks for the plugin.
    Now it works. But since I’m still a WP noob.
    I don’t know if it is politically correct.

  • Profile picture of r-a-y r-a-y said 2 years, 2 months ago:

    @Dwenaus

    I recently came across a problem similar to @etiviti (rich!)’s.

    In rate.php on line 3, you believe that bb-config.php will always reside in the root directory, but if you’re using an external bbPress integration, this won’t be the case.

    The easy way to fix this is to grab the bb config location using:
    get_site_option('bb-config-location');

    This would be for MU, not sure where the bb-config-location will be in standard WP.

    [EDIT]
    etiviti (rich!) already provided the solution!

    Declare the global $bp and use $bp->site_options['bb-config-location'];

    global $bp;
    require_once($bp->site_options['bb-config-location']);
  • Profile picture of Dwenaus Dwenaus said 2 years, 2 months ago:

    sounds good to me. I’ll make that change and post an update.

    I’m working heavily on the group email notifications plugin now, so this change may not happen for a bit. but it will be exactly as you describe in the second example.

  • Profile picture of Dwenaus Dwenaus said 2 years, 2 months ago:

    I’ve made the changes mentioned above. so that if you have a bbpress install at a different location, the plugin will work.

    I’ve added the ability to hide karma points. it is accessed in the admin.

    I also noticed a bug with how the karma rating was showing up on the members page and fixed it.

    the new version is 1.2 and should be visible here momentarily: http://wordpress.org/extend/plugins/buddypress-rate-forum-posts/

    enjoy.

  • Profile picture of Dwenaus Dwenaus said 2 years, 2 months ago:

    @epsi @r-a-y an update has been made.

  • Profile picture of r-a-y r-a-y said 2 years, 2 months ago:

    @dweanus

    Just checked out the latest update, looks like you’re using ABSPATH for bb-config.php.
    Unless I’m wrong, I don’t think that will fix the problem for external bbPress installs.

    I see you commented out the bb-config-location line, but you didn’t define global $bp.

    Also, mrjarbenne had a problem with the new version:

    http://buddypress.org/forums/topic/rate-forum-posts-plugin-error

  • Profile picture of mrjarbenne mrjarbenne said 2 years, 2 months ago:

    I’ll post the problem here too. Thanks @r-a-y for pointing me in the direction of this forum topic.

    When I try to rate forum posts using this plugin http://wordpress.org/extend/plugins/buddypress-rate-forum-posts/ I get this error message popping up across the forum post.

    <b>Warning</b>: require_once(/usr/home/litcirc/public_html/bb-config.php) [function.require-once]: failed to open stream: No such file or directory in <b>/usr/home/litcirc/public_html/wp-content/plugins/buddypress-rate-forum-posts/rate.php</b> on line <b>5</b>

    Line 5 in rate.php is “require_once ABSPATH . ‘bb-config.php’;”

    I’m out of my element here. Is the plugin looking for bb-config.php and cannot find it? according to the dashboard bbpress is configured correctly.

    Any thoughts?

  • Profile picture of Dwenaus Dwenaus said 2 years, 2 months ago:

    @r-a-y and @mrjarbenne thanks for the quick feedback. I fixed it to the commented out code and removed the abspath. The $bp global is not necessary because the scope of that file is already global (I guess – and it works :)

    I posted a new version 1.2.1

  • Profile picture of r-a-y r-a-y said 2 years, 2 months ago:

    Cool! Glad it works without the global ;)

  • Profile picture of modemlooper modemlooper said 2 years, 2 months ago:

    Can you please wrap the profile header output in a div with a class? I keep doing this and it gets knocked off on every update.

    Thanks!

  • Profile picture of mrjarbenne mrjarbenne said 2 years, 2 months ago:

    @dwenaus. 1.2.1 fixed it up for me. Thanks for the quick support.