Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #149704

    Gatera
    Participant

    Hi,

    I would like to add a logout button on the buddypress navigation under activity, groups, profile. I thought adding this code to framework/functions/global/plugins/buddypress.php on line 504 would do it, however the logout function executes everytime I load any page. So the user never stays logged in for more than 1 minute. Is there another way to make it work?

    Thanks

    if ( is_user_logged_in() ) {
    $submenu_items .= ‘<li class=”menu-item menu-item-buddypress-navigation”><i class=”x-icon x-icon-cog”></i> <span>Log out</span>‘;
    }

    #150181

    Nabeel A
    Moderator

    Hi Gatera,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL as stated on the forum entrance page. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #150375

    Gatera
    Participant

    Hi,

    I am currently still working on localhost, I haven’t bought a domain yet.

    #150798

    Christian
    Moderator

    Hey Gatera,

    We’d love to help you with your concern however, BuddyPress modification is beyond the scope of our support. You might want to install a plugin like https://wordpress.org/plugins/baw-login-logout-menu/

    Thanks.