WordPress.org

Forums

WordPress Admin Bar Improved
"Official" Help Forum for WordPress Admin Bar Improved (74 posts)

  1. Donald Gilbert
    Member
    Plugin Author

    Posted 4 years ago #

    If you have any questions, suggestions for improvement, or overall comments about my plugin, WordPress Admin Bar Improved, please post them here.

    v3.1 changes:
    re-write to work with WP3.1 Admin Bar

    http://wordpress.org/extend/plugins/wordpress-admin-bar-improved/

  2. Donald Gilbert
    Member
    Plugin Author

    Posted 4 years ago #

    Upcoming Features:
    Custom Menu Items (easy interface using the WP api)
    Ajax Search Popup
    Search Autocomplete (maybe?)

  3. shadowrider921009
    Member
    Posted 4 years ago #

    Dude, I love this plugin, its brilliant, really!

    I am so looking forward to custom Custom Menu Items, that would be great.
    And is there any way to have a register link (next to sign in), maybe with Custom Menu I could do this ;)

    Oh one last thing, with custom menu items I hope it would be possible to have links to FB, Twitter, etc but with nice small icons, that would be the icing on the cake!

    Keep up the great work!

  4. Bike
    Member
    Posted 4 years ago #

    +1 for all Shadowrider asked :)

    Might be important to have a preview of the bar for both logged-in as well as logged-out users.

    One additional feature would be ability to integrate this bar with the BuddyPress bar. It has different, but very useful menus, but of course, not everybody needs that..

    Thanks!

  5. tarmentano
    Member
    Posted 4 years ago #

    Any updates on when the "Upcoming Features" will be integrated into this plugin? Good work.
    Thanks
    Terence

  6. Donald Gilbert
    Member
    Plugin Author

    Posted 4 years ago #

    Just released v3.1.2 - the only addition in this release is the ability to show or hide the bar via jQuery.

    Currently working on custom menu items.

  7. Ovidiu
    Member
    Posted 4 years ago #

    +1 for the requested features and maybe you can have a look at this other thread I have where I am trying to customize my admin bar manually: http://wordpress.org/support/topic/some-wp-admin-bar-related-snippets?replies=12

    maybe I can do that with a future version of your plugin :-)

  8. Lashknife
    Member
    Posted 4 years ago #

    I've modified your code to already add a lost password and register button after the login button:
    in the php file:

    <input type="button" class="adminbar-button" value="'.__('Lost password').'" onclick="location.href=\'' . get_settings('siteurl') . '/wp-login.php?action=lostpassword\'"/>
    <input type="button" class="adminbar-button" value="'.__('Register').'" onclick="location.href=\'' . get_settings('siteurl') . '/wp-login.php?action=register\'"/>

    and in the js file, I added a code that when you hide the bar, it doesnt leave a gap on top, but slides the html/body also to the top:

    $('html').animate({'margin-top': '+=28px'}, 'slow');
    $('body').animate({'margin-top': '+=28px'}, 'slow');

    And of course the -28 in the other condition.

    Would be cool to see these as an official addon. Nice work so far.

  9. Donald Gilbert
    Member
    Plugin Author

    Posted 4 years ago #

    Thanks Lashknife - I was experimenting a long time with the "leaving a gap at the top", but IE8 was having an issue with it, so I decided to drop it. I modified your code a little bit, and have it running great across all browsers now - thanks! For sure in the next release.

    As far as the extra buttons, I'm not going to add those ~exactly~ but close. I want it to look as close to WordPress.com admin bar as possible. So I added the remember me checkbox and the Lost your password? link in the upcoming release.

    The new release has an admin panel where you can select whether or not to enable the ajax search and whether or not to enable the log in form. The next release will include the custom menu items that has been requested.

  10. Donald Gilbert
    Member
    Plugin Author

    Posted 4 years ago #

    Just released 3.1.4 - 3 releases in 2 days!

  11. Lashknife
    Member
    Posted 4 years ago #

    If register won't be in it, then I'll have to code it in myself again, or make a custom side button available that's perhaps more attractive to new users and which is not shown when wordpress-loggedin state is true (dunno how to verify that the wp-way, but I'll find a way.

    Can't you make register "optional" just like the search? Because for fully custom themes like mine which disregard standard blogging but basically abuse the backend of wordpress post/pages + user system, this bar at the top is a simple bypass to having to include a proper login form or link.

  12. Ovidiu
    Member
    Posted 4 years ago #

    please do not forget about the multisite option! can't run this plugin 'cause they can edit dangerous stuff, as I said, only siteadmin needs to have access to the options.

  13. Donald Gilbert
    Member
    Plugin Author

    Posted 3 years ago #

    @Ovidiu - I think I got it this time. I don't have a multisite environment to test it on, but I'm pretty sure it would work.

    @Lashknife - I added the option for the registration link.

  14. Ovidiu
    Member
    Posted 3 years ago #

    ahm, no idea what happened, I upgraded, network activated it and can't find ANY menu or options page, where is it supposed to be???

  15. Donald Gilbert
    Member
    Plugin Author

    Posted 3 years ago #

    @Ovidiu - go into your Plugins -> Editor menu item, and then select WPABI (or WordPress Admin Bar Improved) from the dropdown list. Then select wpabi.php. In there, there is a function called admin_menu() - in the if(is_multisite() && is_site_admin() section, change it to this.

    global $wp_version;
    $where_to_place = (version_compare($wp_version, '3.1', '>=')) ? 'settings.php' : 'ms-admin.php' ;
    add_submenu_page($where_to_place, 'WPABI', 'WPABI', 'manage_options', 'wpabi', array(&$this, 'admin_page_render'));

    Edit: Just before that you must bring in the global $wp_version. I added it in the code already.

  16. Donald Gilbert
    Member
    Plugin Author

    Posted 3 years ago #

    @Ovidiu - I just updated the code in the official release, but I didn't upgrade the version number. Give it about 30 minutes, and then re-install the plugin.

  17. Donald Gilbert
    Member
    Plugin Author

    Posted 3 years ago #

    If you installed the last version any time today, there is an error in it. You must uninstall and reinstall the latest version. This only effects users of WordPress Multisite.

  18. Ovidiu
    Member
    Posted 3 years ago #

    ok, deleted the plugin, reinstalled right now, network activated and got this error:

    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/clients/client1/web1/web/wp-content/plugins/wordpress-admin-bar-improved/wpabi.php on line 217

    btw. do I still need to make those changes above in the plugin or is everything ok now except for this new error?

  19. Donald Gilbert
    Member
    Plugin Author

    Posted 3 years ago #

    Sorry about that - there was a misplaced ' in the code. Please update to v3.1.6 for anyone that is experiencing that error.

  20. Ovidiu
    Member
    Posted 3 years ago #

    ok, still:

    btw. do I still need to make those changes above in the plugin or is everything ok now except for this new error?
    can you clarify this please?

    p.s. 3.1.6 not visible yet will wait a few hours :-)

  21. Donald Gilbert
    Member
    Plugin Author

    Posted 3 years ago #

    Those changes were merged in the latest version, so no need to update. If you want to make the fix yourself that I put into 3.1.6, you can. go to the same place as the code above states, but this time, look for an extra ' in the code add_submenu_page($where_to_place', - just delete the ' after the $where_to_place variable.

  22. Ovidiu
    Member
    Posted 3 years ago #

    sorry, I think I confused you :-)

    earlier on, I said I can't find the admin menu anywhere using multisite mode and you told me to change some code to place it. the question is do I still need to change code to make the admin menu appear when using multisite?

  23. Donald Gilbert
    Member
    Plugin Author

    Posted 3 years ago #

    The plugin is triggering a fatal error, so the menu won't show up. The changes I told you to make were already made in the latest version that you have installed. However, there was another error on the version you have installed, and that's detailed in my previous post.

    You can go in yourself to the Plugins->Editor->WordPress Admin Bar Improved and make the latest changes (removing the single ' after the $where_to_place variable) (you don't need the plugin active to make the edits) or you can wait for 3.1.6 to be active in the directory.

  24. Ovidiu
    Member
    Posted 3 years ago #

    sorry to bug you so much and thanks for all the support.
    I have upgraded to 3.1.6 and still can't find any settings.
    using wp 3.1.3 with multisite option.

  25. Ovidiu
    Member
    Posted 3 years ago #

    is_site_admin() has been deprecated. http://codex.wordpress.org/WPMU_Functions/is_site_admin
    replaced it with is_super_admin() but still something is wrong and the menu doesn't show...

    the menu placing changed too, read here how to do it: http://wpmututorials.com/how-to/adding-a-menu-to-the-new-network-admin/

    unfortunately I am no coder and couldn't get it to work but I'm sure you'll understand what needs to be changed.

  26. Donald Gilbert
    Member
    Plugin Author

    Posted 3 years ago #

    Well, looks like I'm going to have to set up a dev environment that matches yours.

    is_site_admin() had been deprecated, but will continue to work for the foreseeable future, since there are items that have been deprecated since WordPress 1.0.1 that are still usable, so that doesn't make a difference, (although I will change it). I am using the new 3.1 style network admin menu adding, so still not sure what the problem is. I'll have to set up a test and see.

  27. Ovidiu
    Member
    Posted 3 years ago #

    :-) thanks for the continued support, and don't get me wrong I wasn't criticizing, just trying to help.

    Let me know when you've got a new version for testing...

  28. www.agentstaobao.com
    Member
    Posted 3 years ago #

    Custom Menu Items (easy interface using the WP api)
    Ajax Search Popup

  29. tarmentano
    Member
    Posted 3 years ago #

    Hey Donald,
    How can I modify the code for the wpabi.php file so that it only does one thing and that is to display the login form. No "hide" button or "ajax search" I've been trying to modify it myself, but I keep running into errors.

    Thanks
    Terence

  30. Donald Gilbert
    Member
    Plugin Author

    Posted 3 years ago #

    @tarmentano - the easiest thing to do would be to comment out the part that says

    wp_enqueue_script('wpabi')

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Admin Bar Improved
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic