Sunday, 26 May 2013

Errors for custom login widget

Errors for custom login widget

Good evening all,
I'm building a custom login widget for my website. I'm using the tutorial and password reset for as described in Check for correct username on custom login form.
I added functions to keep the user on the page he/she is at if he entered wrong details or filled in no information at all. What I now need is the code to display error messages when the user filled in wrong details or no details at all. Here is all my code so far: meta_widget.php => http://pastebin.com/FXEmaRCZ, functions.php => http://pastebin.com/WdsXQtvz and meta.js => http://pastebin.com/dGNzs5qi
I've followed a couple of tutorials ( http://www.tutorialstag.com/custom-wordpress-login-without-using-a-plugin.html, http://natko.com/wordpress-ajax-login-without-a-plugin-the-right-way/, http://muddlex.blogspot.co.uk/2013/02/wordpress-custom-login-page-with-ajax.html), but all is for a login page, and I can't get the error codes to work in a widget.
Any code that i can use to make this possible? Many thanks in advance

No comments:

Post a Comment