I've moved! I've moved my online home to mikejolley.com, and thats where I'll be blogging primarily. This site will stay live for archive purposes :)

A WordPress Login Widget – Sidebar Login Widget

August 11, 2007 | Published in: Wordpress & plugins | Tags: , , , , , 120

This plugin has now been replaced by an updated version which you can find here


Sidebar Login WidgetWant to allow users to log into wordpress from the sidebar? Doing so is not as simple as it sounds, so to ease your stress I have created a widget to handle everything.

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 Widget v1.5 Build 20070122

By Mike Jolley ( http://www.blue-anvil.com )

What is it?

It’s a widget that allows users to login to wordpress from the sidebar! It uses php sessions to cleverly retrieve the wordpress login error messages, and uses redirects to send the user back to the site, rather than the wordpress backend.

Screenshots

User not logged in:

Not logged in screenshot.gif

User logged in:

Logged in screenshot.gif

Errors!

Error! Screenshot.gif

Get it now!

Download Sidebar Login Widget Version 1.55

| Index |

Installation Instructions

Simply:

  1. Unzip and upload the php file to your wordpress plugin directory
  2. Activate the plugin
  3. Goto the presentation > widgets tab
  4. Drag the widget into a sidebar and save!

| Index |

License

WordPress Sidebar Login Widget © Copyright 2007-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.

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

| Index |

Support my sweat, blood and tears

I know, that sounds gross, but we really did put ALOT of effort into this widget. If you like this widget please make a donation via paypal! Any amounts are welcome, your support is much appreciated.


| Index |

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

Related Entries

120 Responses to “A WordPress Login Widget – Sidebar Login Widget”

RSS feed for comments on this post.

  1. tonup says:

    Thanks Mike..
    I put Following code above everything this at top of index.php (main index)

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    And near the top on index.php i put..

    Now works perfect in latest FF and IE 6 don’t know about 7 (don’t want it)
    Found these from search google wordpress.or and posts on blue_anvil
    Thanks Again 4 cool plugin.. tonup

    Comment made on January 25, 2008 at 9:12 am

  2. tonup says:

    scratch previous post tried pasting code between and pasted code ain’t appearing !!!???

    Comment made on January 25, 2008 at 9:16 am

  3. Mike Jolley says:

    :( My comment code is playing up badly

    Comment made on January 25, 2008 at 9:44 am

  4. Ian says:

    Very nice update indeed !…

    I am using Freshy 2 customized from Freshy 1 together with the “Lightbox 2″ plugin for pictures animation effects which was working nicely on my previous Freshy 1 template…and here is the problem : the lightboxes now open badly “under” the beautiful Freshy 2 transparent main menu…

    Any idea to fix that rendering issue ?

    Thanks for your help !

    Comment made on January 31, 2008 at 6:43 pm

  5. Ian says:

    Sidebar Login widget is not working properly on Firefox 2.0.0.11
    When trying to log in with sidebar login I get the message “Your browser does not accept cookies or they are blocked….”. I need to log in with default /wp-login.php at first…….then if I go with Sidebar-Widget logout re-login is OK from widget…?!?….
    Any idea to fix this ?

    Comment made on February 1, 2008 at 1:36 am

  6. Raf says:

    is there a fix for “ERROR: WordPress requires Cookies but your browser does not support them or they are blocked.” error yet?

    I’ve tried many suggested fixes but no luck in getting it fixed using FF.

    Comment made on February 1, 2008 at 10:23 am

  7. Mike Jolley says:

    Try re-downloading, Ive updated the file to *hopefully* fix the cookie bug

    Comment made on February 2, 2008 at 12:40 am

  8. Ian says:

    I4ve downloaded the new version (with bug fix) : it still doesn’t work with Firefox…1st attempt for login still returning cookie error message…second attempt is OK so far…really annoying actually !
    One solution (regardless of security cookie testing….) is to go back with previous version (the one with no bug fix) and to simply comment the 2 following lines :
    // If cookies are disabled we can't log in even with a valid user+pass
    //if ( $_POST && empty($_COOKIE[TEST_COOKIE]) )
    // $errors['test_cookie'] = __('<strong>ERROR</strong>: WordPress requires Cookies but your browser does not support them or they are blocked.');

    to get rid of the problem and make the Login working again…….
    But once again I don’t know about security without those 2 lines of code !!!

    Comment made on February 2, 2008 at 6:18 pm

  9. Wilhelm says:

    Mike,

    this did it for me – thank you!

    Comment made on February 5, 2008 at 3:12 am

  10. Nasko says:

    Hi :) well my theme doesnt support widgets so how to integrate it? :D

    Comment made on February 13, 2008 at 12:46 am

  11. Ravi says:

    Hi,
    i found the cookiew error resolved in 2.3.3 beta version.
    Pls fwd this anyway so that others can try…
    i’m sure. it worked in my server.
    Thanks

    Comment made on February 16, 2008 at 2:01 pm

  12. yuppicide says:

    I’ve tried the fix as noted in comment #41 and still get the same error. :(

    Comment made on February 18, 2008 at 10:24 pm

  13. adam says:

    I’m trying to use the sidebar login widget, but am running into some issues. It shows up fine on my sidebar, but when you type in a username and pw, no matter what it takes you to the normal login page. I can type the exact same info on the sidebar login and the normal one. The normal one logs me in, the sidebar just forwards me to the normal login page. Any ideas?

    Comment made on February 19, 2008 at 1:00 am

  14. Anna Pirkle says:

    I noticed the login bug in FF with WP 2.2 and sidebarlogin v.1. I tried updating to 1.51 but it still repeated the behavior. I updated to WP 2.3.2 and again the cookies error (followed by successful login 2nd time). So I backed down to sidebarlogin v.1 and it logs me in first time but directs me to the admin page (still FF). In Safari, the cookies problem persists regardless of which login version I use. In IE6/Opera9 I don’t get a cookies error at all, I get bumped to the backend login for v1.51.

    Comment made on February 21, 2008 at 12:50 am

  15. Daniel says:

    The hack allows my browser to be free of the cookie error but now when the page is supposed to be directed to the control panel, it just stays on wp-login.php but it becomes a blank page.

    Comment made on March 4, 2008 at 10:04 pm

  16. Juhana says:

    This is a great widget but there’s one little problem. When click Login button, page does not refresh properly. It looks you’re not logged on but actually you are. Needs a refresh page manually. I’m using Firefox :) Thanks anyway!

    Comment made on March 14, 2008 at 1:38 pm

  17. Jamie says:

    Clevermonkey your a genius thanks for the solution been going in circle on the wordpress forum for ages I will now be able to meet my deadline because of you!

    Comment made on March 23, 2008 at 4:08 am

  18. Flashy flashy says:

    I just want the code to be put into some other part of the template than sidebar. Is there a function I can call to do that trick for me.

    Comment made on March 26, 2008 at 4:34 am

  19. Icko says:

    Really usefull, gooogled and found it.. thanks a lot !

    Comment made on April 6, 2008 at 2:25 pm

  20. Gleb Esman says:

    Hi, great login widget thanks for creating it.
    I wanted to make a donation – but after clicking on your “donate” button – I got some sort of “certificate error” – haven’t been able to complete it.
    You might want to check it out and fix it.

    Gleb

    Comment made on April 6, 2008 at 8:32 pm

  21. Johan says:

    Hi Thanks for the plugin. Can you help me? I need to add a link to a dedicated register page. This link may show when a person is logged out. I opened the loginSidebar dot php but am not sure where to add the link. Thanks again. Johan

    Comment made on April 12, 2008 at 9:03 am

  22. WordPress Modder says:

    I ran into this cookie problem with a fresh install of WPMU. I was directed to this thread, comment 41 by clevermonkey to be exact, and making that small change in wp-login.php seemed to solve my issues.

    Thank you clevermonkey, whoever you are!

    Comment made on April 18, 2008 at 12:59 am

  23. Cfitz says:

    Hello,
    Yep, awesome plugin. Exactly what I needed.
    However, I am also having the problem one other poster has…
    In FF 2.0.0.14, upon login, the widget does not change, although I am logged in. If I do a manual refresh, the widget displays the correct login information. Is there a way to correct this? I\\\\\\\’m using WP 2.5, with the Cutline theme…
    Any help would be appricated!

    Comment made on April 18, 2008 at 7:12 am

  24. reena says:

    hello !! nice plugin. just installed it on my website . running smoothly thanx

    Comment made on April 24, 2008 at 11:44 am

  25. ikki says:

    Nice! I love this plugin – except 1 problem. When the user logs in with the right user/pass, they are directed to the wordpress login page and are required to login again.

    Is there a fix for this?

    Comment made on April 26, 2008 at 8:10 pm

The comments are closed.

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

    • @pippinsplugins Thanks. We're rewriting all those queries anyway (queryposts uh oh)
  • Out of the blue - More

    • Download Monitor 3.3.5 Tagged for release

      The latest update to Download Monitor for WordPress has been released; this version comes with a many fixes and some new features, such as improved sorting. For full details view the readme; you can grab the plugin here.

    • 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.