Comments on posts don't appear in Buddypress activities

Support forum for the Made WordPress theme.

Moderator: Developers

Comments on posts don't appear in Buddypress activities

Postby ClearConscious » Thu Jan 24, 2013 10:12 pm

It appears that comments on posts are not posting in the activities for Buddypress. From the research I've been doing it appears that this is supposed to be a built in feature. As of now registered users who comment on posts don't have that activity appear on the activity streams.
ClearConscious
 
Posts: 60
Joined: Tue Jul 24, 2012 11:15 pm

Re: Comments on posts don't appear in Buddypress activities

Postby IndustrialThemes » Fri Jan 25, 2013 12:52 pm

Please test this on the default buddypress theme and see if the comments appear in activity so we can confirm that it's the theme rather than the plugin.
Please read our Support Policy
User avatar
IndustrialThemes
Site Admin
 
Posts: 12784
Joined: Thu Jul 21, 2011 2:06 pm

Re: Comments on posts don't appear in Buddypress activities

Postby ClearConscious » Fri Jan 25, 2013 1:19 pm

Will do. I'll post my results shortly.
ClearConscious
 
Posts: 60
Joined: Tue Jul 24, 2012 11:15 pm

Re: Comments on posts don't appear in Buddypress activities

Postby ClearConscious » Fri Jan 25, 2013 6:20 pm

Went ahead and switched themes, disabled all plugins and that doesn't seem to resolve the issue. I think this might be specific to Buddypress, since people are complaining about it, without anyone coming up with a fix. I have seen issues specific to custom post types, could that be part of the issue?
ClearConscious
 
Posts: 60
Joined: Tue Jul 24, 2012 11:15 pm

Re: Comments on posts don't appear in Buddypress activities

Postby ClearConscious » Fri Jan 25, 2013 7:00 pm

This might be helpful with your expertise: http://bpdevel.wordpress.com/2011/08/12 ... in-bp-1-5/
ClearConscious
 
Posts: 60
Joined: Tue Jul 24, 2012 11:15 pm

Re: Comments on posts don't appear in Buddypress activities

Postby ClearConscious » Fri Jan 25, 2013 7:32 pm

This information also looks useful: http://wordpress.stackexchange.com/ques ... tivity-loo
ClearConscious
 
Posts: 60
Joined: Tue Jul 24, 2012 11:15 pm

Re: Comments on posts don't appear in Buddypress activities

Postby IndustrialThemes » Fri Jan 25, 2013 10:27 pm

Aha, very interesting! So, the issue is with comments made to ONLY custom post types (review types), right? Comments on regular posts ARE displaying in your activity? If this is correct, please confirm. Also, try adding this function to your functions/custom.php file. You can just put it at the very end of the file before the closing ?> tag:

Code: Select all
  function bbg_record_my_custom_post_type_comments( $post_types ) {
      $post_types[] = 'dolphin'; // Add your custom post type name to the array. If you have a post type called 'dolphin' then you have a weird plugin
      return $post_types;
  }
  add_filter( 'bp_blogs_record_comment_post_types', 'bbg_record_my_custom_post_type_comments' );


Please let me know if that does indeed solve the problem so I can update the theme. Thanks for your help with this issue!
Please read our Support Policy
User avatar
IndustrialThemes
Site Admin
 
Posts: 12784
Joined: Thu Jul 21, 2011 2:06 pm

Re: Comments on posts don't appear in Buddypress activities

Postby ClearConscious » Fri Jan 25, 2013 11:30 pm

Nope, comments are not displayed. But I was trying to make some leads with this issue. I'm not sure if the theme treated posts technically as a custom post type. Would the custom post name, just be whatever I named it in the settings? Thanks for your help!
ClearConscious
 
Posts: 60
Joined: Tue Jul 24, 2012 11:15 pm

Re: Comments on posts don't appear in Buddypress activities

Postby ClearConscious » Sat Jan 26, 2013 12:15 am

The code you provided also didn't work, unless I'm missing something :/
ClearConscious
 
Posts: 60
Joined: Tue Jul 24, 2012 11:15 pm

Re: Comments on posts don't appear in Buddypress activities

Postby IndustrialThemes » Sat Jan 26, 2013 3:47 pm

No, the custom post type name would have "os_" prefixed and it wouldn't have any uppercase characters. For instance, if you named your review type "Movie" the technical name according to the theme would be "os_movie"
Please read our Support Policy
User avatar
IndustrialThemes
Site Admin
 
Posts: 12784
Joined: Thu Jul 21, 2011 2:06 pm

Re: Comments on posts don't appear in Buddypress activities

Postby ClearConscious » Sat Jan 26, 2013 3:59 pm

