02 Aug

Login With Ajax

Description

Login With Ajax is for sites that need user logins or registrations and would like to avoid the normal wordpress login pages, this plugin adds the capability of placing a login widget in the sidebar with smooth AJAX login effects.

Some of the features:

  • AJAX Login without refreshing your screen.
  • AJAX Registration without refreshing your screen.
  • AJAX Registration Password retrieval without refreshing your screen.
  • Compatible with Wordpress, Wordpress MU and BuddyPress (BuddyPress supports logins only, no registrations yet).
  • Will work with forced SSL logins.
  • Customizable, upgrade-safe widgets.
  • Redirect users to custom URLs on Login and Logout
  • Redirect users with different roles to custom URLs
  • shortcode and template tags available
  • Fallback mechanism, will still work on javascript-disabled browsers
  • Widget specific option to show link to profile page
  • Now translatable (currently only Spanish is available, please contact me to contribute)

If you have any problems with the plugins, please visit our http://netweblogic.com/forums/ for further information and provide some feedback first, we may be able to help. It's considered rude to just give low ratings and nothing reason for doing so.

If you find this plugin useful and would like to say thanks, a link, digg, or some other form of recognition to the plugin page on our blog would be appreciated.

Translated Languages Available

Here's a list of currently translated languages. Translations that have been submitted are greatly appreciated and hopefully make this plugin a better one. If you'd like to contribute, please have a look at the POT file in the langs folder and send us your translations.

Download

Requires At Least : 2.8
Test Up To : 3.2.1
Current Version : 3.0.4
Download latest version

Installation

  1. Upload this plugin to the /wp-content/plugins/ directory and unzip it, or simply upload the zip file within your wordpress installation.

  2. Activate the plugin through the 'Plugins' menu in WordPress

  3. If you want login/logout redirections, go to Settings > Login With Ajax in the admin area and fill out the form.

  4. Add the login with ajax widget to your sidebar, or use loginwithajax() in your template.

  5. Happy logging in!

Frequently Asked Questions

The registration link doesn't show! What's wrong?

Before you start troubleshooting, make sure your blog has registrations enabled via the admin area (Settings > General) and that your widget has the registration link box checked.

AJAX Registrations don't work! What's wrong?

Firstly, you should make sure that you can register via the normal wp-admin login, if something goes wrong there the problem is not login with ajax. Please note that currently there is no AJAX registration with BuddyPress due to it rewriting the login area (this will be resolved soon).

How can I customize the login widget?

See the notes section about customizing a widget.

How do I use SSL with this plugin?

Yes, see the notes section.

Do you have a shortcode or template tag?

Yes, see the notes section.

For further questions and answers (or to submit one yourself) go to our http://netweblogic.com/forums/.

Screenshots

screenshot-0

Add a fully customizable login widget to your sidebars.

screenshot-1

Smoothen the process via ajax login, avoid screen refreshes on failures.

screenshot-2

If your login is unsuccessful, user gets notified without loading a new page!

screenshot-3

Customizable login/logout redirection settings.

screenshot-4

Choose what your users see once logged in.

Changelog

