BuddyDev

Search

[Resolved] Activity confirm action support for confirm bp action plugin

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #22174

    Hello,

    Please how can I add confirm action support when deleting an activity. I want users to confirm their actions before deleting activity updates using your plugin https://buddydev.com/plugins/bp-confirm-actions/

    Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #22175

    Hi Tosin,
    Thank you for the topic.

    I will ask @ravisharma to look into it and update you tomorrow.

    Thank you
    Brajesh

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #22180

    Ok thank you will be expecting your feedback

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #22237

    Hello Tosin,

    I will look into it and let you know by next week.

    Thank You
    Ravi

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #22293

    Hello Ravi,

    I will be expecting your feedback on this topic this week. Have a great day.

    Thank you
    Tosin

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #22297

    Hello Tosin,

    Thank you. I will update you by Thursday/Friday.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #22438

    Hello Tosin,

    I have added the support for activity delete in the plugin. New settings section are implemented in the plugin when you can enable the confirm action for delete activity. Please download the latest version of the plugin.

    You can download it here
    https://buddydev.com/plugins/bp-confirm-actions/

    Please let me know if it works or not.

    Regards
    Ravi

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #22529

    Hello,

    Thanks for the update but after installation I noticed that the confirm actions for activity delete is still not working, I was able to delete several activity updates without buddypress asking me if I was sure about deleteing them.

    Thanks

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #22530

    Hello Tosin,

    Thank you for the acknowledgment. Please let me know which template pack you are using. Please also try with default theme with all other plugin deactivate mode. If still not works share a demo credential so that I can check.

    Regards
    Ravi

  • Participant
    Level: Guru
    Posts: 900
    Tosin on #22531

    Hello,

    I just found out why it’s not working, I am using a custom code in my bp-custom.php file

     function bpdelete_remove_activity_delete_text(){
        $url   = bp_get_activity_delete_url();
        $class = 'delete-activity';
    
        $link = '<a href="' . esc_url( $url ) . '" class="button item-button bp-secondary-action delete-activity confirm no-ajaxy fas fa-trash-alt" rel="nofollow">' . __( '', 'buddypress' ) . '</a>';
        return $link;
    }
    add_filter('bp_get_activity_delete_link', 'bpdelete_remove_activity_delete_text' ); 

    How can I make it work while using this code

    Thanks

The topic ‘ [Resolved] Activity confirm action support for confirm bp action plugin’ is closed to new replies.

This topic is: resolved