WordPress Sidebar Login 2 – Optimised for wordpress 2.6

July 23, 2008 | Published in: Wordpress & plugins | Tags: , , , , , , 352

Sidebar Login 2At last! My sidebar login widget has evolved into ‘Sidebar Login’ which has both a widget and a template tag to allow you to have a login form in the sidebar of your wordpress powered blog.

It lets users login, and then redirects them back to the page they logged in from rather than the backend, it also shows error messages. Read more for more information and the download link.

Sidebar Login

Sidebar login is self explanatory really; it allows users to login to wordpress from the sidebar! This plugin requires wordpress 2.6 (that is all I have tested) in order to function; this is because wordpress 2.6 has a modified login system to older versions.

Screenshots

Login Form

Login Form

Logged in

Logged in

Change Log

You can track changes to the plugin in the wordpress plugin SVN.

Get it now!

You can get the latest version from the wordpress plugin database; Download it here!

Installation Instructions

  1. Unzip and upload the php file to your wordpress plugin directory
  2. Activate the plugin
  3. For a sidebar widget: Goto the design > widgets tab – Drag the widget into a sidebar and save!
  4. To use the template tag: Add <?php sidebarlogin(); ?> to your template.

License

WordPress Sidebar Login © Copyright 2008-current. Mike Jolley

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
optimised

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Show your support – ensure continued development

I put a lot of effort into all of my plugins; its thirsty work so why not show your support by buying me a nice coffee :)

Found this post useful? Why not buy me a coffee!

Related Entries

352 Responses to “WordPress Sidebar Login 2 – Optimised for wordpress 2.6”

RSS feed for comments on this post.

  1. seven says:

    uh..the blog url has changed to http://www.anchuang.org.
    and I’m glad to add my chinese po file into the “language” Directory in your plugin:),of course,you agreed that.

    ReplyReply

    Comment made on October 12, 2009 at 3:48 pm

  2. mad max says:

    thanks for your very good plugin. I’ve made two micro-changes to your code:
    1) Added
    'theloginbutton'=&gt;__('Login »','sblogin'),
    on line 130 among defaults,
    2) changed accordly line 241 to
    &lt;input type=&quot;submit&quot; name=&quot;wp-submit&quot; id=&quot;wp-submit&quot; value=&quot;" /&gt;

    Now is possible to hide the title ‘Login’ without losing the submit button value:

    ReplyReply

    Comment made on October 16, 2009 at 10:57 am

  3. Andres says:

    Cool plugin… Please if you want add fields Registration and lost you password in this plugin. Many Thanks..

    ReplyReply

    Comment made on October 19, 2009 at 5:23 pm

  4. Kinaray-a News says:

    A very nice plugin indeed. A good use for my website. Thanks a lot.

    ReplyReply

    Comment made on October 28, 2009 at 1:43 pm

  5. André Rombauts says:

    Using WP 285 French, I note that using sidebarlogin with qtranslate doesn’t display the sidebarlogin box in the desired language (for displaying in Dutch and German): it is displayed in English although running in French… Desactivating qtranslate make it running correctly…

    ReplyReply

    Comment made on October 28, 2009 at 3:30 pm

  6. Giuge says:

    This is just a great plugin! Just a suggestion: you can display link only for admins, but you can’t display link only for users, this would be such a usefull feature! Thank you again for the plugin :)

    ReplyReply

    Comment made on November 12, 2009 at 11:11 am

  7. c0de says:

    I agree with Giuge.. That’s almost a must! Hope for an update soon:)

    Thnx for the plugin!

    ReplyReply

    Comment made on November 19, 2009 at 1:16 pm

  8. uili says:

    far the best side bar login!
    but, is there a way to leave the error msgs on a javascript alert box??

    thnx

    ReplyReply

    Comment made on November 19, 2009 at 5:25 pm

  9. Halim says:

    Would it be possible to add a configuration field to set maximum field width pixels for the login and password fields? On narrow themes displayed on wide screens it goes outside the theme width.

    ReplyReply

    Comment made on November 22, 2009 at 11:39 am

  10. Patrick says:

    This is a great plugin, however, I’m wondering how to enforce that the login is done over HTTPS instead of HTTP. So basically how could I upgrade the login to SSL and eventually downgrading when login-out !

    ReplyReply

    Comment made on December 7, 2009 at 6:35 pm

  11. Mike Jolley says:

    @Patrick: It should detect that if you do this http://codex.wordpress.org/Administration_Over_SSL

    @Halim: That’s why CSS exists :)

    ReplyReply

    Comment made on December 8, 2009 at 6:43 pm

  12. Eric says:

    Hi Mike,

    I’ve used the 2.2.7 version without any problems on my test site but when I’ve upgraded to the 2.2.8 version I get a line injected on the top of all my pages; the line is:

    - .”sitename”.com

    I have the same problems on all the sites I’m developing.

    Thanks in advance for your service and don’t stop this plugin going…

    ReplyReply

    Comment made on January 3, 2010 at 7:58 pm

  13. Mike Jolley says:

    @Eric: Good find – line 313 echo COOKIE_DOMAIN;

    ReplyReply

    Comment made on January 4, 2010 at 1:19 pm

  14. Luis Priego says:

    Hi
    Congratulations you have an excellent plug in!
    Could you tell me how to remove the “dashboard” and the “profile” links from the sidebar when the user is logged in?
    I only need the user to see the log out link.
    Thanks in advance

    ReplyReply

    Comment made on January 11, 2010 at 8:16 am

  15. luis Priego says:

    @Luis Priego: PLEASE DISREGARD MY PREVIOUS POST, I APOLOGIZE….
    Best

    ReplyReply

    Comment made on January 11, 2010 at 8:45 am

  16. Patrick says:

    @Mike Jolley:

    Thanks

    Patrick

    ReplyReply

    Comment made on January 13, 2010 at 2:29 pm

  17. Darren says:

    works fine in every sense except the user cannot login with their password as it does not get sent to them, ive tried with 2 people and waited 1 day and noone received their email with their password, everything else works fine, i even recieve emails saying the i have 2 new users

    Any ideas?? im using the latest version of wordpress not sure the number

    Darren

    ReplyReply

    Comment made on January 20, 2010 at 12:35 am

  18. Mike Jolley says:

    @Darren: Registration/email is nothing to do with the plugin – it only handles logging in.

    ReplyReply

    Comment made on January 21, 2010 at 2:27 pm

  19. Darren says:

    Ok im confused, you can’t login without registering but the plugin doesnt allow you to register? or should i say it DOES allow you to register as i recieve emails confirming their registration but it doesnt send them the email with their password??

    so if thats the case, where and how do i configure the email/password that is sent to the user so they can login?

    Sorry im not a compltete noob but it mentions nothing anywhere about having to do that, i love the plugin and is perfect for me but i just cant give my users access as they cant login, can you point me in the right direction here to get this sorted?

    thank you for your reply

    ReplyReply

    Comment made on January 22, 2010 at 12:16 am

  20. Mike Jolley says:

    @Darren: WordPress itself handles registrations – sidebar login just links to the built in stuff. Registration options are configured in wordpress admin.

    ReplyReply

    Comment made on January 22, 2010 at 5:20 pm

  21. Tosh says:

    If you add a further |USER LEVEL the link will only be shown to users with levels equal to or greater than those defined.

    Can you explain how to do that please? I just want to show this to people that have access to post news. Which would be a Contributor and higher.
    Post News

    ReplyReply

    Comment made on January 26, 2010 at 3:21 pm

  22. Mike Jolley says:

    @Tosh: So you would add the link then a ‘pipe’ then ‘true’ then another pipe then the user level:

    http://link|true|5

    However, some people have had problems with this because of the latest wordpress version. You’ll just have to try it.

    ReplyReply

    Comment made on January 27, 2010 at 11:32 am

  23. Michelle says:

    This plug in is great, how do I add a picture though. When I login there is a little image placement there but I can’t figure out how to fix that with a picture.

    I would love to advertise for you as my donation; would you like to send me a 125 x 125 image with ideal link,or if you prefer happy to send donation. Cheers Michelle

    ReplyReply

    Comment made on February 1, 2010 at 3:29 am

  24. Mike Jolley says:

    @Michelle: The image is a ‘gravatar’ as is based on your email – looks like you have one set.

    ReplyReply

    Comment made on February 1, 2010 at 10:07 am

  25. robinvd says:

    Mike,

    Excelent script! Was looking for this and don’t get it why WP haven’t used this still.

    Works for 2.9.2 also!

    ReplyReply

    Comment made on February 17, 2010 at 8:30 am