2.1

  • Added translation POT files.
  • Spanish translation (quick/poor attempt on my part, just to get things going)
  • Fixed result bug on [http://netweblogic.com/forums/topic/undefined-error-on-logging-in-with-wp-29]
  • Fixed bug on [http://wordpress.org/support/topic/355406]

2.1.1

  • Added Finnish, Russian and French Translations
  • Made JS success message translatable
  • Fixed encoding issue (e.g. # fails in passwords) in the JS

2.1.2

  • Added German Translations
  • Fixed JS url encoding issue

2.1.3

  • Added Italian Translations
  • Added space in widget after "Hi" when logged in.
  • CSS compatability with themes improvement.

2.1.4

  • Added Chinese Translations
  • CSS compatability with themes improvement.

2.1.5

  • Changed logged in widget to fix avatar display issue for both BuddyPress and WP. (Using ID instead of email for get_avatar and changed depreciated BP function).
  • Added Danish Translation

2.2

  • Added Polish, Turkish and Brazilian Translation
  • Fixed buddypress avatar not showing when logged in
  • Removed capitalization of username in logged in widget
  • Fixed all other known bugs
  • Added placeholders for redirects (e.g. %USERNAME% for username when logged in)
  • Added seamless login, screen doesn't refresh upon successful login.

2.21

  • Redirect bug fix
  • Hopefully fixed encoding issue

3.0b

  • Various bug fixes
  • Improved JavaScript code
  • Ajax Registration Option

3.0b3

  • %LASTURL% now works for logins as well
  • Profile link plays nice with buddypress
  • Added fix to stop wpnewuser_notification conflicts
  • Empty logins now have an error message too.

3.0

  • Option to choose from various widget templates.

3.0.1

  • Fixed unexpected #LoginWithAjax_Footer showing up at bottom
  • Fixed link problems for sub-directory blogs (using bloginfo('wpurl') now)
  • Added Albanian
  • Replace Spanish with revised version

3.0.2

  • got rid of (hopefully all) php warnings

3.0.3

  • scrollbar issue in default widget
  • added hungarian

3.0.4

  • updated russian translation
  • added japanese
  • updated iranian
  • added registration attribute to template tags/shortcode

3.0.5

  • fixed json_encode issue

Support

Visit our support forums

If you liked this post, why not share it?

  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Reddit
  • RSS
  • StumbleUpon
  • Technorati
  • Twitter
  • http://degeet.com/ kuaza

    thanx super mod, but please manuel code :)

  • http://weblogtoolscollection.com/archives/2009/08/04/wordpress-plugin-releases-for-0804/ WordPress Plugin Releases for 08/04 | Weblog Tools Collection

    [...] Login With Ajax [...]

  • http://www.blogohblog.com/10-latest-wordpress-plugins/ 10 Latest WordPress Plugins | Blog Oh Blog

    [...] View Plugin [...]

  • http://wordpressmagazine.net/2009/08/wordpress-plugin-releases-for-0804/ WordPress Plugin Releases for 08/04 | Word Press Magazine

    [...] Login With Ajax [...]

  • http://www.blamyo.com/2009/08/04/weblog-tools-collection-wordpress-plugin-releases-for-0804/ Weblog Tools Collection: WordPress Plugin Releases for 08/04 | Blam Yo!

    [...] Login With Ajax [...]

  • http://77even.net/2009/08/05/relizy-novykh-plaginov-dlya-wordpress-do-04-08/ ?????? ????? ???????? ??? Wordpress | 77even

    [...] Login With Ajax [...]

  • http://fahmiidris.com/2009/08/10-latest-wordpress-plugins/ 10 Latest WordPress Plugins | FahmiIdris.com – Personal Website

    [...] View Plugin [...]

  • Ben

    I receive this error when using your plug in on the newest version of WP

    Warning: preg_match() [function.preg-match]: Unknown modifier '.' in /webroot/b/i/biolo001/benandcate/www/wp-content/plugins/login-with-ajax/login-with-ajax.php on line 131

  • http://www.maxxim.com.ar/los-10-plugins-de-wordpress-mas-nuevos/ Los 10 plugins de Wordpress más nuevos | MAXXIM

    [...] Ver Plugin [...]

  • http://netweblogic.com Marcus

    Hi Ben,

    Thanks for pointing that out. It's been fixed now and the update was just checked in. It should show up in the wordpress repo in about 15 minutes.

  • http://www.libanocar.com/ LibanoCar

    thanks for you :)

  • reverend gene

    Does not work

    Sorry all I get is an error code and I had to rename the directory to use the site at all

    I am a full time missionary using other peoples computers and asked not to fill out forms on line
    You have no email shown
    and Whois is block

    So I had to make a fake email below

  • reverend gene

    Also
    I do not blog or forum or . . .
    and there is no contact information on WP

    So how does anyone get a hold of you?

  • Charles

    Same error on logout with the latest version and also reported here:
    http://wordpress.org/support/topic/297310

  • http://netweblogic.com Marcus

    I need more specific information on the problem to be able to help you. what's the error code?

  • http://netweblogic.com Marcus

    Well, for now this comment form seems to work :)

    We're intending on putting a contact form up asap. If you leave your real email next time I could get back to you directly.

  • http://netweblogic.com Marcus

    Strange… the preg issue was fixed on mine.

    I've made some changes to it and it should definitely not give that error anymore. The login redirecting wasn't working for the widget either, so that's fixed too. Please make sure you upgrade to the newest version 1.2.

    Thanks for pointing that out Charles.

  • dansss

    If my blog don't use the widgets, can I use this plugin through pasting the code?

  • comawhite

    Hi !
    firstly.. awesome ajax plugin!..really :D

    Here's my problem…
    - login widget is at the side bar
    - i AM logged in
    – I want to see an Admin link ( you know, a link to the dashboard )

    - all i have right now is a Log out link

    thanks

  • http://netweblogic.com Marcus

    Yes, you can do this. I created a tag called login_with_ajax() which you can use.

    One temporary niggle, the default template is geared as a widget, so it uses the widget wrapper. The fix is quite easy, though. You should copy the widget folder contents (not the folder itself) to your theme directory under plugins/login-with-ajax/ and edit the template widget_in.php and widget_out.php files to suit your site.

    So if your theme was called mytheme, it would be located at /wp-content/themes/mytheme/plugins/login-with-ajax.

  • http://netweblogic.com Marcus

    Check out the new version 1.2, there is now an option in the admin settings to add a profile link.

    Alternatively you can also edit the template and add whatever links you want. See the notes for details on modifying the template so it's upgrade-safe

  • Mac

    Hello – I like this widget. Simple, but effective. Do you know how to now get rid of the default login that comes with Buddy Media, since you've replaced it?

  • comawhite

    Oh my…thanks a bunch….

    Was using 1.1 all this while…

    guess you haven't updated the wordpress plugin page with your new plugin

  • http://netweblogic.com Marcus

    By buddy media, do you mean buddypress?

    Not sure which login you mean either… if you're referring to the admin bar on top, I also have a plugin for that, check it out : http://netweblogic.com/wordpress/plugins/remove…

  • Mac

    Sorry – yes buddypress My bad… By login, I don't mean the gray buddypress bar across the top, which I think this plugin removes. I mean the yellow row, which has the user/pass fields – and subsequent username/logout once you've logged in. Since you're essentially replaced that functionality, I was trying to avoid having it in two places.

  • Mac

    Sorry, and one more question. Widget-wise, can you add the Login with Ajax widget in more than one column? Seems that once I place it in one column, it is then no longer available to put it in another column. The reason for this is that the three main columns show on the homepage, but once you get past the homepage, the only column that shows on my site is the blog-sidebar – so I need it there for most pages, but on one of the main columns for the home.

  • http://netweblogic.com Marcus

    I believe the login you're referring to is the buddypress default theme login. You'll have to change your theme to get rid of it. The login will still work on the sidebars.

    I know what you mean about the multiple widgets. I will convert the widget to a compatible 2.8 format which allows multiple widgets in the next version.

  • dansss

    Thanks, it's really useful plugin for me

  • dansss

    I have copyed the contents of login-with-ajax floder to the theme floder, them pasted the tag in sidebar file. but the page show me these words: Fatal error: Call to undefined function login_with_ajax(), I wonder whether you could help me solve this problem. Thanks a lot.

  • http://blah.com/ wal

    Just occured to me that I was simply putting in “login_with_ajax()” whereas I needed to wrap it as such: “<?php login_with_ajax(); ?>”. That may settle some of the issues that people are experiencing ;)

  • Chuck

    The login button isn't working for me. I click it and I get absolutely nothing happening. I tried changing the button name to “submit” instead of “wp-submit” and it didn't work either way.

  • http://netweblogic.com Marcus

    Sounds like a Javascript error (check that your javascript is enabled for your browser?). Probably a conflict between different plugins. Have you tried deactivating other plugins? I'm betting that will help pinpoint the problem.

    Also, if you can tell me the browser you're using.

  • http://netweblogic.com Marcus

    Are you updated to version 1.2, and is the plugin activated? The function is there so you shouldn't be getting those errors.

    Also you'd want to call it like so to avoid fatal errors like the one you have:
    <?php if( function_exists('login_with_ajax') ) login_with_ajax(); ?>

  • dansss

    I uploaded the plugin to the plugin folder. also built new folders named plugins, login-with-ajax in the using theme folder. then uploaded the files in login-with-ajax plugin to floder login-with-ajax, then paste the code in the sidebar.php and active the plugin, update setting. but I still didn't see any changes happened on the homepage. I am sure the plugin has been actived. its widget existed in widget setting.

  • Chuck

    Here's the error that I get:

    Fatal error: Call to undefined function: json_encode() in /wp-content/plugins/login-with-ajax/login-with-ajax.php on line 72

    The only two other plugins that I have running are WP-CMS Post Control and WP-reCAPTCHA. I'm using Firefox, but it doesn't work in IE either.

  • http://netweblogic.com Marcus

    You need to move the files in the widget folder (not the widget folder itself) to the plugins/login-with-ajax/ folder in your theme folder.

    However, that shouldn't affect the login page showing up (or not in your case). You mention the widget appears in the widgets admin page. Can you get that to work?

  • http://netweblogic.com Marcus

    Ah, ok I see what went wrong. You need php5 in order for json_encode I believe. There is a way of doing json_encode in php4. I'll add that for backwards compatability in the next version of the plugin.

  • http://tadop.info/blogpress/?p=382 10 Latest WordPress Plugins | tadop.info

    [...] View Plugin [...]

  • fillupt

    i seem to be having an issue with your plugin – after submitting the login information, the loading screen opens, but then that is all that happens. If i login in conventionally, the refreshed page shows me as logged in as per your screenshots, and the logout button works fine. Using Firefox 3.0.6 and WP 2.8.3

  • Kurt

    the [blog admin] link in widget_in.php (line 57) has a small mistake:

    blog admin should correct be:
    <a href=”<?php bloginfo('siteurl') ?>/wp_admin/”>blog admin

    thanks for the nice plugin…

  • Kurt

    hmmm…. that commentfield changed my typing before!

    /*blog admin*/
    /*<a href=”<?php bloginfo('siteurl') ?>/wp_admin/”>blog admin*/

  • http://netweblogic.com Marcus

    Thanks, I'll be sure to change that on the next uprade.

  • http://netweblogic.com Marcus

    So, to confirm, the loading spinner shows and it doesn't go away? The first thing I must ask you check is that you have version 1.2 :)

    If so, do you have firebug installed? If you could install that plugin, reproduce the error and check for the messages going on in the console that will give me something more to go on.

  • http://www.wp-them.es/wordpress-plugin-releases-for-0804/ WordPress Plugin Releases for 08/04 | Wp Themes

    [...] Login With Ajax [...]

  • baba1984

    Hi, this is COOL .. It would have been better if you'd have added Register and forgot pass also AJAXified

  • fillupt

    Version 1.2 confirmed. Firebug error:

    missing ; before statement
    [Break on this error] Fatal error: Call to undefined f…th-ajax.php on line 72
    n

    It halts before processing the logon – refreshing the page i'm still logged out. The logout button and links work fine, once logged in.

  • http://netweblogic.com Marcus

    true :) something to do in a future version. nice suggestion

  • http://netweblogic.com Marcus

    aha, you're probably using PHP4 here, that line calls json_encode. Things are a little hectic here but I hope to get that sorted within a week.

    I thought this would have at least given an error warning when logging in?

  • fillupt

    Aha, yes i am. I am upgrading tonight to 5, eventually. Thanks for your assistance!

  • http://arifindomedia.com/10-plugin-wordpress-terbaru/ 10 Plugin Wordpress Terbaru – arifindomedia.com

    [...] Lihat Plugin [...]

  • http://www.tipoes.com sahil mehta

    what about forgot password ???

    that should also work with ajax otherwise this spoils the whole plugin taste

  • http://dubo.cl/links-for-2009-08-16/ links for 2009-08-16 &raquo Dubo.cl

    [...] Login with Ajax » NWL | WordPress, PHP, Mootools, SEO … Plugin de WordPress que instala un formulario de login con Ajax (tags: wordpress plugin ajax login form webdev javascript) [...]

  • http://www.wordpress-love.com/2009/08/10-novos-plugins-wordpress-a-conhecer/ 10 novos plugins Wordpress a conhecer! | Wordpress Love – Themes, Plugins e tudo para Wordpress, em Português

    [...] 3. LOGIN WITH AJAX Adiciona efeitos suaves em ajax durante o login, eliminando a necessidade de refrescar a página caso a password esteja incorrecta, e permite ainda definir manualmente para onde é que os visitantes são enviados após efectuarem o login/logout. Suporta logins SSL e trabalha também com o WordPress MU e BuddyPress. [...]

  • http://twitter.com/AdagioPaCuerdas Franco Cedillo

    nice development

  • http://socialpreneur.info/ socialpreneur

    Nice plugin, working just fine on my MU and BP install.

    Aside from “blog admin” url mistake someone else commented, it would be great if “profile” is linked to buddypress profile rather than wp's default.

  • vigyaan

    Hi – I see on the wordpress page that this plugin is compatible until 2.8.2 – I installed this on a 2.8.4a test installation and wasn't able to get it work – should it work?

  • David

    Great plugin – works like a charm. I do have a question. There is more white space than I like at the bottom of the sidebar box (logged in or out). I've tried to make changes in the widget.css file to no avail. In fact, as a test, I deleted the code entirely from the file and it made no difference! I'm confused about where the styling code is being pulled from. I'm using the Arras Theme if that makes any difference. Any help is appreciated.

    Thanks,
    David

  • http://netweblogic.com Marcus

    It hasn't been tested on the latest version, but it should work… I will test and update the plugin soon and make sure it does work.

  • http://netweblogic.com Marcus

    If changes to your widget.css file don't work, then the problem would probably lie in your theme's CSS. If you'd like to customize the html and css of the login widget, follow the instructions in the readme and you can change it to whatever format you like.

  • David

    Thanks for the quick reply. I'll take a look. btw, other than this minor issue, everything seems to work fine in 2.8.4.

  • Tore

    Just installed it! Works well! Thanks!

  • http://www.dogcalledphenix.com/ Guido

    Hi i have a theme with no widgets and i've done everything described here. I see the login information with avatar when i'm logged in, but when logged out i don't see a login form. What am i doing wrong?

  • http://www.cybersnac.com/ CyberSNAC

    Please update for 2.8.4, the smooth effects don't seem to work for me.

  • http://netweblogic.com Marcus

    Do you get any javascript errors? Chances are there's a javascript confilct of some sort.

    If you could give me more info to go on hopefully we can fix it.

  • http://netweblogic.com Marcus

    From the sounds of it you must have not moved all the files over, or there might be an HTML issue if you changed the content in the widget_out.php file.

  • Jason

    cool plugin, trying to get it to work login redirects, I have different users that each need to be redirected towards certain pages, is there any way to get these two plugins to be friends?

  • http://netweblogic.com Marcus

    Thanks. It's certainly an interesting idea, but I don't think this is something enough people would use to make it worth implementing.

    I may be wrong though… if so I'd certainly consider adding it in the future.

  • Jason

    ya, I thought this wouldnt have many people wanting this, you know any quick hacks or something to comment out… I am looking into, current_user_can commands…

    If its not easy maybe you can give me a quote for a hack I can use, email me jb at rubbersunset dot com.

  • http://designadept.com/10-latest-wordpress-plugins/ 10 Latest WordPress Plugins « Adept – Design &amp Development Royalty

    [...] View Plugin [...]

  • bradcoats

    Hey, Macus / NetWebLogic:

    Thank you for your Login with AJAX WordPress plug-in! It works great and is exactly what I was looking for to add to my site. I’m a big fan of hiding content until requested, so I made a minor tweak to the plug-in to hide the login form until you click the Log In link and I thought I’d share it with you in case you found it interesting at all.

    login-with-ajax.js

    – Added small jQuery function to jQuery(document).ready to enable slider option.

    //Begin modifications for Login With AJAX slider option.
    $('#LoginWithAjax_Collapse').toggle(
    function()
    {
    $('#LoginWithAjax_FormCollapse').slideDown();
    },
    function()
    {
    $('#LoginWithAjax_FormCollapse').slideUp();
    }
    );
    //End modifications for Login With AJAX slider option.

    widget_in.php, widget_out.php

    – Added <span></span> around the text I wanted to trigger the slider function.
    – Added <div></div> to define a block to show/hide

    widget.css

    – Added custom CSS to format the trigger text.
    #LoginWithAjax_Collapse {cursor:pointer; font-weight:bold; text-decoration:none; text-transform:none;}
    #LoginWithAjax_Collapse:hover {text-decoration:underline;}

    If anyone is interested, you can see the changes at http://www.heartlandrug.org — bottom, right sidebar of the main page. I'd be glad to send out the files with my changes commented if you have any interested in reproducing this functionality.

  • http://netweblogic.com Marcus

    Hi Bradcoats,

    Thanks for the effort there, it looks good!

    Replacing the original template with this is not something every user would like as it may break their original layout upon upgrading, but what I can do is add another widget folder and people can switch between them if they like.

  • bradcoats

    Thanks, Marcus — that sounds like a great idea! Also, just realized I misspelled your name in my original post. I've corrected — sorry about that! Typo late at night … :)

  • ftv

    does this plugin has SSL support?

  • Jason

    It'll be best for “Login-with-Ajax” to redirect users based on their User Role.

    For example, redirecting Administrators and Editors to wp-admin page, while the rest to the last page that they were visiting.

    If that's available in the next release, it'll be awesome.

  • http://netweblogic.com Marcus

    yes, see the post for instructions

  • http://netweblogic.com Marcus

    Sounds like it might be something people want… I'll give it a go then, hopefully in the upcoming revision.

  • http://wazzup.escape-us.com/?p=1200 wazzup » Blog Archive » 10 novos plugins Wordpress a conhecer!

    [...] 3. LOGIN WITH AJAX Adiciona efeitos suaves em ajax durante o login, eliminando a necessidade de refrescar a página caso a password esteja incorrecta, e permite ainda definir manualmente para onde é que os visitantes são enviados após efectuarem o login/logout. Suporta logins SSL e trabalha também com o WordPress MU e BuddyPress. [...]

  • http://www.ebooktm.com/website/wordpress/10-latest-wordpress-plugins.html 10 Latest WordPress Plugins | eBookTM | Download ebook, Jetaudio skin, Games

    [...] View Plugin [...]

  • mirandapieron

    Hi there!
    I think it will be a great plugin, but the login button isn't working for me either. I have Safari. Can I fix it or do I need to find another plugin?

  • David

    I have no problems with Safari. You might want to give a few more details: OS, Safari for Windows or Mac, which versions browser, WP, Login With Ajax, etc.

    David
    Mac OSX 10.4.11
    Safari 4.0.3 (I just upgraded – it also worked on Safari 3)
    WP 2.8.4
    Login With Ajax 1.2

  • http://netweblogic.com Marcus

    David has a point, it works for me on safari also. You should make sure you have the newest plugin version.

    Also, there might be other plugins that conflict with this one…

  • http://seo-experts.co.in/important-wordpress-plugins/ Important Wordpress Plugins | Search engine optimization | SEO

    [...] Log in With Ajax [...]

  • http://dangerbeuys.de/ fordlobster

    Looks like a nice plugin, but I receive the following error on the settings page, next to the “Role-Based Custom Login Redirects” field:
    Fatal error: Cannot use string offset as an array in xxxwp-contentpluginslogin-with-ajaxlogin-with-ajax-admin.php on line 113

    Seems like the rest of the settings page stopped loading. I downloaded v1.3 today from wordpress.org.

  • http://netweblogic.com Marcus

    I see what you mean, thanks for pointing that out. I'll release a new version with the fix tomorrow, as I'm already working on a new version.

  • Jason

    Awesome! Just what I've requested, and you got it done in a flash.
    You're the man …

    Many thanks.

  • http://netweblogic.com Marcus

    No problem, 2.0 is ready, just testing it a bit more, but will use the new Widget API meaning it can be used on more than one sidebar. Stay tuned ;)

  • http://palabrerio.com/ Ana

    Loving the plugin. At first it gave me an error for my password, that I'm pretty much was correct. I change it using the links and now it works.

    Can I use this for the login on the comments?

  • http://netweblogic.com Marcus

    If you require login for comments then yes, it would do the trick. All this does is adds another way to log into worpdress than via wp-login.php

  • http://mayuriwebdesign.wordpress.com/2009/10/05/30-wordpress-plugins-to-help-you-improve-your-sidebar/ 30 Wordpress Plugins To Help You Improve Your Sidebar « Web Design Blog

    [...] 9. Login With Ajax [...]

  • http://www.neurosoftware.ro/programming-blog/blogposter/web-resources/30-wordpress-plugins-to-help-you-improve-your-sidebar/ 30 Wordpress Plugins To Help You Improve Your Sidebar – Programming Blog

    [...] 9. Login With Ajax [...]

  • http://partytow.com/e/2009/10/07/30-wordpress-plugins-to-help-you-improve-your-sidebar/ 30 Wordpress Plugins To Help You Improve Your Sidebar – Partytow

    [...] 9. Login With Ajax [...]

  • http://www.wibbler.com/ Simon

    Hey,

    One glaring omission on this excellent plugin is the “register” part that the old Ajax Login plugin had! I operate a “Members Only” site, and used the Ajax Login on the site so that Login/Password/Registration could all be done from one place.

    Any chance of that being implemented?

  • http://netweblogic.com Marcus

    I'm not really sure whether a registration process is in the best interest of the plugin, here's why:

    Registration only happens once per user, so it's not much of an inconvenience. Depending whether you're using MU/WP/BuddyPress or some other plugin there's different registration forms involved with different fields, etc. making a one-fits-all ajax driven registration form impractical in my opinion.

    I could be wrong though… suggestions to the contrary are welcome!

  • fanatico

    I get this error in admin plugin page :

    Fatal error: Cannot use string offset as an array in C:wampwwwwp-contentpluginslogin-with-ajaxlogin-with-ajax-admin.php on line 113

  • fanatico

    One link to image error from panel

    http://img246.imageshack.us/img246/5100/errorr.png

  • http://netweblogic.com Marcus

    Have you upgraded to the newest version? It looks to me that you are on an older version.

    Also, apologies for me using <?= in my code, that'll be fixed in 2.0 which will be released this week.

  • fanatico

    Its actual version , and wordpress 2.8.4

  • http://netweblogic.com Marcus

    Sorry to ask again, but could you double check that you have version 1.3.1 of the plugin. Line 113 of the file you mentioned is pure HTML, no PHP so there is no way an error can be thrown on that line.

  • http://bia2arak.com/ Mostafa

    Hi, the translation function in subsequent versions plugins to translate different languages to scale
    Thanks!

  • http://netweblogic.com Marcus

    Yes, that's a good idea. I probably won't have time to slot it into 2.0 which I hope to release this week, but I'll definitely try for 2.1.

  • http://twitter.com/dpcamp Derek Campanile

    A little confused, I used the template tag <?php login_with_ajax(); ?> and got the following error:

    Warning: Missing argument 1 for login_with_ajax(), called in /homepages/33/d296593956/htdocs/wordpress/wp-content/themes/corporate_20/page_subscribe.php on line 26 and defined in /homepages/33/d296593956/htdocs/wordpress/wp-content/plugins/login-with-ajax/login-with-ajax.php on line 285

  • Steve

    Hi,

    Great plugin! I have a small problem though.

    I am running WP 2.8.2 and when I try to login I just get an endless spinner. If I refresh the page then I am logged in, logout works fine at that point too. I read through the posts and I saw a comment about someone hosting under PHP4, but I am running PHP5. Any idea? Thanks in advance.

    ~Steve

  • http://netweblogic.com Marcus

    For now, try passing an empty string, so login_with_ajax(''). I'll make sure it accepts no arguments next release.

  • http://netweblogic.com Marcus

    If you could supply me these two bits of information I may be able to help:

    Can you find out the response during the AJAX call? You can do this using Firebug for firefox and seeing the console window when you log in.

    Are there any errors in your error log?

    Thanks

  • http://twitter.com/dpcamp Derek Campanile

    Hi, I've added the reg form to the plugin, however I can't seem to figure out what i need to do in order for the ajax to return any errors, or even get the regisration to keep from redirecting to another page. I understand this really isn't part of your plugin, but i would appreciate any help!

  • chrisyork

    Hey, I pasted this “<?php if( function_exists('login_with_ajax') ) login_with_ajax(); ?>” into my header and I keep getting “call to undefined function” errors. Can you give me instructions on how to get this to work?

  • http://netweblogic.com Marcus

    Can you paste the error text? What you pasted shouldn't be causing an error if the function doesn't exist.

  • chrisyork

    Fatal error: Call to undefined function: loginwithajax() in /home/viral6/public_html/wp-content/themes/eGallery/header.php on line 82

  • http://netweblogic.com Marcus

    That's your problem right there. You're calling loginwithajax() when you should be calling login_with_ajax()

  • http://twitter.com/dpcamp Derek Campanile

    so i'm thinking of creating a new function called register and pretty much copying and modifiying the login function.

    function login(){
    $return = array(); //What we send back
    $loginResult = wp_signon();
    $user_role = 'null';
    if ( get_class($loginResult) == 'WP_User' )

    what would i need to get it to see if the registration was sucessful?

  • http://rhyslewis.com.au/ Rhys

    Hey Marcus, nice plugin.
    Would love to see:
    • multiple widget instances.
    • ability to customise what the widget displays from the backend. ie change welcome message, and display other content via a generic code box that displays underneath when logged in. This would provide a good level of customisation without having to build the structure in a standard text widget.

    thanks

  • Ahsan

    I am having the same problem
    the error i get is

    Error: missing ; before statement
    Line: 1, Column: 3
    Source Code:
    Fatal error: Call to undefined function: json_encode() in /html/wp-content/plugins/login-with-ajax/login-with-ajax.php on line 224

  • http://netweblogic.com Marcus

    Multiple widgets coming within days. It's actually ready but I'm testing it out currently.

    I like the idea of some custom html for those that don't want to create a template.

    Do you mean you'd like a text box for the widget which can contain html and it then gets displayed underneath the avatar, etc? That and customizing the title sounds like the best way to go to me… open to suggestions here.

  • http://tempebasah.com/30-plugin-yang-membantu-meningkatkan-kegunaan-dan-keindahan-sidebar/ 30 Plugin yang membantu meningkatkan kegunaan dan keindahan sidebar | tempe media

    [...] 9. Login With Ajax [...]

  • dsankov

    The plugin is working great, but when I try to use the “Forgotten Password” feature, it just hangs and doesn't do anything. The ajax loading screen appears, but it just keeps spinning. Any ideas?

  • BCW

    I've installed the plugin, and activated it within a subdomain (WPMU 2.8.1) but am getting the following errors after login:

    Warning: Invalid argument supplied for foreach() in /home/usr/public_html/wp-content/plugins/login-with-ajax/widget/widget_in.php on line 52

    Fatal error: Call to undefined function bp_core_get_notifications_for_user() in /home/usr/public_html/wp-content/plugins/login-with-ajax/widget/widget_in.php on line 70

    Line 52 reads: foreach($bp->bp_nav as $nav_item){

    Line 70 reads: $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id );

    The plugin looks great, so any thoughts about why it is throwing these errors would be appreciated.

  • http://netweblogic.com Marcus

    See http://netweblogic.com/wordpress/plugins/login-… and get back to me with that info. Hopefully I figure out what's going on then.

  • http://netweblogic.com Marcus

    Thanks for the info. Pretty sure I get why that's happening, so I'll make sure to patch that up in the next release, which should be within a couple of days.

  • BCW

    Thanks for the quick reply. Any insight you can pass along regarding what might be causing this? Is it a fix I could try inserting into the code? I am in the process of testing various solutions to an Ajax login today, and your plugin seems the most promising so far, except of course for the error!

    Thanks again.

  • http://netweblogic.com Marcus

    A quick and dirty hack, you can delete lines 49-63 and 67-89 from widget/widget_in.php, that should solve your problem.

  • BCW

    Thanks much – I'll give it a whirl.

  • BCW

    FWIW, I commented out those lines, and all is working as expected.

  • http://www.thebluegrassblog.com/ Brance

    I'd like to insert the login form into a post, but for some reason it puts the form at the top of post every time, despite the fact that the shortcode is at the bottom of the post.

    Why is it doing that? Any way to make it show up where I put it?

    Thanks.

  • http://netweblogic.com Marcus

    Hi Brance, well spotted, how wierd…. I'll investigate that and I should be able to get that fixed within the week for the new version.

  • gregory478

    Good morning!
    I am using your plugin v1.3.1 wp v2.8.4a
    I saw this issue earlier in the posts here but I am recieveing the same stall at login.
    Logout works great . . .
    Login acepts the password and I get the spinning graphic but have to refreash the page to see that I have logged in.

    My PHP versions:
    php-mcrypt-5.1.6-15.el5.centos.1
    php-5.1.6-23.2.el5_3
    php-pdo-5.1.6-23.2.el5_3
    php-mysql-5.1.6-23.2.el5_3
    php-cli-5.1.6-23.2.el5_3
    php-ldap-5.1.6-23.2.el5_3
    php-common-5.1.6-23.2.el5_3

  • http://netweblogic.com Marcus

    Hi, see http://netweblogic.com/wordpress/plugins/login-… and get back to me with that info. Hopefully I figure out what's going on then.

  • gregory478

    It seems to stop here:
    http://the51percent.us/wp-login.php?callback=js…
    — I can create a temp login for you if that would help ??

  • http://meshdiary.co.cc/?p=179 30 Wordpress Plugins To Help You Improve Your Sidebar | meshdairy

    [...] 9. Login With Ajax [...]

  • http://netweblogic.com Marcus

    Hi, I'm not getting any errors via firebug, so I'll need you to show me the PHP errors it throws in your log files.

  • dsankov

    Hi, do you know of a way to disable the “Login with Ajax” settings in “Settings”? I'm using this plugin in a WordPress MU environment and it's working great, but I don't want regular users to be able to edit the settings for Login with Ajax, such as “Global Login Redirect”, “Show profile link to wp-admin”, etc. It would be great to keep these settings for Site Admins, but have them not available to regular users/authors.

  • http://www.makingmyownwebsite.net/ Matus

    How can I get rid of the register, or how can I change it that will be linked to my sign up page. I'm using aMemeber software for membership site so I don't want them to register through that link “register” I'd rather send them to sign up page or get rid of it.

  • gregory478

    I'm running CentOS v5.3 where can I find the error log for PHP?
    g.

  • http://netweblogic.com Marcus

    It depends on your setup… do you have a control panel? Usually they have an option to show you the logs.

  • http://hmarlink.co.cc/ HmarLink

    Hi Marcus,

    I want to show the avatar (profile pic) from facebook instead of a random pic (from gravatar) when users log in through Facebook Connect. How can I do that?
    Also, the entire page refreshes when logging in. I'm using login_with_ajax('') to call it. But of course when I added it as a widget in the sidebar, it works perfectly fine (no page refreshing whatsoever).

    And btw, thanks a ton for the plugin.

  • http://netweblogic.com Marcus

    I can't comment on the facebook connect avatar, as I've not run into that problem (yet). The avatar uses either the get_avatar or bp_loggedinuser_avatar_thumbnail if using buddypress, I'd have thought it automatically retrieves that?

    What javascript errors do you get when it doesn't refresh?

  • http://www.lifebeyondwealth.com Craig Mattice

    I admit, I just maybe really stupid. I’ve built this new website for my church, still under construction. Downloaded, installed, activated your plugin. Get the widget, place it in my right sidebar and it says, “There are no options for this widget.”

    So how do I get the login/logout, register type thing to appear in the sidebar and where do I go to configure it? I don’t even know how to get a basic WP login format thing in the sidebars. What am I missing here?

    I have a gut feeling the answer is going to be really simple. So simple, I’m making it way more difficult that it is.

    Thank you for your patience, tolerance, and most of all a really helpful and simple answer.

  • http://netweblogic.com Marcus

    Hi Derek,

    Just going through the comments, sorry must have missed this one! I'd have to look into that further, unfortunately, I don't have the time right now. I might be making a reg form myself soon so if I make a solution I'll be sure to share it on here.

  • http://netweblogic.com Marcus

    Please make sure you have the newest version. Newer versions have a PHP4-safe json_encode function.

  • http://netweblogic.com Marcus

    Create a widget template as described above, then modify the link to the register page.

  • http://netweblogic.com Marcus

    hmmm…. yes, I see what you mean, good point. I'll have to add that to 2.1 as I'm not able to do that right now.

  • http://hmarlink.co.cc/ HmarLink

    I don't get any errors. It's just that the entire page refreshes again. But I think I can live with it. :)

  • http://netweblogic.com Marcus

    Do you mean the page refreshes again when it logs in successfully? That happens on purpose, since the members area may have more links etc. on the page. The point of the plugin is for logins to only refresh if successful, not when there's an error..

  • http://hmarlink.co.cc/ HmarLink

    It says on top (in green) “Login Successful. redirecting…” and then the entire page refreshes; only after that the 'Hi ADMIN' and other logged in features like avatar, profile link, etc appear. Is that how it's supposed to be?

  • http://netweblogic.com Marcus

    Yep, that's right.

    I guess it might be a nice idea to provide a setting option so that there's no refresh, but an updated login box…. something for a future version.

  • http://hmarlink.co.cc/ HmarLink

    I would definitely love to see that. And thank you once again.

  • http://metodepromovare.wordpress.com/2009/11/06/top-1000-wordpress-plugin-authors/ Top 1000 WordPress Plugin Authors « Metode de promovare

    [...] Login With Ajax [...]

  • http://broguis.com.br/temas/10-latest-wordpress-plugins.html 10 Latest WordPress Plugins « Temas e Dicas para Wordpress

    [...] View Plugin [...]

  • http://embblog.com.ar/2009/11/17/30-plugins-wordpress-recomendados-para-tu-sidebar/ 30 plugins Wordpress recomendados para tu sidebar | EMB Blog

    [...] Login With Ajax [...]

  • http://www.bitrepository.com/wordpress-ajax-for-login-plugin.html Login with AJAX: A Wordpress Plugin to Login without Page Refresh

    [...] Login With Ajax is an awesome WordPress plugin useful to ajaxify the login process to the WP Admin Area. With this plugin you avoid screen refreshes and moreover you can choose where users depending on their role (either administrator, editor, author, contributor or subscriber) get redirected when they login / logout. You also have the option to set a global login/logout redirect so all the users will be redirected to the specified URLs. [...]

  • http://www.scratch99.com/2010/01/daily-digest-for-january-9th/ Daily Digest for January 9th | More Than Scratch The Surface

    [...] Shared Login With Ajax | NetWebLogic. [...]

  • http://www.faydaliweb.com/wordpress/ekleniler/yeni-cikan-10-wordpress-eklentisi.html Yeni ç?kan 10 wordpress eklentisi | Eklentiler

    [...] Login with AJAX [...]

  • http://crunchpress.com/wordpresss-widgets-plugin-wordpress-plugins-for-sidebar/ WordPresss Widgets Plugin – WordPress Plugins for Sidebar | WordPress How To Plugins, Themes Usability

    [...] 4. Login With Ajax: [...]

  • http://www.techzoomin.com/add-smooth-effects-of-ajax-with-login-with-ajax-plugin/ Add Smooth Effects Of Ajax With ‘LOGIN WITH AJAX’ Plugin | TechZoomIn

    [...] these are just words. To know more about Login With Ajax, go ahead and download the Latest version of [...]

  • http://www.wsblogz.com/wordpress-theme/most-popular-sidebar-wordpress-plugins/ Most Popular Sidebar WordPress Plugins - Wsblogz.com – Web design magazine

    [...] Login With Ajax [...]

  • http://www.hackapc.net/?p=10 Hack A PC » 30 Wordpress Plugins To Help You Improve Your Sidebar

    [...] Login With Ajax This is a pretty cool widget plugin that allows your blog members to login. Using the ajax [...]

  • http://www.php-press.com/login-with-ajax-plugin.html فرم اجکس لاگین به وردپرس

    [...] loginwith ajax با استفاده از ابزارک ‌ها قابلیتی را به وبلاگ شما اضافه [...]

  • http://www.joebeaudoin.net/2010/07/quick-hack-for-the-login-with-ajax-wordpress-plugin/ Quick Hack for the “Login with Ajax” Wordpress Plugin | J. James Beaudoin — Web Developer, Coder, Writer, Galactic Savant, Impassioned Human and Survivor

    [...] is the result of having to deal with a client who had issues with the Login with Ajax plugin for WordPress. The client basically had this [...]

  • http://blog.akshartechnologies.com/2009/10/30-wordpress-plugins-to-help-you-improve-your-sidebar/ 30 Wordpress Plugins To Help You Improve Your Sidebar « Akshar Technologies

    [...] 9. Login With Ajax [...]

  • http://dofollow.de/grundausstattung/aus-wordpress-ein-eigenes-artikelverzeichnis-machen/ Aus Wordpress ein eigenes Artikelverzeichnis machen – DoFollow.de

    [...] Plugin-Name: Login With Ajax  | Download hier [...]