Support » Plugin: Plugin Name: WP Symposium Toolbar » WP Symposium Toolbar Conflict With WP User Frontend

  • Resolved EMar Sounds

    (@sounds)


    Hi,

    I installed WP User Frontend the other night and messed around with it,
    But I just noticed, my WP Symposium Toolbar is missing for logged out users.
    So I disabled WP User Frontend and the WP Symposium Toolbar came back.
    I can see the toolbar when I’m logged in as admin, but not as a visitor.

    Any idea how to fix this?

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Central Geek

    (@central-geek)

    Hi @sounds,

    In WP User Frontend, the developer intentionally removes the admin bar while blocking access to the backend. You would need to address that with them. It is very difficult for us to overcome all attempts by others to block the admin bar from certain users when they block access to the backend.

    Many developers believe that the only use for the admin bar is to access the backend. Without recognition of other uses for the admin bar, other than those imagined by the developer, we are limited in what we can accomplish with our plugin to help make it more useful.

    If you wish to search out the area where the developer of the other plugin limits access to the admin bar, you can look in the wpuf-functions.php file for “show_admin_bar”.

    Thread Starter EMar Sounds

    (@sounds)

    Hi,

    That’s a pity, some people have other uses for that toolbar.

    I was in the middle of searching for an alternative user submission plugin,
    I looked in wpuf_functions.php but “show_admin_bar” is not in there.

    I was going to ask them the same question, but ended up here first.

    Plugin Contributor Central Geek

    (@central-geek)

    My apologies,

    The file is wpuf.php. I was looking at something else when I wrote that.

    Lines 69 and 396.

    Thread Starter EMar Sounds

    (@sounds)

    So I need to add something, a role to the list?

    /**
    * Show/hide admin bar to the permitted user level
    *
    * @since 2.2.3
    * @return void
    */
    function show_admin_bar() {
    $access_level = wpuf_get_option( ‘admin_access’, ‘wpuf_general’, ‘read’ );

    return current_user_can( $access_level );
    }

    Plugin Contributor Central Geek

    (@central-geek)

    Advising on modifying other plugins isn’t a good practice, here. I would suggest contacting them and asking them to open up their options by allowing admin to choose whether or not to hide the admin bar.

    They are hiding it based on the user access level not giving admin the option.

    The problem with making those modifications, is, as soon as they update the plugin you will have to do it again.

    Having said that, if it were me and I wanted to have something working while I waited for the developer of that plugin to respond, I would just comment out line 69 and those lines you are showing. But that’s me.

    The only thing those lines do is actually remove the admin bar based on the user access level. Access to admin area has already been redirected to the home url above those lines. So, it would be my opinion that the lines we are talking about aren’t really needed except to remove the option to see the admin bar.

    Since WP Symposium Toolbar allows you to remove anything in the toolbar (admin bar) having to do with navigation to the backend, menu items in the admin bar leading to the backend wouldn’t necessarily be a concern to you.

    Guillaume may have a better and more permanent solution but that is what I would do for a quick, temporary solution if you want to test both plugins together.

    Thread Starter EMar Sounds

    (@sounds)

    Actually I posted on the author’s plugin support page a minute ago,
    Then after reading your rely I found a solution here” target=”_blank”>here

    They suggested adding some code snippet to the functions.php so it won;t overwrite it when the plugin gets updated.

    Just trying to figure out where to put it in the functions.php
    remove_action( ‘show_admin_bar’, array($this, ‘show_admin_bar’) );

    I’ll ask the developer to consider adding an option to let the admin choose whether to hide the admin bar or not.

    Thread Starter EMar Sounds

    (@sounds)

    Update: Found a fix posted by Nayme on WebDevs
    I think I need to copy this wpuf.php to my child-theme.

    • This reply was modified 4 years, 4 months ago by EMar Sounds.
    • This reply was modified 4 years, 4 months ago by EMar Sounds.
    Thread Starter EMar Sounds

    (@sounds)

    I’m sick of doing this fix but it’s not difficult..

    Plugin Contributor Central Geek

    (@central-geek)

    Maybe someone could suggest to them they leave the admin bar alone unless someone wants to hide it with their plugin when they don’t have another plugin to hide it with. That would be the common sense approach.

    A lot of developers think they are doing you a favor by hiding the admin bar without giving the option to do so. Rather short sighted, in my opinion.

    This plugin offers the option to show for all or hide for some or hide for all. There are also theme developers who believe the admin bar shouldn’t be there and they hide it by default. It’s really unfortunate.

    There are plenty of plugins dedicated to hiding the admin bar, it makes no sense to do it by default with a user plugin without giving the option to let it show.

    I cannot make changes to this plugin. I am just a contributor. And I’m not sure I would, if I could. This is a completely free plugin where the one you are talking about has a paid version. They could easily remedy the situation.

    Thread Starter EMar Sounds

    (@sounds)

    It’s a really handy plugin, I hope you update it
    We can always use the fix above to display the admin toolbar.

    Thread Starter EMar Sounds

    (@sounds)

    Back again for this fix coz I like your plugin/menu a lot
    Wish this other dev would just add the feature it’s simple.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘WP Symposium Toolbar Conflict With WP User Frontend’ is closed to new replies.