BuddyDev

Search

Remove bp_the_thread_delete_link

  • Participant
    Level: Yogi
    Posts: 1112
    calu on #30121

    Hi Brajesh, on my private message page /members/user/messages/view/xxx/ I have a remnants of a link called

    <?php_bp_the_thread_delete_link();_?>

    The delete link is not working, and I have tried to override this in messages-loop.php, but no luck.
    How do I get rid of this link?

    Thanks

    Regards
    Carsten

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

    Hello Carsten,

    Thank you for posting. Can you share a screenshot of it so that I can help?.

    Regards
    Ravi

  • Participant
    Level: Yogi
    Posts: 1112
    calu on #30197

    Hi Ravi, thanks for helping out, this is the small link I’m referring to, I tried to deactivate all css, but it still looks the same, located under the private message send button:

    https://imgur.com/BF8yoUO

    Regards
    Carsten

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

    Hello Carsten

    Thank you for sharing details. Please try the following code inside the thread loop.

    
    <a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a>
    
    

    Regards
    Ravi

  • Participant
    Level: Yogi
    Posts: 1112
    calu on #30238

    Hi there, thanks for the snippet, where do I find the thread loop?

    Regards

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

    Hello Carsten,

    It seems that I took it mistakenly. Are you facing an issue on the single message page? Please share a screenshot so that I could more clear on this. Also if possible, Can you provide me with a test account detail so that I can quickly fix the issue.

    Regards
    Ravi

  • Participant
    Level: Yogi
    Posts: 1112
    calu on #30259
    This reply has been marked as private.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #30260

    Hello Carsten,

    I have checked it seems you had some invalid code added to “single.php” template file. Please share the code you have used to add this link as BuddyPress by default does not add any delete conversion link under reply form.

    You can find the template file on the following path:

    
    wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/messages/single.php
    

    If the template is overridden by them look for the following path:

    
    wp-content/your-active-theme/buddypress/members/single/messages/single.php
    

    Regards
    Ravi

  • Participant
    Level: Yogi
    Posts: 1112
    calu on #30261
    This reply has been marked as private.
  • Participant
    Level: Yogi
    Posts: 1112
    calu on #30262
    This reply has been marked as private.

The topic ‘Remove bp_the_thread_delete_link’ is closed to new replies.

This topic is: not resolved