BuddyDev

Search

Replies

  • Participant
    Level: Guru
    Posts: 903
    This reply has been marked as private.
  • Participant
    Level: Guru
    Posts: 903

    Hello

    I just tried the code but it did not work.

  • Participant
    Level: Guru
    Posts: 903

    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

  • Participant
    Level: Guru
    Posts: 903

    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

  • Participant
    Level: Guru
    Posts: 903

    Hello Ravi,

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

    Thank you
    Tosin

  • Participant
    Level: Guru
    Posts: 903

    Ok thank you will be expecting your feedback

  • Participant
    Level: Guru
    Posts: 903
    Tosin on in reply to: DELETE activity using ajax #22169

    I got it to work with this code

     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 fa fa-trash" rel="nofollow">' . __( '', 'buddypress' ) . '</a>';
        return $link;
    }
    add_filter('bp_get_activity_delete_link', 'bpdelete_remove_activity_delete_text' ); 

    Thanks for the hint,have a great day

  • Participant
    Level: Guru
    Posts: 903

    Hello Brajesh,

    I am using wp-login.php and not a custom login page.

    I am using the Klein theme which has a login button in the theme header and this button appears on all pages and post to logged out users, when the button is clicked a popup login modal box appears.

    When you try to login with the popup login box/form and not wp-login.php page with incorrect login credentials. The whole page reloads without login being successful, now the problem is that after the page reloads there is no error message informing the user why his/her login failed.

    I want to call the same error message that appears in wp-login.php inside the theme, so that users will always see an error message when their login fails irrespective of user login either through wp-login.php or the site’s homepage.

    It is not compulsory for the error message to appear as a buddypress notice I was using this as an example.

    Thanks

  • Participant
    Level: Guru
    Posts: 903

    Any feedback sir

    thank you

  • Participant
    Level: Guru
    Posts: 903
    Tosin on in reply to: Scaling buddypress #21603

    Any feedback sir