WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. gottaloveit
    Member
    Posted 4 years ago #

    Hi,

    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.

    Thanks

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 4 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