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!
Related Entries
- Wordpress Sidebar Login Widget Update
- A Wordpress Login Widget – Sidebar Login Widget
- The great wordpress plugin update extravaganza of the year
- Create a Wordpress Recent-Posts Widget
- Wordpress Download Monitor 3 Documentation















239 - David says:
I found the stylesheet associated with your plugin, but on my 2.8 WP it says the stylesheet is (inactive). Do you suggest we copy & paste that into our theme’s .css? It would be great if it were kept separate, in case I change my theme. Thanks.
Comment made on June 18, 2009 at 7:44 pm
240 - Mike Jolley says:
@David: The styles are still applied in my install but you’re the second to report this. Could you look in your themes header for the style.css of the plugin? (by viewing source in the browser, not by opening the theme file)
Comment made on June 19, 2009 at 11:34 am
241 - Nnyan says:
Hello,
Love the plugin! I only want the dashboard link to show up for admins and after I add the “|true” it’s still showing up.
Dashboard |true
Using the dev version of the plugin with WP 2.8
Thank You!
Comment made on June 20, 2009 at 2:57 pm
242 - Nnyan says:
<a href="http://www.eastsacinfo.com/wp-admin/" rel="nofollow">Dashboard</a> |truesorry example got changed
Comment made on June 20, 2009 at 2:59 pm
243 - Mike Jolley says:
@Nnyan: I just tested and its working fine here. try removing the space before the pipe (|)? What level are the users who your trying it with? I tried subscriber.
Comment made on June 23, 2009 at 10:39 pm
244 - GhostLyrics says:
Here is a German translation for your 2.2.4 release: Link
Comment made on June 24, 2009 at 1:46 am
245 - Nnyan says:
Mike,
Mine are Contributor’s. I did take out the space between the pipe and still shows up.
Comment made on June 26, 2009 at 4:39 am
246 - Bryan Maupin says:
@Eric:
I had a similar issue with my site. I was using the FORCE_SSL_LOGIN variable and noticed that when logging in through wp-login.php, it was SSL, but not through the sidebar login plugin. Here’s what I had to do to fix it:
In the wp_sidebarlogin_current_url function, right before the last line (return $pageURL:, line 389 in version 2.2.4), I added these 3 lines:
if ( force_ssl_login() || force_ssl_admin() ) {$pageURL = str_replace( 'http://', 'https://', get_option('siteurl') );
}
That should do the trick. This should work for anyone wanting to use the FORCE_SSL_ADMIN or FORCE_SSL_LOGIN variables now part of Wordpress mentioned here:
http://codex.wordpress.org/Administration_Over_SSL
Comment made on June 29, 2009 at 5:18 pm
247 - Julz says:
Hi,
I am getting an error when logging in as a non-admin (in this case, subscriber. I keep getting the following error:
Welcome [username]
Notice: Undefined variable: user_level in [...]/plugins/sidebar-login/sidebar-login.php on line 154
Logout
Seems like it is “$level = $user_info->user_level;” that bit. Is there a way to fix it?
Btw thanks in advance!
Great plugin.
Comment made on June 29, 2009 at 8:13 pm
248 - Mike Jolley says:
@Julz: I dont think it’s an error as such as it wont stop the page from loading – you can disable noticed etc in php. Still, Ill see if I can rectify it.
Comment made on July 2, 2009 at 10:41 pm