When enabled it stops the buddypress menu options for users.

This topic contains 16 replies, has 4 voices, and was last updated by  Giri 7 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #246165

    siparker
    Buyer
    Post count: 114

    We had an odd bug which raised its head a while ago after installing wpgeodirectory, buddypress and apile of other plugins onto one wordpress site.

    The issue is that users in buddypress could not see their menu which gives them links to notifications and the like. commonly referrred to as the buddybar i believe.
    This normally appears in the admin bar in the header of the site. in my theme it appears just below in a profile dropdown menu.

    We assumed that this was due to some sort of problem with a combination of some bbpress tools which stopped admin access or possibly an error in the user role editor.

    the only fix for this was we had to allow manage_options for the user which gives them an awful lot of things they could now do.

    so instead we ended up trying to move everything out of the manage options option so that just agve them the menu option and create new capabilities that would allow admins etc to actually manage options.

    So

    TLDR
    when i enable geodirectory it removes the buddypress menu. it is the only plugin active and i ahve tested that it is not in combination with anythign else.

    I am using the buddyboss theme

    Could you please elaborate or explain why this happens or why it might be necassary to prevent anyone expect an admin to ahve the buddypress menu?

    From what i can see this is because geodirectory hides the top menu bar altogether. Could you explain why it does this please.

    Thanks

    #246285

    Guust
    Moderator
    Post count: 29970

    I’ll get the developers to have a look at your question after the weekend.
    I know that the BuddyBoss theme applies a lot of its own BP features, and I am not sure that GD is turning of the BP menu, but suspect that BuddyBoss is adding it.

    #246351

    siparker
    Buyer
    Post count: 114

    I tested in 2016 also

    with GD turned off

    View post on imgur.com

    With Gd turned on

    View post on imgur.com

    The main thing is this only happens with non admin users so it might not be totally obvious when developing.

    it is in relation to the manage_options capability though. as if i turn that on for the normal users then the menu comes back

    View post on imgur.com

    but that then gives them other capabilities i dotn want them to have.

    #246558

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I Have assigned this to Giri but he is off Monday so will look at this on Tuesday.

    Thanks,

    Stiofan

    #246913

    siparker
    Buyer
    Post count: 114

    Ok thanks.

    #247555

    Giri
    Expired Member
    Post count: 3155

    @siparker,

    Have you activated BuddyPress integration addon?

    If yes, can you post your wp admin credentials? So I can take a look.

    Thanks

    #247562

    siparker
    Buyer
    Post count: 114
    This reply has been marked as private.
    #247563

    Giri
    Expired Member
    Post count: 3155

    Ok Thanks. I’ll let you know once i fix this issue. Thanks

    #247564

    Giri
    Expired Member
    Post count: 3155

    I see incorrect password error. can you check and let me know.

    If possible post your FTP details too.

    Thanks

    #247565

    siparker
    Buyer
    Post count: 114
    This reply has been marked as private.
    #247569

    siparker
    Buyer
    Post count: 114
    This reply has been marked as private.
    #247570

    siparker
    Buyer
    Post count: 114

    there are several test sites on there also in different folders. its the main public_html folder that contains the main site now.

    #247571

    Giri
    Expired Member
    Post count: 3155

    Hi i’m unable to login using the credentials you provided. So i’m trying to reproduce your problem in my local.

    Can you help me by answering some of my questions?

    1) Have you tried by deactivating other plugins except the following GD, BuddyPress, BuddyPress integration

    2) What is the simplest way to reproduce your problem?

    #247575

    siparker
    Buyer
    Post count: 114
    This reply has been marked as private.
    #247576

    Giri
    Expired Member
    Post count: 3155

    Hi there, Can you try editing this file and replacing the code?

    File to edit: wp-content/plugins/geodirectory/geodirectory-functions/ajax_handler_functions.php

    Line number: ~ 73 to 75

    Replace this part

    
    
    if (get_option('geodir_allow_wpadmin') == '0' && is_user_logged_in() && !current_user_can('manage_options')) {
            show_admin_bar(false);
    }

    with

    
    
    if (get_option('geodir_allow_wpadmin') == '0' && is_user_logged_in() && !current_user_can('manage_options') && !class_exists('BuddyPress')) {
            show_admin_bar(false);
    }

    Let me know how that goes.

    Thanks

Viewing 15 posts - 1 through 15 (of 17 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket