WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
SFC w/ Custom Fields (1 post)

  1. auz1111
    Member
    Posted 1 year ago #

    Hey, great plugin Otto!

    I was trying to get custom fields to work by hooking into WP:

    add_action('comment_form_logged_in_after','star_fields');
    add_action('comment_form_after_fields','star_fields');

    I found the SFC plugin to be hiding the field I was trying to add through the hook so I changed starting at around line 337 in sfc-comments.php:

    if (!jQuery('#fb-user').length) {
    
                                    //added code...
    				jQuery('.comment-form-author').hide();
    				jQuery('.comment-form-email').hide();
    				jQuery('.comment-form-url').hide();
    				jQuery('#alt-login-methods').hide();
    
                                    //modified line...
    				jQuery('#comment-user-details').before("<span id='fb-user'>" +

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic