• Please help me!
    After having read a similar topic, I’ve managed to make Social Connect partially work with Theme My Login: it does successfully register but unfortunately it’s unable to redirect after login when running from a login form widget.

    However, it does work from the login page, and even from a login form widget in the login page sidebar.
    I guess it’s because Social Connect looks for the id #loginform, while Theme My Login appends a digit to its widget (e.g. #loginform1, #loginform2, etc).
    I’ve tried to edit connect.js without success, and by the way I’m not sure if the crucial point resides only there.

    Please take a look and see the differences between
    http://3dolab.net/demo_edm/login/
    and
    http://3dolab.net/demo_edm/test-page/

    (there is also a lightbox link to Login With Ajax in the upper right corner, but obviously it’s a further step…)

    http://wordpress.org/extend/plugins/social-connect/

Viewing 1 replies (of 1 total)
  • Thread Starter 3dolab

    (@3dolab)

    Whoooo it’s nice to ask and answer my own questions 😉
    It’s all about javascript… I’ve just added an additional condition to connect.js (line 109) and now everything seems to work!

    so, replace

    if(!jQuery('#loginform').length) {
    		if(jQuery('#registerform').length) {
    			// if register form exists, just use that
    			form_id = '#registerform';
    		} else {

    with

    if(!jQuery('#loginform').length) {
    		if(jQuery('[id^=loginform]').length) {
    			// Theme My Login widgets
    			form_id = '#' + jQuery('[id^=loginform]').eq(0).attr('id');
    		} else if(jQuery('#registerform').length) {
    			// if register form exists, just use that
    			form_id = '#registerform';
    		} else {

    Login With Ajax still doesn’t work, though.
    Adding another condition in javascript (to submit #LoginWithAjax_Form) and checking submission with function sc_ajax_login (in social connect.php) will simply make it throw out an “empty username / password” error.

    I’ve found a quick and dirty workaround, by using an hidden Theme My Login widget where it isn’t already present, so the Social Connect flow could go through that instead of the LWA form.

    However, any hint would be highly appreciated.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Social Connect] Failing Login redirection’ is closed to new replies.