BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Media › Buddyboss media breaks Buddypress reply
Tagged: reply media comment
- This topic has 12 replies, 4 contibutors, and was last updated 8 years, 5 months ago by
Anonymous.
Question
February 19, 2016 at 12:51 pm #59709Answers
February 19, 2016 at 1:33 pm #59715@
AnonymousIt might be possible Media plugin is getting conflict any existing active plugin. Please try to de-activate you other media related or lightbox related plugin for a while to debug the issue.
Regards
February 19, 2016 at 1:37 pm #59716@tyler-keltingI deactived every plugin on my local site except for buddypress and buddyboss media. Still getting the same error.
I even tried it with the theme twentyfifteen with the same results.
February 19, 2016 at 2:28 pm #59723@
AnonymousHi @tyler-kelting, Please send your login details from our contact page
We will check at your site.Regards
Varun DubeyFebruary 19, 2016 at 2:42 pm #59726@tyler-kelting@vapvarun This is on a local website, so you logging in would be impossible.
February 20, 2016 at 1:44 pm #59807@
AnonymousHi I have tested with Media plugin again, it seems working fine
Please attached a screenshot or screencast to identify the issuehttps://drive.google.com/file/d/0Bzv-k-FcE80icWJUUjUwTl8wQVk/view
Regards
Varun DubeyMarch 7, 2016 at 10:16 am #61880@tyler-keltingWell it seems I’ve found the issue, but not what’s causing it. When BuddyBoss is active it will duplicate comment IDs. So on my current activity page there’s 4 list items with the same ID (<li id=”acomment-219″>). When I deactivate BuddyBoss it goes down to only 1 and the replys will work.
So the issue is when BuddyBoss is activated and you click ‘reply’ it doesn’t know which comment to scroll to since there are multiple on the page with the same ID.
March 8, 2016 at 12:03 am #61999@
AnonymousHope you are doing good today..
I have notified our development team to check the issue..
Regards
March 23, 2016 at 7:34 am #64829@tyler-keltingKind of hacky, but I was able to remove the duplicating comments with this and it works now:
$(document).ready(function () { $(".activity-header").each(function() { var thisHeadText = $(this).children("p").text(); //This was causing issues with the comment system so it's removed. if (thisHeadText.toLowerCase().indexOf("posted a new activity comment") >= 0){ $(this).parent().parent().detach(); } }); });
March 23, 2016 at 1:47 pm #64902@
AnonymousGreat 🙂
RegardsApril 1, 2016 at 4:19 pm #66541@charlie-wedelgmailDoes buddyboss media only work with the buddyboss theme? I have it installed on my website with the DynamiX Theme installed. It seemed to be working fine until it asked me to migrate the database, which I did until it said ‘success’. But now when I try to comment on someone’s activity post, the comment won’t display and an error comes up saying ‘There was an error posting your reply. Please try again.’. Any ideas? I tried deactivating the plugin and reverting to TwentySixteen theme but still the error persists.
April 1, 2016 at 7:20 pm #66553@charlie-wedelgmailNevermind 🙂 I found the issue. it was this function I had in bp_custom.php:
//Block certain activity types from being added function bp_activity_dont_save( $activity_object ) { $exclude = array( 'updated_profile', 'new_member', 'friendship_created', 'joined_group', 'activity_comment' ); // if the activity type is empty, it stops BuddyPress BP_Activity_Activity::save() function if( in_array( $activity_object->type, $exclude ) ) $activity_object->type = false; } add_action('bp_activity_before_save', 'bp_activity_dont_save', 10, 1 );
the last ‘activity_comment’ is what was creating the error. Removed it and now it works.
April 2, 2016 at 12:32 pm #66628@
AnonymousGreat 🙂
Regards
Varun Dubey
- The question ‘Buddyboss media breaks Buddypress reply’ is closed to new replies.