Replies
- Ravi on April 23, 2019 at 10:53 am in reply to: [Resolved] Activity confirm action support for confirm bp action plugin #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 - Ravi on April 23, 2019 at 9:01 am in reply to: [Resolved] Change comment edit link/button to "delete" button #22528
Hello,
For delete comment use the following code.
function buddydev_delete_comment() { if ( ! isset( $_GET['action'] ) || ! isset( $_GET['id'] ) || 'delete_comment' != $_GET['action'] ) { return; } if ( ! isset( $_GET['nonce'] ) || ! wp_verify_nonce( $_GET['nonce'], 'delete-comment' ) ) { return; } $comment = get_comment( $_GET['id'] ); if ( empty( $comment ) || $comment->user_id != get_current_user_id() ) { return; } wp_delete_comment( $comment->comment_ID ); wp_safe_redirect( get_permalink( $comment->comment_post_ID ) ); exit; } add_action( 'template_redirect', 'buddydev_delete_comment' ); function buddydev_add_delete_comment_button() { if ( ! is_user_logged_in() ) { return; } $comment = get_comment(); if ( $comment->user_id != get_current_user_id() ) { return; } $delete_url = add_query_arg( array( 'id' => $comment->comment_ID, 'action' => 'delete_comment', 'nonce' => wp_create_nonce( 'delete-comment' ), ), get_permalink( $comment->comment_post_ID ) ); echo sprintf( '<a href=%s>%s</a>', $delete_url, __( 'Delete' ) ); } add_filter( 'wp_list_comments_args', function( $r ) { $r['end-callback'] = 'buddydev_add_delete_comment_button'; return $r; } );
Please check
Regards
Ravi - Ravi on April 22, 2019 at 9:20 am in reply to: [Resolved] Change comment edit link/button to "delete" button #22478
Hi,
How do we know user is moderator?.
Regards
Ravi Hello Geeko,
Please check the following topic. It might help you
Please do let me know if it fixes your requirement.
Regards
Ravi- Ravi on April 22, 2019 at 8:42 am in reply to: [Resolved] FEATURE IDEA – Limit Groups Per User – Redirect after #22471
Hello Michael,
I am glad that I could help. No, I work with Brajesh sir.
Regards
Ravi- This reply was modified 6 years, 3 months ago by
Ravi.
- This reply was modified 6 years, 3 months ago by
- Ravi on April 22, 2019 at 7:31 am in reply to: [Resolved] FEATURE IDEA – Limit Groups Per User – Redirect after #22469
Hello Michael,
We have added redirect url functionality to the plugin. Please check.
Regards
Ravi - Ravi on April 19, 2019 at 12:10 pm in reply to: [Resolved] Activity confirm action support for confirm bp action plugin #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 - Ravi on April 15, 2019 at 2:00 pm in reply to: [Resolved] Activity confirm action support for confirm bp action plugin #22297
Hello Tosin,
Thank you. I will update you by Thursday/Friday.
Thank You
Ravi - Ravi on April 12, 2019 at 9:36 am in reply to: [Resolved] Activity confirm action support for confirm bp action plugin #22237
Hello Tosin,
I will look into it and let you know by next week.
Thank You
Ravi Hello Tosin,
You are missing CSS classes in the anchor. Please add and then check and let me know if it works or not.
Thank
Ravi