Simple Facebook Connect
Ajaxify the SFC login button (2 posts)

  1. gottaloveit
    Posted 5 years ago #


    I am basically copying the WP login form into an ajax div that will be made visible with a click toggle. In your SFC Login Button function, you have
    if ($action == 'login')
    to allow the button to load. I changed it for my application, and it works fine. Basically since I am loading the form on ajax calls, it wont always have the request param $action set.

    Was wondering if this condition is required, because I want to keep any updates you make easy to upgrade and not break anything I changed.



  2. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 5 years ago #

    That's just adding the login to the login form. If you want to add the login button elsewhere (not on the login form), then you can do it like the connect widget does. Examine the code it produces, that sort of thing will let you login from anywhere on the site instead.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic