WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Moderation
Not working with BP 1.6.1 + WP 3.4.2 (22 posts)

  1. Andrew Tibbetts
    Member
    Posted 1 year ago #

    When I click on the flag it stays white and nothing is entered into the moderation admin.

    http://wordpress.org/extend/plugins/bp-moderation/

  2. benjaminniess
    Member
    Posted 1 year ago #

    Hello,

    Same problem for me

  3. benjaminniess
    Member
    Posted 1 year ago #

    andrewgtibbetts you can disable the ajax feature then it will work but the page will reload each time you click. You just need to comment the wp_enqueue_script line (in classes/bpModFrontend.php line 16).

  4. midopicture
    Member
    Posted 1 year ago #

    Hello,

    i have got the same problems like andrewgtibbetts. Now I've disabled the ajax feature like its's described above. Now the flag's getting red, but theres still nothing entered into the moderation admin. Can you please help me to solve this problem?

    Thanks

  5. midopicture
    Member
    Posted 1 year ago #

    Hi,
    we solved the problem and we could now see the flagged posts in the backend.

    Regards

  6. Andrew Tibbetts
    Member
    Posted 1 year ago #

    Thanks for the fix, Ben! Hopefully an update will bring back the ajax...

  7. midopicture
    Member
    Posted 1 year ago #

    Hi,
    i have is fix with ajax!

    WP 3.4.2
    BB 1.6.1
    Multi Networt

  8. ntoqiakt
    Member
    Posted 1 year ago #

    Thanks for the fix. It's working fine albeit without ajax.

    Midopicture, would you care to share your fix?

    Thanks.

  9. michel
    Member
    Posted 1 year ago #

    The ajaxurl variable has been changed (http://bpdevel.wordpress.com/2012/05/01/ajax-changes-in-buddypress-1-6/)

    Here is a quick fix.
    in bpModLoader.php:
    change (line 62)

    if (is_admin()) {

    to

    if ( is_admin() && !$_REQUEST['bpmod-fe'] ) {

    add (after line 89)

    if ( $mainclass == 'bpModActions' ) {
    	add_action('wp_ajax_ajax-flag', array(&$bpMod, 'ajax_flag'));
    	add_action('wp_ajax_ajax-unflag', array(&$bpMod, 'ajax_unflag'));
    }

    in bpModFrontend.php:
    change (line 144)

    $get_data = array(
    	'bpmod-action' => $action,
    	'type' => $type,
    	'id' => $id,
    	'id2' => $id2,
    	'_wpnonce' => $nonce
    );

    to

    $get_data = array(
        'bpmod-action' => $action,
        'type' => $type,
        'id' => $id,
        'id2' => $id2,
        '_wpnonce' => $nonce,
        'action' => 'ajax-'.$action,
        'bpmod-fe' => 1
    );

    That should do the trick.

    Cheers

  10. ntoqiakt
    Member
    Posted 1 year ago #

    Hey Michel!!

    Thanks very much for that!

  11. Intervik
    Member
    Posted 1 year ago #

    BP Moderation plugin update version buddypress 6.1 and wordpress latest.

    Thank you All sons of Buddypress! And michel for sharing.

    This plugin is Very important for our installations. Should be a core function. Sometimes I don understand why the BP developer see this. We are Users, not developers -interested in a open source flat miracle, lending wordpress core.

    Now using over 30 simple plugins just to get BP to work in a standard network way. And each upgrade breaks something.

    "Howdy" No please,

    Well, still, a huge HUG for all whos working with the Buddypress and WordPress, and giving it us for free.

    / Jonas Lundman

  12. Andrew Tibbetts
    Member
    Posted 1 year ago #

    Wow. Great Fix!
    Thanks Michel.

  13. sidjags
    Member
    Posted 1 year ago #

    i tried the fixes you suggested, but still dont seem to have much luck getting it to work... am running the latest bp install 1.7 though... u think that would be a reason?

  14. michel
    Member
    Posted 1 year ago #

  15. billzy
    Member
    Posted 1 year ago #

    Hey Michael,

    I tried that out but it unfortunately didn't fix the same problem that sidjags has.

    Any other ideas? Running wp 3.5.1 bp 1.6.4 and all the moderation fixes you mentioned above... It was working before the most recent updgrade to wp & bp.

    Thanks,

  16. Intervik
    Member
    Posted 1 year ago #

    Using WordPress 3.5.1 and BP Version 1.6.4 with Clean Buddypress theme default and the fix still works. However,

    TIP

    Turn error reporting all ON and DEBUG on, I think there is a NOTICE of a unknown index in the plugin backend settings. Fix that Notice, otherwise the CUSTOM QUERY Link wont show up or work.

    It might also create other problems Im not aware of.

    BP Version 1.7, sorry, 80% of my other plugins wont work and this Great plugin might have to be rewritten.

  17. mrjarbenne
    Member
    Posted 1 year ago #

    I've completed all of the above fixes, which has fixed most of the issues, but I'm finding that the "view" link on flagged content in the Admin panel doesn't go to the actual content.

    If an activity item is flagged, the link to view takes you to a link formatted in this way:

    http://domain.com/activity/p/155761/

    When the permalink for the flagged activity is:

    http://domain.com/members/username/activity/155761/

    Is anyone else running into this issue? Did I miss a step?

    Thanks for any help you can offer.

  18. blurb
    Member
    Posted 1 year ago #

    Intervik,

    Did you manage to fix that notice?

    Notice: Undefined index: bpmod-fe in C:\UniServer\www\depl\wp-content\plugins\bp-moderation\bpModLoader.php on line 62

    Would you mind sharing your fix?

    Thanks!

  19. blurb
    Member
    Posted 1 year ago #

    Let me answer my own question in case it helps anyone:

    on bpModLoader.php, change line 63 from:

    if ( is_admin() && !$_REQUEST['bpmod-fe'] ) {

    to:

    if ( is_admin() && !isset( $_REQUEST['bpmod-fe'] ) ) {

    This fixes all notices for me and the plugin works fine.

    Thanks to everyone for fixes.

  20. benjino
    Member
    Posted 1 year ago #

    I have BP 1.7.1 and WP 3.5.1 and it doesn't work. Does anyone have it working with these versions? Is the fix above making it work?

  21. mrjarbenne
    Member
    Posted 1 year ago #

    Making the changes suggested in this forum by Michel (the bp-loader code he shares above) fixed everything for me except Activity Comments posted on the site (Initial activity updates can be located from the Moderation dashboard, but if a subsequent comment on an activity is flagged, the link in the backend can't locate it.)

    The link to report an activity comment is also not adhering to the CSS rules of the other links under an activity comment.

    I'm running BP 1.7, WP 3.5.1 (MS) and a twentythirteen lightly tweaked child.

    Here's an image: http://screencast.com/t/8Vc5uWjnB

  22. francescolaffi
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, I'm the plugin author, I neglected it for some months due to other commitments, sorry for the inconvenience, glad you could find some workarounds.

    I'm currently working to get it compatible with bp 1.7 and 1.8, if you are willing to get involved in it, as tester or developer, read this post: http://flweb.it/2013/06/bp-moderation-is-broken-help-fix-it/
    (tldr: dev version https://github.com/francescolaffi/BP-Moderation report issues to https://github.com/francescolaffi/BP-Moderation/issues )

    thanks

    @mrjarbenne: I'll look into the activity comments flagging problems, for the css the faster solution for you is to fix directly the styling, the plugin can't integrate well with all themes (or if there is some standard for those links that it's not following report it).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.