Leave a Reply

About this site

Blue Anvil is the online web design journal & portfolio of , a web designer from Norfolk, England. Read More »
MiniCard Theme for WordPress
  • Featured work - More

    • Beefjack
    • Integrity
    • theotaku.com
  • Latest Tweet - More

    • RT @jameskoster: Free MacBook Pro vector; http://www.potatoestomatoes.co.uk/technical/free-macbook-pro-vector/ #vector #resource
  • Out of the blue - More

    • Closing the Forums

      Just posting to let current users know that I’m closing the forum on Blue-Anvil. This is mainly due to spam-registrations getting out of hand and being a general nuisance. I will be posting good topics as FAQ items within posts if applicable.

      Please note that you can still post and get help for my plugins/themes by posting on the wordpress.org website.

    • Show off your MiniCard!

      Are you a user of the WordPress MiniCard theme? Its been downloaded over 14,000 times so far!

      If you have used it as-is, made your own child-theme or done something creative with it, please show off your MiniCard’s in the comments, I’d love to see how the theme is being used!

    • Spam Stopper updated for WordPress 3.0

      My Spam Stopper plugin has been updated for WordPress 3.0 (version 3.1.3) – you can grab it here. Sorry this update took longer than my other plugins but this one gets less lovin’ – if you want to change that feel free to donate, spread the word, or rate it on the WordPress.org plugin page.

    • SexyBookmarks & Tr.im

      Just a notice to users of the brilliant http://www.sexybookmarks.net/ plugin by shareaholic – If you use tr.im (as I have on a few client sites) be aware tr.im has ceased operation so you may see errors on your blog or in your source code; it screwed up the background and headings on one of my blogs.

      To fix, go to sexybookmarks options, switch services in the “Which URL Shortener?” box, and tick the box to reset all short urls. Once done, your blog should return to normal.