Jul.14.2007
My Account Widget
This widget allows you to place a login form in the sidebar. Use it to easily log into your account without having to load the login page. After logging in, the widget will give you several options, based on your account’s privileges.
Files
Sources:

Thank you for the trackback on the lost-in-code.com site. There is a small typo in the link though. “function”
Thanks Antonie - It’s fixed.
Awesome SP! Thanks for releasing it!!
[…] Download it here. […]
[…] WP Designer : Wordpress Login Widget […]
is it just me or does the “Remember me” option checkbox, not work. it doesn’t remember me…
A little off topic but I’d love to see a tutorial on how to create a WP theme that works like CSS Remix except when the thumbnail is clicked it takes you to a post page?
Been trying to do this myself for a while with no luck.
Well done - thanks for putting this together.
@Dan Solis - The remember me box doesn’t seem to matter to my local WordPress install, which is where I’m testing it. It remembers me without the remember me box.
@Graeme - I actually been wanting to do that and document it for a long time. You might want to check out my custom fields tutorial first.
@EarthGolf - No problem
Thanks,
If I get anywhere I’ll post a link
Heck yes, I’m gonna give this a whirl today on one of my sites! Thanks.
Including the register and recover screens into this would take WordPress to an entire new experience at least in my point of view!
Thx for creating and sharing this!
btw, add this baby to wp-plugins.org
Cheers!
Hey, Small Potato! I’m using this on one of my sites, and when people try to login, it kicks them to wp-login.php and gives them this error:
ERROR: WordPress requires Cookies but your browser does not support them or they are blocked.
Logging in through the regular login page works. Any ideas? I tried this in two different browsers, and it does this until you finally login, then logout again. Upon trying to login a second time via the sidebar widget works, then. I don’t get it.
Mike - The error is not your fault or the login form’s fault. Some users don’t have their cookies turned on. That’s it.
But I do have cookies turned on - I should have mentioned that.
Logging in via the regular login page works fine, but I’d rather not have a login in the sidebar if it’ll redirect people to the login page, anyway.
I have no idea then.
This started occurring with wp 2.3 for some reason…
If you just resubmit the form after getting the error, it works the second time…
gonna take a look and see if I can figure out what changed, just thought I would check here first…
I have this installed and seems to be working except if a user is not logged in, it doesn’t give any options to login. I do have new registrations enabled.
It’s a great widget. I hope the issue can be resolved!!
The issue is easily resolved. Basically wordpress sets a test cookie and then checks to see if it has been checked, but if you login via a sidebar widget or externally other than wp-login then the cookie is not being set before the check.
So what needs to be done is to add the following code in the template where the login widget is included:
This sets the cookie before the user logs in and so when it does the check once logging in it will detect the cookie.
I’ve tested this with multiple browsers and it definitely fixes the issue.
Hope it helps.
oops seems the code to include in the template was cut so here it is again:
http://dump.theleafyisle.com/testcookiewp.txt
Thanks Pete
Those of you getting the “WordPress Requires Cookies” error, I was able to solve the problem in a manner similiar to “Pete” in the comments above. However, you can’t just put the cookie code anywhere in the template. It needs to come before any html output, or else you’ll get header output errors.
I explain my solution over at the Wordpress.org support forums - http://wordpress.org/support/…
Basically, just put the code from Pete - http://dump.theleafyisle.com/… at the top of your header.php in your template along with a is_user_logged_in() conditional.
Thank you, Pete and Jeff! Working perfectly here, you guys rock.
hey, thanks for the widget!; however, if you go to my webpage, it only says My Account and gives no option for logging in or anything…? any ideas?
josh - read the comments for the solution
thanks small potato!; however, i’m a little confused after reading what pete and jeff said where to exactly put the code? i get error messages
do i put it in sidebar.php, etc? and where in the code does it go? I’m not sure if Jeff’s comments are what i need, maybe? i’m sorry, i’m having a brain fart right now.
the original goes in the sidebar, the codes Jeff was talking about goes before in the header.php file before anything else
it worked! yipee!
now the only problem is that when i attempt to register myself (as a test) it doesn’t email me a password. is there a certain amount of time it takes till a password is emailed?
thank you for the great plugin!
I’ve added the widget to my site however when I exit the site and go to it without being logged in, there is no login forum. The whole thing just disappears. What am i doing wrong?
Lorelai - This plugin is not supported. Please go through the comments for the solution.
@ Josh: I have the same problem. All works great (I’m using the code, not widget) except it doesn’t send the email - I’ve waited half an hr, so expect it won’t come. If anybody know the reason for this please do tell!! thanks.
Excellent plugin, thanks.
Thx very much for this man..!
My Account Widget is a great idea
thanks for putting this together it will help me a lot because i use wordpress for many sites
thanks again
Thank You Man!!!
This plugin solved soooo many problems for me that I just can’t thank you enough for it. There is just one thing that I noticed, so here it goes…
This plugin doesn’t work if you installed WordPress on a directory other than your site’s root. Fortunately, this is really easy to fix.
- Go to Plugin Editor and select the plugin.
- For every instance that you encounter /wp-admin/ in the file, add the directory you installed WordPress on before the first /.
For example, if you installed WordPress on http://www.yourdomain.com/wordpress you have to add /wordpress before the first / every time you encounter /wp-admin/.
Now, instead of reading /wp-admin/, it says /wordpress/wp-admin/
- Click Save, and your done! Now all the links point in the right direction, and you won’t get any errors.
Well, that was my little grain of sand. Hope someone finds it useful.
please tell me how to use it?
?????????
????????http://wpcn.net.ru
???? hybmn@qq.com
???????
hi, not run wordpress 2.7 can you fix it please. take care
Excellent plugin, thanks.
Excellent plugin, thanks!