Support » Plugin: SimpleModal Login » Facebook connect

Viewing 4 replies - 1 through 4 (of 4 total)
  • I haven’t tested it extensively but you may be able to fix this by setting the global $action to ‘login’

    Line 342 of simplemodal-login/simplmodal-login.php:

    global $action;
    if ($action != 'login') $action = 'login';

    This should allow simple-facebook-connect and simple-twitter-connect to render the auth buttons in the modal dialog.

    I wasn’t satisfied with editing the simplemodal-login core files so instead I am using an add_action hook in my theme functions.php, you could create a plugin as well.

    in functions.php:

    function theme_login_form() {
        global $action;
        $action = 'login';
    add_action('login_form', 'theme_login_form', 1);

    Luckily the add_action in SFC – Login uses the default priority (Function_Reference/add_action) so we can inject our own add_action hook to run before it and set up the var it is looking for.



    I think this is the same thing I want to do – add a login with facebook button to the modal window,, is that correct? Do you have a link where I can see it in action?



    I see the button, bot the buttn does not work. When i press it nothing happend.??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Facebook connect’ is closed to new replies.