• Resolved larnoult

    (@larnoult)


    Hey,
    I really appreciate your LMS plugin; I just started using it, and it looks great.. Yet I spotted a critical issue (for me 🙂
    I’m working for a french NGO in education, on a multi-site set-up. One site is for kids; and one site is for teachers. I’d like to use your plugin to give them lesson on WP and other technical stuff.
    For all my ‘teacher’ users, whose role is author (and forum participant), activating the lifterLMS plugin just removes the admin bar.. Very problematic for them. They get all confused (‘I’m logged in, but the admin bar isn’t there anymore’…)
    For admin and superadmin, the admin bar stays in place.
    I tried to deactivate bbpress and or buddypress integration but it doesn’t work. I would have to deactivate the lifterLMS plugin to have my author see their admin bar again. Which I don’t want!
    I hope you can help me out!
    Thx in advance,

    Here is the support log:

    WordPress
    -------------------------------------------
    
    Home Url: http://prof.parlemonde.org
    Site Url: http://prof.parlemonde.org
    Version: 4.8.1
    Debug Mode: Yes
    Locale: fr_FR
    Multisite: Yes
    Page For Posts: Not Set
    Page On Front: Not Set
    Permalink Structure: /%year%/%monthnum%/%day%/%postname%/
    Show On Front: posts
    Wp Cron: Yes
    
    Settings
    -------------------------------------------
    
    Version: 3.12.1
    Db Version: 3.12.1
    Course Catalog: La liste des cours (#660)
    Course Catalog Per Page: 9
    Course Catalog Sorting: menu_order
    Membership Catalog: Membership Catalog (#661)
    Membership Catalog Per Page: 9
    Membership Catalog Sorting: menu_order
    Site Membership: Not Set
    Student Dashboard: My Courses (#663)
    Courses Endpoint: my-courses
    Edit Endpoint: edit-account
    Lost Password Endpoint: lost-password
    Vouchers Endpoint: redeem-voucher
    Autogenerate Username: yes
    Password Strength Meter: yes
    Minimum Password Strength: strong
    Terms Required: no
    Terms Page: Not Set
    Checkout Names: required
    Checkout Address: required
    Checkout Phone: optional
    Checkout Email Confirmation: yes
    Open Registration: no
    Registration Names: required
    Registration Address: optional
    Registration Phone: hidden
    Registration Voucher: optional
    Registration Email Confirmation: no
    Account Names: required
    Account Address: required
    Account Phone: optional
    Account Email Confirmation: yes
    Checkout Page: Purchase (#662)
    Confirmation Endpoint: confirm-payment
    Force Ssl Checkout: no
    Country: FR
    Currency: EUR
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Decimals: 2
    Trim Zero Decimals: no
    Recurring Payments: yes
    Email From Address: [email protected]
    Email From Name: Le coin des profs
    Email Footer Text: 
    Email Header Image: 
    Cert Bg Width: 800
    Cert Bg Height: 616
    Cert Legacy Compat: no
    
    Gateways
    -------------------------------------------
    
    Manual: Enabled
    Manual Logging: 
    Manual Order: 1
    
    Server
    -------------------------------------------
    
    Mysql Version: 5.5.55
    Php Curl: Yes
    Php Default Timezone: UTC
    Php Fsockopen: Yes
    Php Max Input Vars: 16000
    Php Max Upload Size: 5 MB
    Php Memory Limit: 512M
    Php Post Max Size: 64M
    Php Soap: Yes
    Php Suhosin: No
    Php Time Limt: 300
    Php Version: 5.6.30
    Software: Apache
    Wp Memory Limit: 64M
    
    Theme
    -------------------------------------------
    
    Name: VP-multi-prof
    Version: 1.0.0
    Themeuri: http://themes.kadencethemes.com/virtue-premium/
    Authoruri: http://www.kadencethemes.com/
    Template: virtue_premium
    Child Theme: Yes
    Llms Support: No
    
    Plugins
    -------------------------------------------
    
    Activity Log: 2.3.4
    Admin Color Schemes: 2.2
    Adminimize: 1.11.2
    Automatic Featured Images from YouTube / Vimeo: 1.0.3
    bbPress: 2.5.13
    BP xProfile Location: 1.3
    Broadcast: 39.1
    BuddyPress: 2.8.2
    BuddyPress Member Type Generator: 1.0.5
    BuddyPress NoCaptcha Register Box: 1.1.3
    BuddyPress Xprofile Member Type Field: 1.0.5
    Conditional Profile Fields for BuddyPress: 1.1.9
    Dashboard Widget Sidebar: 1.2.3
    Democracy Poll: 5.5.3
    Duplicate Post: 3.2
    Export User Data: 1.3.1
    Flickr Justified Gallery: 3.4.2
    Force Admin Color Scheme: 1.1
    Image Map Pro: 4.0.7
    Import users from CSV with meta: 1.10.7.1
    Imsanity: 2.3.9
    LifterLMS: 3.12.1
    MailPoet Newsletters: 2.7.11.3
    Maps Marker Pro ®: 3.1
    Multisite User Management: 1.1
    Network Site Plugin for parlemonde.org: 
    Newsletter: 5.0.5
    Query Monitor: 2.14.0
    Quick Featured Images: 13.2.2
    SuitePlugins - Advanced XProfile Fields for BuddyPress: 1.0.3
    TablePress: 1.8
    Username Changer: 3.1.0
    User Switching: 1.1.0
    User Switching in Admin Bar: 1.1.1
    WP Better Emails: 0.3
    WP Edit: 4.0.1
    WPML CMS Nav: 1.4.21
    WPML Multilingual CMS: 3.8.0
    WPML Sticky Links: 1.4.2
    WPML String Translation: 2.6.0
    WPML Translation Management: 2.4.0
    WP Rollback: 1.5
    WP SES: 0.7.1
    WP Smush: 2.7.4.1
    WP Super Cache: 1.5.5
    
    Integrations
    -------------------------------------------
    
    BbPress: Yes
    BuddyPress: Yes
    
    Template Overrides
    -------------------------------------------
    
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there @larnoult,

    If you’d like your students to see the admin bar you could remove our filter that hides the admin bar.

    remove_filter( 'show_admin_bar', 'llms_disable_admin_bar', 10, 1 );

    You could add that to your child theme’s functions.php file or to a custom plugin: https://lifterlms.com/docs/how-do-i-add-custom-code-to-lifterlms-or-lifterlms-launchpad/

    Hope that helps,

    Thread Starter larnoult

    (@larnoult)

    Hey,

    Thanks for your answer.
    Simple fix thanks.
    Two follow-up but slightly off-target questions:
    1. Where in the lifterLMS documentation could I have had read about it, so I would have bothered you? Is there a list of filters and actions related to your plugin (active or not) that it is available?
    2. I’m not a developper, so forgive me in advance for that question. Would there be a way to monitor that your plugin filtered off the admin bar and where in the code? I mean, something like the web inspector, but showing the WP internal stuff.

    Thanks again!
    Cheers,

    @larnoult,

    1. Where in the lifterLMS documentation could I have had read about it, so I would have bothered you? Is there a list of filters and actions related to your plugin (active or not) that it is available?

    I never documented this filter. I am a solo developer with a very small team. I write all the code and documentation and I document filters when I get asked how to do something. All the documented filters are here: https://lifterlms.com/docs/lifterlms-filters/

    As it says there, if you can’t find a filter and you want one, it probably exists, so ask or search the codebase: https://github.com/gocodebox/lifterlms/search?q=apply_filters

    2. I’m not a developper, so forgive me in advance for that question. Would there be a way to monitor that your plugin filtered off the admin bar and where in the code? I mean, something like the web inspector, but showing the WP internal stuff.

    Not from experience but this may help: https://ww.wp.xz.cn/plugins/simply-show-hooks/

    Be prepared: there are going to be an overwhelming number of hooks and actions :-p

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Admin bar disapeared’ is closed to new replies.