Wordpress Sidebar Login 2 – Optimised for wordpress 2.6

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

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

335 Responses to “Wordpress Sidebar Login 2 – Optimised for wordpress 2.6”

RSS feed for comments on this post.

  1. nCounTr says:

    Hi Mike,

    I like the side bar very much and i have made some modifications to blend it in my theme. Anyways i haven’t found a way to replace the login button to be blended in my theme.
    Also i managed to fully translate it to Macedonian language.
    If you can give me pointer how to edit the button it would be awesome.

    Thanks,
    nCounTr

    ReplyReply

    Comment made on August 4, 2009 at 3:16 pm

  2. Mike Jolley says:

    @nCounTr: Try styling #wp-submit with css – you can change text/background colours and add borders etc.

    ReplyReply

    Comment made on August 4, 2009 at 3:19 pm

  3. nCounTr says:

    Thanks Mike for the tip. I’ll do that and as soon as i blend it in, i’ll post the macedonian translation here. Thanks again, u rock.

    ReplyReply

    Comment made on August 4, 2009 at 3:21 pm

  4. nCounTr says:

    Hey mike i tried with css-ing #wp_submit and it just changed the font color, and i think i need t add/change something in this line:

    <input type="submit" name="wp-submit" id="wp-submit" value=" ” />

    in the code, but im not an expert in php, and here’s my css settings:

    #wp-submit {
    color: #ffa20f;
    background: #181818;
    font-size: 1em;
    font-weight: bold;
    text-transform: none;
    }

    ReplyReply

    Comment made on August 4, 2009 at 3:54 pm

  5. Mike Jolley says:

    @nCounTr: The html is fine. Put the css in your theme’s css stylesheet.

    ReplyReply

    Comment made on August 4, 2009 at 3:58 pm

  6. nCounTr says:

    I managed to chage it a bit, and now it looks like this:
    http://img141.imageshack.us/img141/5143/buttonx.jpg

    And I am clueless on how to make it to look like this:
    http://img269.imageshack.us/img269/2042/butn.jpg

    ReplyReply

    Comment made on August 4, 2009 at 4:16 pm

  7. Mike Jolley says:

    @nCounTr: font-weight: bold and border:0 – look on w3schools if you need more help with css.

    ReplyReply

    Comment made on August 4, 2009 at 6:52 pm

  8. Rachel says:

    Love the sidebar login – Im having slight problem though, when logged in my homepage shows me logged out? I can navigate around my site and edit other pages ok until I return to my homepage any ideas?

    ReplyReply

    Comment made on August 5, 2009 at 12:40 am

  9. khalid says:

    this language arabic of the plugin sidebar-login.2.2.5

    http://www.ar-wp.com/attachment.php?attachmentid=3303&d=1249174158

    ReplyReply

    Comment made on August 5, 2009 at 4:39 am

  10. Mike Jolley says:

    @khalid: Thanks

    @Rachel: Are you using a cache plugin/WP_CACHE (in config) or anything else which could conflict?

    ReplyReply

    Comment made on August 5, 2009 at 11:37 am

  11. Tim says:

    I would like the style of my sidebar login to look EXACTLY the same as your screenshots, please paste your style settings into the comments :)

    ReplyReply

    Comment made on August 5, 2009 at 9:00 pm

  12. Mike Jolley says:

    @MMM: Use the ‘code’ tags if you post code.

    @Tim: Use firebug to see my css

    ReplyReply

    Comment made on August 13, 2009 at 1:43 pm

  13. MMM says:

    I would like a tag in the sidebar to use.
    The “code” tag does not work with tags.

    ReplyReply

    Comment made on August 13, 2009 at 2:07 pm

  14. Mike Jolley says:

    @MMM: I just emailed you…

    ReplyReply

    Comment made on August 13, 2009 at 2:08 pm

  15. Rafael says:

    Hello all,

    If anyone could please help me out with this – I would really appreciate it.

    I am trying to edit the plugin a little bit. The problem is that the login boxes (username/password/remember me etc.) are falling out of my sidebar towards the left.

    There is enough room for the whole form of the widget to fit in the sidebar, but for some reason, part of it is not it there. It’s like the widget starts a few inches before the beginning of the sidebar and ends somewhere in the middle. If I could just move it a little to the right – it would work.

    I tried changing the padding from the stylesheet, but no luck. For some reason no matter what I changed in there, it shouldn’t show. I then realized that the stylesheet was inactive. I tried the “tricks” mentioned in the comments here, but they didn’t work for me.

    I changed

    .widget_wp_sidebarlogin .avatar_container {

    .widget_wp_sidebarlogin .avatar_container img {

    to

    .avatar_container {

    .avatar_container img {

    and I copied/pasted the plugins css to my theme’s css. No luck.

    Any other ideas?

    Thanks in advance!

    ReplyReply

    Comment made on August 17, 2009 at 2:33 pm

  16. Rafael says:

    Hello again,

    I am still stuck with this. This time, I have linked my blog on my name so that you can take a look.

    Can someone please point me towards the right direction? I have had a few coders take a look at it and noone seemed to be able to get this to work. I don’t know much about CSS, but I changed every single number I could see in the stylesheet and I saw absolutely no visible changes. This can’t be right.

    Can you think of any reason why this is happening?

    ReplyReply

    Comment made on August 18, 2009 at 12:56 am

  17. Mike Jolley says:

    @Rafael: What type of CSS are you trying to apply?

    Most problems (usually caused by styles overwriting your own) can be rectified by using !important. I would also recommend using the id ’sidebar-login’. So, for example, you could do this to make labels bold:

    #sidebar-login label { font-weight: bold !important; }

    Hope that helps solve your problem.

    ReplyReply

    Comment made on August 18, 2009 at 1:28 am

  18. Rafael says:

    Hello Mike,

    Thanks for your reply!

    I am trying to make the widget go a little to the right. Thus, I thought that “padding” should do the job – but it doesn’t work.

    Furthermore, since I am no CSS wiz, I tried dividing every single number I could find in the plugin’s CSS by 2, hoping that this will make the whole widget half the size (so that it can fit into the sidebar properly), but even then, I failed to see any change.

    I then took it a step further, thinking that the widget doesn’t use the stylesheet at all, and I erased it. It turns out that the plugin DOES use it’s own stylesheet after all…

    Having said that, I honestly don’t understand what you are telling me to do Mike. You will probably have to be more specific with me since I am what you would call a “noob” :)

    Should I be editing the sidebar-login/style.css even though it says that it’s “inactive”?

    If you click on the link anchored in my name, you will understand what I am trying to do. In a few words, I need to push the whole login form a little to the right, so that it fits well within the sidebar. At the moment, it’s a bit out of it towards the left which makes it look bad.

    Really appreciate your help!

    ReplyReply

    Comment made on August 18, 2009 at 6:03 am

  19. Rafael says:

    Ok – I made it work :)

    What I had to do is add

    #sidebar-login p {
    padding-left: 25px;
    }

    to my theme’s main CSS.

    Now I have a similar, yet different problem lol

    Is there any way to decrease the width of the widget – once I am logged in? The login form looks good, but when I log in I see that I am having a similar problem as before, only this time, it’s the gravatar that’s out of the sidebar.

    Any ideas based on the above fix?

    ReplyReply

    Comment made on August 18, 2009 at 6:25 am

  20. Mike Jolley says:

    @Rafael: You should really use firebug for firefox to inspect whats going on – but you should be able to use something like:

    #sidebar-login .avatar { margin-left: 25px !important; }

    to get that to line up correctly.

    If you need further css styling help there are plenty of tutorials here http://www.w3schools.com/css/default.asp.

    ReplyReply

    Comment made on August 18, 2009 at 9:55 am

  21. JBrinx says:

    Hi,

    I’ve installed sidebar-login and all works ok, but when I add to the setup the “FORCE_SSL_ADMIN”, the sidebar login keeps showing I´m not authenticated, but if I go to wp-admin and then authenticate and then back to blog I saw my right avatar and links.

    Any clue?

    ReplyReply

    Comment made on August 29, 2009 at 9:28 am

  22. Kyoshiro38 says:

    Hi,

    At the and of the wp_sidebarlogin_current_url function, you should have these lines.

    if ( force_ssl_login() || force_ssl_admin() ) {
    $pageURL = str_replace( ‘http://’, ‘https://’, get_option(’siteurl’) );
    }

    Replace whith these ones :

    if ( force_ssl_login() || force_ssl_admin() ) {
    $pageURL = str_replace( ‘http://’, ‘https://’, $pageURL );
    }

    It worked for me.

    ReplyReply

    Comment made on September 15, 2009 at 3:45 pm

  23. Julie Stoddard says:

    I’ve been wondering if such a plugin as this existed. Thank you for creating it!

    ReplyReply

    Comment made on September 21, 2009 at 3:07 pm

  24. Katrina says:

    THANK GOD for people like you – I have been searching all day and trialling numerous similar widgets but this one is the only one that has all the options I need. Thank you thank you thank you!

    ReplyReply

    Comment made on September 23, 2009 at 6:14 am

  25. seven says:

    Thanks for your plugin of Sidebar Login, it’s very useful for me, and I’m a Chinese, so I translate the language file to chinese saved name as”"sidebarlogin_zh_CN.po”.Also I changed the style of the login form to suit for my blog style,or my habits:) now it’s running in my blog http://www.anchuang.org/blog.
    thanks again

    ReplyReply

    Comment made on October 11, 2009 at 3:37 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

    • New blog post: MiniCard 1.1.7 Update http://blue-anvil.com/archives/minicard-1-1-7-update/
  • 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!