Applied os_video_game_review and that didn't seem to work. None of the comments are displaying still on the activity walls.
ClearConscious
 
Posts: 60
Joined: Tue Jul 24, 2012 11:15 pm

Re: Comments on posts don't appear in Buddypress activities

Postby ClearConscious » Sat Jan 26, 2013 4:09 pm

Code I'm using:

Code: Select all
function bbg_record_my_custom_post_type_comments( $post_types ) {
      $post_types[] = 'os_video_game_review'; // Add your custom post type name to the array. If you have a post type called 'dolphin' then you have a weird plugin
      return $post_types;
  }
  add_filter( 'bp_blogs_record_comment_post_types', 'bbg_record_my_custom_post_type_comments' );
ClearConscious
 
Posts: 60
Joined: Tue Jul 24, 2012 11:15 pm

Re: Comments on posts don't appear in Buddypress activities

Postby IndustrialThemes » Sat Jan 26, 2013 9:31 pm

try os_video_game instead (unless you actually added the word "review" in the name of your review type)
Please read our Support Policy
User avatar
IndustrialThemes
Site Admin
 
Posts: 12784
Joined: Thu Jul 21, 2011 2:06 pm

Re: Comments on posts don't appear in Buddypress activities

Postby ClearConscious » Sun Jan 27, 2013 12:08 am

Nope using the full name I put in the code.
ClearConscious
 
Posts: 60
Joined: Tue Jul 24, 2012 11:15 pm

Re: Comments on posts don't appear in Buddypress activities

Postby IndustrialThemes » Sun Jan 27, 2013 3:20 pm

Hmm, must be an issue with that function then. It was worth a shot. I'll keep my eye out for if I come across any solutions to this. I would recommend asking further questions on the bp support forums...
Please read our Support Policy
User avatar
IndustrialThemes
Site Admin
 
Posts: 12784
Joined: Thu Jul 21, 2011 2:06 pm

Re: Comments on posts don't appear in Buddypress activities

Postby ClearConscious » Tue Jan 29, 2013 6:32 pm

Yeah I'm thinking this is something theme related as it's not playing nice with Achievements for Wordpress either. Won't unlock some of the achievements, like posting a comment.
ClearConscious
 
Posts: 60
Joined: Tue Jul 24, 2012 11:15 pm

Re: Comments on posts don't appear in Buddypress activities

Postby ClearConscious » Tue Jan 29, 2013 6:51 pm

Yeah I switched over to the BP-Default theme and achievements popped up fine. So it seems that something on the theme is blocking achievements and from the comments appearing on Buddypress streams :/
ClearConscious
 
Posts: 60
Joined: Tue Jul 24, 2012 11:15 pm

Re: Comments on posts don't appear in Buddypress activities

Postby IndustrialThemes » Tue Jan 29, 2013 8:35 pm

Well these are definitely separate issues. I'm still not convinced the first one is a theme issue since you haven't been able to test commenting on custom post types to see if they show up in the activity stream on any other themes, and I came across that information that others have posted about this being a buddypress problem. However the second issue could be theme related, it's just hard to know since Made uses so many plugins and has so much code. I'm not sure how the achievements plugin is supposed to work, but I wonder if it uses custom post types (in which case Made's custom post types could be interfering - or rather the other way around). Do any of the achievements work for you? If so, which ones work and which ones don't?
Please read our Support Policy
User avatar
IndustrialThemes
Site Admin
 
Posts: 12784
Joined: Thu Jul 21, 2011 2:06 pm

Re: Comments on posts don't appear in Buddypress activities

Postby ClearConscious » Tue Jan 29, 2013 9:51 pm

I've made a post on the Wordpress forums which cover some of the achievements not working: http://wordpress.org/support/topic/list ... ?replies=9

A lot of them do work really well though.
ClearConscious
 
Posts: 60
Joined: Tue Jul 24, 2012 11:15 pm

Re: Comments on posts don't appear in Buddypress activities

Postby ClearConscious » Tue Jan 29, 2013 11:02 pm

I also have a list of functioning achievements on here: http://theparanoidgamer.com/achievements/
ClearConscious
 
Posts: 60
Joined: Tue Jul 24, 2012 11:15 pm

Re: Comments on posts don't appear in Buddypress activities

Postby IndustrialThemes » Wed Jan 30, 2013 10:24 am

Sweet, so the achievement system itself works, it's just a matter of some of them not getting "triggered" at proper times...
Please read our Support Policy
User avatar
IndustrialThemes
Site Admin
 
Posts: 12784
Joined: Thu Jul 21, 2011 2:06 pm


Return to Made Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron