codebunny
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress All In One Admin Bar] 'Hide admin bar' options not workingThe whole website goes down! This may be happened because of a coding error. Please double check the below steps.
Currently existing function
function change_the_visibility_of_admin_bar() { global $wpaioab_options; $current_user = wp_get_current_user(); $user_roles = $current_user->roles; $user_role = array_shift($user_roles); if(isset($wpaioab_options['wpaioab_'. str_replace(' ', '', strtolower($user_role))])){ add_filter('show_admin_bar', '__return_false'); } }
Replace the current function from the below function
function change_the_visibility_of_admin_bar() { global $wpaioab_options; $current_user = wp_get_current_user(); $user_roles = $current_user->roles; $user_role = array_shift($user_roles); if(isset($wpaioab_options['wpaioab_'. str_replace(' ', '', strtolower($user_role))])||isset($wpaioab_options['wpaioab_'. str_replace('_', '', strtolower($user_role))])){ add_filter('show_admin_bar', '__return_false'); } }
Is it ?
Forum: Plugins
In reply to: [WordPress All In One Admin Bar] 'Hide admin bar' options not workingIt seems current plugin version is not compatible with the latest version of s2member. You have to do a small code change –
Open the file
wp-content\plugins\wp-all-in-one-admin-bar\public\class-wordpress-all-in-one-adminbar.phpFind this function change_the_visibility_of_admin_bar
Replace the function change_the_visibility_of_admin_bar from this code,function change_the_visibility_of_admin_bar() { global $wpaioab_options; $current_user = wp_get_current_user(); $user_roles = $current_user->roles; $user_role = array_shift($user_roles); if(isset($wpaioab_options['wpaioab_'. str_replace(' ', '', strtolower($user_role))])||isset($wpaioab_options['wpaioab_'. str_replace('_', '', strtolower($user_role))])){ add_filter('show_admin_bar', '__return_false'); } }
Hi Jim,
Add this to Custom CSS textarea & check whether it is working.
#wpadminbar #wp-admin-bar-site-name > .ab-sub-wrapper{display:none!important;}
Feel free to contact me if you have further questions regarding this.
Thanks
Hi Jim,
Since, I’m a little bit busy please give me few more days. I’ll find a solution & inform you asap.
Thanks.
Forum: Plugins
In reply to: [WordPress All In One Admin Bar] Organize custom menusLet me know the php version of hosted server. And I’m not sure whether it is happened because of another plugin that you are using. Is this a live or developing site ? If you can provide me the admin details of your site to [email protected] . I’m happy to help you & try my best to make this work.
Forum: Plugins
In reply to: [WordPress All In One Admin Bar] Organize custom menusI wonder if it is possible to sort the menus (not submenus) as I want it to be seen by visitors
As the pluggin developer I also had to encouner this problem with my several projects. But I didn’t get a time to develop the pluggin to this stage. Hopefully I will be able to add this feature to a future release as time allows.
Whether it can update the plugin so that the bar can be seen in the Chrome web browser (it is not seen). Works perfectly Windows Explorer
I checked the link you sent in several browsers (IE., Firefox, Chrome). However, I couldn’t see the admin bar in any of the browsers. I assume your requirement is displaying the admin bar to visitors.
Try this:Add the below code to your theme functions.php file
add_filter('show_admin_bar', '__return_true');
or
show_admin_bar( true );
In case I understood your question incorrectly, please feel free to reply me again.
Thank you for your interest in this pluggin. Sorry for the delay in replying.
Thanks
Forum: Reviews
In reply to: [WordPress All In One Admin Bar] Works great!Thanks a lot for your rating. I’m glad it was useful to you. ??
Add this to functions.php
add_action( ‘admin_bar_menu’, ‘toolbar_link_to_mypage’, 999 );
function toolbar_link_to_mypage( $wp_admin_bar ) {
if ( is_user_logged_in() ) {$args = array(
‘id’ => ‘my_logout’,
‘title’ => ‘Log Out’,
‘href’ => wp_logout_url( home_url() ),
‘meta’ => array( ‘class’ => ‘my-toolbar-page’ )
);
} else {$args = array(
‘id’ => ‘my_login’,
‘title’ => ‘Log In’,
‘href’ => wp_login_url(),
‘meta’ => array( ‘class’ => ‘my-toolbar-page’ )
);
}$wp_admin_bar->add_node( $args );
}You can’t do this directly.
Follow the below steps.
1) Create a WP menu
2) Install & Activate one of the below listed plugins
https://www.ads-software.com/plugins/baw-login-logout-menu/
https://www.ads-software.com/plugins/theme-my-login/
3) Add the logout page(generated or created) to above created menu.
4) Now add this menu to admin bar using my plugin.Thanks
Forum: Reviews
In reply to: [WordPress All In One Admin Bar] Great Plugin.Thanks for your rating & comments. I’m glad it was useful to you. ??
Forum: Reviews
In reply to: [WordPress All In One Admin Bar] love footer option menu !Thanks a lot for rating my plugin.:) Any suggestions are always welcome.
Forum: Plugins
In reply to: [WordPress All In One Admin Bar] same admin bar for the entire Multi-SitesUnfortunately,this feature is not available with my plugin. Another person also inquired about this use case few months ago. But,unfortunately I still couldn’t find time to look in to this in depth.
But, may be you can try this.
1) Open the file wp-all-in-one-admin-bar\admin\includes\class-wordpress-all-in-one-adminbar-custom-menu.php
2) Replace update_option(‘wpaioab_settings’, $wpaioab_options); from update_site_option
3) For more details please refer https://codex.www.ads-software.com/Function_Reference/update_site_option
Note : Before trying the above steps, please take a database backup.
Please consider that this will be effective for custom admin bar menus only.
I will consider regarding this use case in the future as time allows me.
Thanks.
Forum: Plugins
In reply to: [WordPress All In One Admin Bar] One more question If I may?Hi Gary,
I visited your website and it looks fantastic. I’m glad that my plugin was useful to your project. I’ll fix the above mentioned issue in the next release. Thanks for sending me the code line.
I hope we can work on a project together one day maybe
Sure, It would be a pleasure to work in a project together. Please feel free to contact me anytime. ??
Thanks.
Forum: Plugins
In reply to: [WordPress All In One Admin Bar] One more question If I may?Hi Gary,
I sent a reply to your email while ago. Now you can change the admin details of your site.
Thanks.
Forum: Plugins
In reply to: [WordPress All In One Admin Bar] One more question If I may?It is difficult to predict what causes this issue. If possible, please send me admin details & URL of your site to [email protected]
I’ll have a look and happy to help you.
Thanks.