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 ... 9 10 11 12 13 ... 15
  1. Aaron says:

    Duh! Thanks mike. I was looking at that all wrong.

    ReplyReply

    Comment made on July 7, 2009 at 6:33 pm

  2. WS says:

    Mike, I’m having the same problem as David (style.css not being applied). Here is the css path in my header (via ‘View Source’)

    Hopefully it helps you track down the problem. Also running WP 2.8.0

    ReplyReply

    Comment made on July 8, 2009 at 3:40 am

  3. WS says:

    Odd, I put embedded the output using the ‘code’ tags above and it doesn’t show up… Anyway, here it is in plain text.

    ReplyReply

    Comment made on July 8, 2009 at 3:41 am

  4. WS says:

    Sorry for the spam. Must be WP cutting out the code… gah. Let’s try again.

    link rel=’stylesheet’ id=’wp_sidebarlogin_css_styles-css’ href=’http://www.szilveszter.ca/blog/wp-content/pluginsstyle.css?ver=abc’ type=’text/css’ media=’all’

    ReplyReply

    Comment made on July 8, 2009 at 3:43 am

  5. Nnyan says:

    Been playing with this but I still have the Dashboard link showing up. Mike if I sent you login info would you mind taking a look?

    ReplyReply

    Comment made on July 10, 2009 at 12:47 am

  6. James says:

    Just installed the plug-in and everything is working perfectly except for the log-in redirect — it always takes me to the admin page. If I manually set a login redirect that works, but if I leave it blank it doesn’t return me to the current page. I’m using WP 2.8.1 and a custom home page. Have tested different user levels and from different pages. IE 8 and Safari 3.2.2. Any thoughts? Thanks.

    ReplyReply

    Comment made on July 10, 2009 at 8:59 pm

  7. James says:

    Okay, figured out where the problem is and a temporary work around. I have a custom static home page defined. Then I have a News page defined as the blog page. WordPress considers your blog page to be the home page (the is_home() test will evaluate to true on my News page, not my custom Home page). As a result, if someone logs in using the sidebar from my News page, the plugin sees that as being the home page and redirects them back to the homepage for the site – which is Home, not News.

    My workaround is:
    In sidebar-login.php at line 321, split the is_home() || is_front_page() test into two separate items and for is_home() provide a new $pageURL for the redirect. Here’s the code:
    if (is_home())
    {
    $pageURL =get_bloginfo('url');
    $pageURL .= $_SERVER['REQUEST_URI'];

    }
    if (is_front_page())
    {
    $pageURL = get_bloginfo('url');
    }

    ReplyReply

    Comment made on July 10, 2009 at 10:29 pm

  8. nnyan says:

    For now I just deleted the Dashboard link in the plugin

    ReplyReply

    Comment made on July 11, 2009 at 12:58 am

  9. WS says:

    For those that are having a problem with css being applied, I’ve found a fix. Go to the style.css in the plugin directory and change the following:

    .widget_wp_sidebarlogin .avatar_container {

    .widget_wp_sidebarlogin .avatar_container img {

    to

    .avatar_container {

    .avatar_container img {

    :)

    ReplyReply

    Comment made on July 11, 2009 at 7:41 pm

  10. Mike Jolley says:

    @James and @WS: thanks.

    @nnyan: Giving this another shot now. If I fix it it will be in next update.

    ReplyReply

    Comment made on July 15, 2009 at 3:02 pm

  11. Jon Braeley says:

    I too cannot get the the dashboard or an admin link to only show for the admin user. This is an important option for my site where there are only subscribers with no ability to post.

    ReplyReply

    Comment made on July 15, 2009 at 6:31 pm

  12. Mike Jolley says:

    @Jon Braeley: I cannot find any issues with it. If it’s a big issue then just remove the dashboard link entirely.

    ReplyReply

    Comment made on July 16, 2009 at 7:30 pm

  13. ronaldo says:

    first off love the plugin!

    Only got an error after the install, i cant log out or call on the page wp-login.php. Gives a 500 error. Even when i uninstalled and deleted the plugin i still cant log out never had this problem before.
    Hope there is a sollution

    ReplyReply

    Comment made on July 16, 2009 at 10:43 pm

  14. Ronaldo says:

    Well as easy as i posted this message as easy i found the sollution. Just deleted the wp-login.php and uploaded a new file.

    http://codex.wordpress.org/Login_Trouble

    Plugin is working great!!!!!

    ReplyReply

    Comment made on July 17, 2009 at 10:43 am

  15. Mike Jolley says:

    @Ronaldo: Good to hear. I don’t think sidebar-login did that to your login page.

    ReplyReply

    Comment made on July 17, 2009 at 2:25 pm

  16. Ronaldo says:

    No must have been de 2.8 update :)

    ReplyReply

    Comment made on July 18, 2009 at 2:19 pm

  17. vHv says:

    Thanks for plugin.
    may you add
    - form of the OpenID plugin ?
    http://wordpress.org/extend/plugins/openid/

    ReplyReply

    Comment made on July 24, 2009 at 6:28 pm

  18. Melanie says:

    I’ve had the plugin for a little while and it was working fine, but lately when I try to log on using it, it just brings me to the WP login page (where I have to login again) instead of the dasbboard. any ideas?

    ReplyReply

    Comment made on July 24, 2009 at 7:41 pm

  19. Mauro Bernal says:

    This is the translate to Spanish (Esta es la traducción a Español)

    http://rapidshare.com/files/260053060/sblogin-es_ES.mo.rar

    ReplyReply

    Comment made on July 26, 2009 at 1:04 am

  20. zaid says:

    I want to reduce the size of the test areas where you fill in your username and password. How do i do that?

    ReplyReply

    Comment made on July 27, 2009 at 1:05 pm

  21. Mike Jolley says:

    @zaid: Using CSS

    ReplyReply

    Comment made on July 27, 2009 at 7:35 pm

  22. Mike Jolley says:

    @vHv: Implemented for next version.

    ReplyReply

    Comment made on July 27, 2009 at 8:45 pm

  23. zaid says:

    @Mike

    I understand that i need to change the code in the style.css. But what specifically do i need to do?
    I apologise in advance, but in have the barest understanding of coding.

    ReplyReply

    Comment made on July 28, 2009 at 3:22 pm

  24. Mike Jolley says:

    @zaid: Something like:

    .widget_wp_sidebarlogin .mid { width: 200px; }

    ReplyReply

    Comment made on July 28, 2009 at 5:36 pm

  25. zaid says:

    @mike

    Messed around with firebug. Solution was in sidebar-login.php.
    Needed to put this bit of code [style="width: 132px"] after this bit [type="text"] and this bit [type=”password”.

    Thanks for your help.

    ReplyReply

    Comment made on July 29, 2009 at 9:20 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: #Vector illustration of the new #iPod nano, free to download; http://www.potatoestomatoes.co.uk/technical/free-ipod-nano-vector/
  • 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.