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 ... 8 9 10 11 12 ... 15
  1. Mike Jolley says:

    Could you all grab the development version from http://wordpress.org/extend/plugins/sidebar-login/download/ and see if the bugs are solved?

    ReplyReply

    Comment made on June 4, 2009 at 12:04 pm

  2. wayne says:

    ahoy,

    thanks for great/useful plugin. i downloaded the latest development version. this is my first foray into WP/PHP programming, but i think i found a small error in the code. i have a WP installation in a “wordpress” subdirectory, and it was giving problems when i would login/logout via the widget on the home/frontpage, throwing up a file not found.

    on line 312 in function wp_sidebarlogin_current_url(…), i changed the argument to ‘home’ rather than ‘wpurl’.. thus we get “$pageURL = get_bloginfo(‘home’);” when we are logging in/out on the home page, instead of the blog url.

    let me know if i am way off here, but so far works for me.

    thanks.

    ReplyReply

    Comment made on June 8, 2009 at 5:57 pm

  3. mavericks says:

    Still getting the WP_Error with the 2.2.2 update:

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/web16439/public_html/wordpress/wp-content/plugins/sidebar-login/sidebar-login.php on line 377

    ReplyReply

    Comment made on June 9, 2009 at 12:19 am

  4. mavericks says:

    Issue seems to be in relation to $redirect issues i think. If you leave the option fields blank so it redirects to the current page, it causes the error however if u add a url it doesn’t show up.

    ReplyReply

    Comment made on June 9, 2009 at 12:25 am

  5. Aaron says:

    Mike the development version seems to be working fine. Sorry for not getting back to you sooner.

    ReplyReply

    Comment made on June 9, 2009 at 7:42 pm

  6. Marie says:

    Hi!

    This is a great plugin and I really want to get it working on my site. The problem I am having is that when I login the welcome message, profile image etc is visible, but the rest my sidebar content disappears. There is nothing but a blank white space where the rest of my sidebar content used to be. Am I missing a tag/code?

    Thanks for your help!

    ReplyReply

    Comment made on June 16, 2009 at 6:12 am

  7. Giamp says:

    Seem the plugin have a bug with ZdMultiLang on multiple home page languages:
    Catchable fatal error: Object of class WP_Error could not be converted to string in /web/htdocs/…/home/wp-content/plugins/sidebar-login/sidebar-login.php on line 377

    if ($pageURL &amp;&amp; !is_search()) if ("/" != substr($pageURL, -1)) $pageURL = $pageURL . "/";

    ReplyReply

    Comment made on June 16, 2009 at 10:59 am

  8. Mathieu Gendreau says:

    I have an issue with the wordpress sidebar login, when I log in and click on either ‘dashboard’ or ‘profiles’ it sends me to the wordpress login page where I need to login a second time. Is there a way to fix this issue? Thank you for your time.

    ReplyReply

    Comment made on June 17, 2009 at 3:43 am

  9. Mike Jolley says:

    Updating shortly – im not 100% sure if this will fix the wp_error error but please tell me if it does. If it doesn’t then I will find an alternate method.

    ReplyReply

    Comment made on June 17, 2009 at 9:01 pm

  10. Ray says:

    Thanks for the update, it fixes the wp_error error.

    Can you tell me how I can style the elements of Sidebar Login, like the input box, the size of the text? I don’t see them in the style.css in the plugin folder. Am I looking in the wrong place?

    Thanks.

    ReplyReply

    Comment made on June 18, 2009 at 2:17 am

  11. Mike Jolley says:

    Inspect the elements with firebug or view source – that will give you the ids and classnames and you can add your styling in your theme’s style.css.

    ReplyReply

    Comment made on June 18, 2009 at 2:18 am

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

    ReplyReply

    Comment made on June 18, 2009 at 7:44 pm

  13. 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)

    ReplyReply

    Comment made on June 19, 2009 at 11:34 am

  14. 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!

    ReplyReply

    Comment made on June 20, 2009 at 2:57 pm

  15. Nnyan says:

    <a href="http://www.eastsacinfo.com/wp-admin/" rel="nofollow">Dashboard</a> |true

    sorry example got changed

    ReplyReply

    Comment made on June 20, 2009 at 2:59 pm

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

    ReplyReply

    Comment made on June 23, 2009 at 10:39 pm

  17. GhostLyrics says:

    Here is a German translation for your 2.2.4 release: Link

    ReplyReply

    Comment made on June 24, 2009 at 1:46 am

  18. Nnyan says:

    Mike,

    Mine are Contributor’s. I did take out the space between the pipe and still shows up.

    ReplyReply

    Comment made on June 26, 2009 at 4:39 am

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

    ReplyReply

    Comment made on June 29, 2009 at 5:18 pm

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

    ReplyReply

    Comment made on June 29, 2009 at 8:13 pm

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

    ReplyReply

    Comment made on July 2, 2009 at 10:41 pm

  22. billpeace says:

    I have a problem about sidebar login with Permalinks
    IF the web site has enable the permalinks
    and if the web site not use port 80

    so after login,redirect url is wrong
    can’t get correct url with correct port (for example 8080)

    hope to fix problem

    thanks

    ReplyReply

    Comment made on July 5, 2009 at 8:19 am

  23. Aaron says:

    “I think there may be path problems with non-root installs – will be moving to SVN in the coming days with a fix.”

    I am having this problem. My site is not in root and the Dashboard link, Profile Link, and Log out Links point to route which cause a 404 error and page not located.

    Have you gotten anywhere with this yet? I am going to try downloading the development version and see if you have fixed the problem yet.

    ReplyReply

    Comment made on July 6, 2009 at 1:48 pm

  24. Aaron says:

    Mike can you tell me where sidebar login is calling the link for Dashboard and Profile links from on the main page once you are logged in? My wordpress is not in my root folder and is sending everyone back to the root page instead of the step down folder. I can find the code in Fire Bug but am not having any luck finding it in any of the source. Could it be pulling it from the Database somewhere and if so could you point me in the direction I need to go to find it in the Database?

    Really I am just at a lose on this.

    Thanks

    ReplyReply

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

  25. Mike Jolley says:

    @Aaron: Tools > Sidebar Login

    ReplyReply

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

1 ... 8 9 10 11 12 ... 14

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.