BuddyDev

Search

BuddyBlog Pro – Groups – Activity Entries

  • Participant
    Level: Master
    Posts: 281
    NikB on #54641

    Hi Brajesh

    I have a scenario where –

    Site-wide blog posts can ONLY be created by admin users via the WordPress dashboard (ie. no BuddyBlog involvement)
    Group blog posts can be created by group admins (ie. BuddyBlog Pro and BuddyBlog Groups used)

    When I create a site-wide blog post, for some reason the activity component is being set to “groups” (whereas it should be “blogs”) which is causing the wrong text content to appear in the activity feed.

    Note: if I disable BuddyBlog Groups, the correct activity entry is created.

    Doing some digging, I suspect (but could be wrong) that this issue may have something to do with buddyblog-groups/src/core/class_activity_manager.php around line 107 but I’m still not sure what is actually causing the component to default(?) to ‘groups’ when BuddyBlog is only handling group posts and shouldn’t be affecting site-wide posts at all.

    Any thoughts would be much appreciated.

    With many thanks in advance.
    Nik

  • Keymaster
    (BuddyDev Team)
    Posts: 24827
    Brajesh Singh on #54650

    Hi Nik,
    Thank you for posting.

    That would be very strange as the plugin should only do it if there is a group associated with the post(post has a meta key with group id).

    Do you have any other plugin/code that can cause it. Can you temporary disable the activity recording in BuddyBlog Groups/BuddyBlog and check it?

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 281
    NikB on #54659

    Hi Brajesh

    Thank you for getting back to me. Here is what I have tried –

    1. I have checked that the site-wide admin posts do not have a meta key with group id so this does not explain why the relevant activity entry is being assigned a component of “groups”.

    2. I tried disabling activity recording in BuddyBlog Groups/BuddyBlog (although there was already no recording in BuddyBlog as I’m only using BuddyBlog groups for standard posts)

    Result: this fixes the issue for site-wide posts added by Admin but prevents group post activity from being recorded correctly.

    3. I tried changing to a different theme (in order to exclude any customisations I have added to the site) and this had no effect on the issue described.

    4. In BuddyBlog Pro Settings, I re-enabled the Profile Tab for “Post” and this fixes the problem, but (not surprisingly) this then adds a profile tab for “Blogs” for all users which I don’t want.

    I could be wrong but I suspect this last finding could be a clue and would (maybe) be an easy way for you to replicate the issue I am experiencing.

    In summary, what I am trying to achieve is to use BuddyBlog groups for group posts, but without allowing individual posts (other than from Admin via the WordPress dashboard) ie. effectively I’m trying to use the features of BuddyBlog Groups for group posts but I don’t want to use BuddyBlog Pro for individual posts. My guess would be that by (mostly) bypassing BuddyBlog Pro, it is somehow being assumed that ALL posts are group posts when it comes to activity recording.

    Sorry I do realise this is somewhat complicated so please do let me know if you need any clarification.

    With very many thanks again for any thoughts.
    Nik

  • Keymaster
    (BuddyDev Team)
    Posts: 24827
    Brajesh Singh on #54676

    Hi Nik,
    Thank you for the detailed report.

    I will look into it and get back to you by 22nd.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 281
    NikB on #55048

    Hi Brajesh

    Sorry to trouble you again but just wondering if you’ve had a chance to look into this yet?

    With many thanks in advance.
    Nik

  • Keymaster
    (BuddyDev Team)
    Posts: 24827
    Brajesh Singh on #55058

    Hi Nik,
    I am sorry, I had couple of bad work weeks recently and could not do much about it. Please allow me till day end this Wednesday, I will have a proper explanation/solution.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24827
    Brajesh Singh on #55064

    Hi Nik,
    Hope you are doing well.

    I finally tested it on BuddyPress 14.0 and I am unable to reproduce your issue.

    Please take a look.
    https://ibb.co/5hFg2svG
    https://ibb.co/0jDQpGxM
    https://ibb.co/yct6dzRS
    https://ibb.co/dwSBJMYx

    Can you please share me a screenshot/video listing all the settings of the BuddyBlog Groups? or if you have a staging site, please allow me temporary access to it.

    I am assuming that you are using latest version of the BuddyBlog and BuddyBlog Groups(RC14)

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved