• Resolved thisisnotmyusername

    (@thisisnotmyusername)


    This code works find in buddypress, When I activate youzify, the user activity posts to the main activity stream no longer state "user posted in group" it just say "user posted"

    May I have some guidance please?

    // Format the action for the activity
    $action = sprintf(
    '%s posted in the group %s',
    bp_core_get_userlink($random_user->user_id),
    '<a href="' . $group_link . '">' . esc_html($group_name) . '</a>'
    );


    // Add activity with the formatted action
    bp_activity_add(array(
    'user_id' => $random_user->user_id,
    'action' => apply_filters('bp_custom_group_activity_action', $action),
    'content' => $post_content,
    'component' => 'groups',
    'type' => 'activity_update',
    'item_id' => $group_id,
    ));
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Youzify

    (@kainelabsteam)

    Hi @thisisnotmyusername

    Thank you for reaching us.

    Could you kindly clarify what you would like to achieve with this snippet?

    Best Regards, KaineLabs Team.

    Thread Starter thisisnotmyusername

    (@thisisnotmyusername)

    When I post through my plugin using that code with just wordpress and buddy press, on the main activity feed, you see the title as “*user* posted in the group *group name*”. When I activate youzify, it simply says “*user* posted” and the “in the group *group name*” is not showing up.

    I have installed a fresh website, with just wordpress and buddypress, and my plugin works with that snippet. As soon as I activate youzify, the plugin drops the “in the group *group name*” from the title of the activity post, just showing “*user* posted”.

    How do I format the action for the activity to work with youzify?

    Plugin Support Youzify

    (@kainelabsteam)

    Hi @thisisnotmyusername

    You can try to override the Youzify template specifically for that part. Please you can check the article from the URL below:

    https://kainelabs.ticksy.com/article/15450/

    Best Regards, KaineLabs Team.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.