Wordpress Sidebar Login 2 – Optimised for wordpress 2.6
At 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

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
- Unzip and upload the php file to your wordpress plugin directory
- Activate the plugin
- For a sidebar widget: Goto the design > widgets tab – Drag the widget into a sidebar and save!
- 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!










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.
Comment made on October 12, 2009 at 3:48 pm
mad max says:
thanks for your very good plugin. I’ve made two micro-changes to your code:
1) Added
'theloginbutton'=>__('Login »','sblogin'),on line 130 among defaults,
2) changed accordly line 241 to
<input type="submit" name="wp-submit" id="wp-submit" value="" />Now is possible to hide the title ‘Login’ without losing the submit button value:
Comment made on October 16, 2009 at 10:57 am
Andres says:
Cool plugin… Please if you want add fields Registration and lost you password in this plugin. Many Thanks..
Comment made on October 19, 2009 at 5:23 pm
Kinaray-a News says:
A very nice plugin indeed. A good use for my website. Thanks a lot.
Comment made on October 28, 2009 at 1:43 pm
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…
Comment made on October 28, 2009 at 3:30 pm
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
Comment made on November 12, 2009 at 11:11 am
c0de says:
I agree with Giuge.. That’s almost a must! Hope for an update soon:)
Thnx for the plugin!
Comment made on November 19, 2009 at 1:16 pm
uili says:
far the best side bar login!
but, is there a way to leave the error msgs on a javascript alert box??
thnx
Comment made on November 19, 2009 at 5:25 pm
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.
Comment made on November 22, 2009 at 11:39 am
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 !
Comment made on December 7, 2009 at 6:35 pm
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
Comment made on December 8, 2009 at 6:43 pm
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…
Comment made on January 3, 2010 at 7:58 pm
Mike Jolley says:
@Eric: Good find – line 313 echo COOKIE_DOMAIN;
Comment made on January 4, 2010 at 1:19 pm
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
Comment made on January 11, 2010 at 8:16 am
luis Priego says:
@Luis Priego: PLEASE DISREGARD MY PREVIOUS POST, I APOLOGIZE….
Best
Comment made on January 11, 2010 at 8:45 am
Patrick says:
@Mike Jolley:
Thanks
Patrick
Comment made on January 13, 2010 at 2:29 pm
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
Comment made on January 20, 2010 at 12:35 am
Mike Jolley says:
@Darren: Registration/email is nothing to do with the plugin – it only handles logging in.
Comment made on January 21, 2010 at 2:27 pm
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
Comment made on January 22, 2010 at 12:16 am
Mike Jolley says:
@Darren: WordPress itself handles registrations – sidebar login just links to the built in stuff. Registration options are configured in wordpress admin.
Comment made on January 22, 2010 at 5:20 pm
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
Comment made on January 26, 2010 at 3:21 pm
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.
Comment made on January 27, 2010 at 11:32 am
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
Comment made on February 1, 2010 at 3:29 am
Mike Jolley says:
@Michelle: The image is a ‘gravatar’ as is based on your email – looks like you have one set.
Comment made on February 1, 2010 at 10:07 am
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!
Comment made on February 17, 2010 at 8:30 am