SimpleModal Login
Facebook connect (5 posts)

  1. mortonc
    Posted 4 years ago #

    I'm using simple facebook connect but the button doesn't show in simple modal login.

    any help?

  2. totels
    Posted 4 years ago #

    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.

  3. totels
    Posted 4 years ago #

    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.

  4. dax702
    Posted 4 years ago #

    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?

  5. helgipetersen
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SimpleModal Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic