Wordpress Sidebar Login 2 – Optimised for wordpress 2.6

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

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

336 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

Why ask?

About this site

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

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

    • Would be nice is people showed more love for MiniCard by rating it on wordpress.org http://wordpress.org/extend/themes/minicard
  • Out of the blue - More

    • MiniCard 1.1.7 Update

      I have just uploaded 1.1.7 of MiniCard here and to the WordPress theme directory. This updates includes:

      • New networks; xing, gowalla, yelp, foursquare, mobileme, google buzz
      • A way to change link text and define multiple links of the same network
      • A way to define your own custom links + icons
      • Improved admin panel

      Hope you like it, and don’t forget you can show your support by purchasing the premium pack from here.

    • Switched: From Shared to VPS

      It’s been about two weeks now since I made the transition from a shared reseller hosting account to a VPS (Virtual Private Server) account – impressions so far, excellent performance but fiddly to configure.

      The reason I wanted to change from shared hosting was the fact the server was always being hacked (even though ALL my scripts were secure), there was frequent downtime, support blamed me for problems every time, and it was slow as hell.

      Those used to a shared hosting environment would probably not know where to start when faced with configuring a VPS. Luckily, a lot of it was pre-configured when I received my account – certainly some of the major security holes were patched. I was not satisfied with those however. As a victim of hacking in the past (previous host swears it was not there fault, something I don’t believe) I took extra care to secure it as a much I could – configuring brute force detection, the firewall, installing mod security (excellent rules for that here: http://www.atomicorp.com/wiki/index.php/Atomic_ModSecurity_Rules) and going though multiple guides (like this one: http://www.webhostingtalk.com/showthread.php?t=468168) with a fine-tooth comb.

      The result? My pages are loading at least 6 times faster, I have had no down time (or at least have not noticed any), and I feel in control and happy. No longer am I at the mercy of shared hosts :)

      If your interested, I chose ServInt as my provider as they offered a great deal, as well as being a managed service (so I’m not on my own if I screw things up). I was tempted by the bells and whistles of Media Temple, but felt the ServInt service was better value.

    • Download Monitor 3.2.2 Maintenance Release

      Download Monitor has received some more love and has been updated. Here’s the change log from the new version:

      • Small bugfix in uploader.php – cat ID
      • Changed stats graph calculation – thanks lggemini
      • Changes to headers in download.php to avoid caching
      • File Browser fixes – $root was clashing with something….
      • exclude_cat works in all sections of download_page now
      • Removed hardcoding of /uploads/
      • Added action to download.php – should be able to use it to stop a download if you want – maybe limiting downloads per day or something? Whatever you want…
      • Made it so if you post new file on ‘edit’ screen, the post date is updated.
      • Fixed the ‘blank meta’ section which blanks out custom field values when nothing is set.
      • Moved ‘allow_url_fopen’ check.
      • Someone said downloads don’t work with spaces in the name. They do! Wasting my time sonny…
      • All work and no play make jolley a dull boy
      • Had to rename capabilities so they work. Apologies if you have to set this up again! Cheers to Mark Dingemanse.
      • {category_ID} custom format tag added. Useful if you want to send someone to its category on the DL page I guess. Also added {category_other} so when no category is set “other” is shown – this is because the download page can show an ‘other’ section if you want it to.
      • You can now manually edit the post date on the edit download screen.

      If you have edited capabilities for download monitor user permissions, you’ll have to again sorry! This is because I named them too long. Also, you should check your forced downloads still work because there was a logic error meaning they may not have been forced after-all…

      Enjoy.

    • Mahousive update to Download Monitor (3.2)

      Today I completed the update for the Wordpress Download Monitor Plugin – many tweaks, fixes, and features added. There were no changes to the database structure so people upgrading should be fine. Here is the list from the change log:

      • {user} tag added for custom formats
      • ‘autop’ option fix
      • Download page buttons applied with CSS so they are easier to customise/translate.
      • Fix for pagination bug after editing a download
      • Category output fix on edit downloads screen
      • Category urls on download page use ID rather than name to prevent errors when cats have the same names.
      • exclude_cat added to download_page shortcode
      • Localised ‘hits’ ‘date’ ‘title’ on download page
      • Option to disable the download logging
      • Read file ‘chunked’ some people found large files were corrupted so this should help (fingers crossed)
      • Added show_tags option to download page – displays x amount of tags on the download page.
      • File Browser root setting and download.php logic/mime types modified thanks to Jim Isaacs (jidd.jimisaacs.com)
      • Interface Improvements
      • Bulk edit categories, custom fields, tags, member only downloads
      • Added roles for download monitor admin – should be able to use with a role manager plugin if you want anyone other than admin to access the admin section e.g. http://wordpress.org/extend/plugins/capsman/
      • Change redirect after add
      • Edit Cat names/parents
      • Dedicated tags and thumbnails fields (they still use meta table though)

      And yes, those category link bugs are fixed at long last, and you can edit category names finally. Phew!