WordPress.org

Support

Support » Plugins and Hacks » Fast Secure Contact Form » [Plugin: Fast Secure Contact Form] Contact Form conflict with Simple Facebook Connect

[Plugin: Fast Secure Contact Form] Contact Form conflict with Simple Facebook Connect

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Mike Challis

    @mikechallis

    Simple Facebook Connect is the one causing the conflict. The plugin scans the page before WP displays it. It is looking for images for Facebook share. This causes the form to execute in a hidden process. The author of SFC has not wanted to add a page exclusion feature, even though I and others have asked for one. (ask him if you want to)
    There is nothing I can fix

    I use Share and Follow and have no problems.

    Hi Mike

    I have been provided with this code and it seems to work fine.
    The only thing not working now is the redirect after submit (no “thank you message or redirect”) Any suggestions on a fix or workaround?

    <?php 
    
    // prevent facebook like buttons on this page
    remove_filter('the_content', 'sfc_like_button_automatic', 30);
    
    get_header(); 
    
    /*
    Template Name: Contact Us
    */?>

    (ps: for anyone that wants to use this code, you simply create a page template for the contact us page in your theme directory, then add the code above at the top of the page, and in admin, select this template for the contact us page).

    Sorry Mike – I just remembered that we were having the same conversation over here, http://wordpress.org/support/topic/plugin-fast-secure-contact-form-simple-facebook-connect-again?replies=8

    But I never heard back from you!!

    I realise you’re probably busy and tired with having to deal with Otto’s plugin issue, but the code above does seem to work (at least it allows si-cf to work) the only issue is no thank you message….

    Would be great to resolve that if you are able to assist!
    Thanks

    OK I have fixed this now – this should fully resolve the issue with Simple Facebook Connect and Si Contact Form.

    Simple fix really, don’t know why I didn’t think of it before.
    This fix just adds the si contact form outside of the page content loop by adding the php hook in a page template (rath than adding it to the page in admin.

    Here is my example page template for contact us.
    If you’re going to use it, make sure that the contact form number corresponds to your own form # and change (or remove) the email address in the else statement at the end.
    You will also need to make sure your actual contact page in admin uses this template.

    <?php 
    
    // prevent facebook like buttons on this page
    remove_filter('the_content', 'sfc_like_button_automatic', 30);
    
    get_header(); 
    
    /*
    Template Name: Contact Us
    */?>
    
    <!-- begin colLeft -->
    
    <div id="colLeft" >	
    
    		<h1><?php the_title(); ?></h1>	
    
    	<?php if (is_page('contact-us')) { ?><div style="margin-left:30px;">
    	<?php } else { ?>  <div style="margin-left:0px;"> <?php }
    
             if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    		<?php the_content(); ?>
    
    		<?php endwhile; else: ?>
    		<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    		<?php endif; ?>
    
    <?php
    if ( isset($si_contact_form) )  {
     echo $si_contact_form->si_contact_form_short_code( array( 'form' => '1' ) );
    }
    
    else print'<a href="mailto:me@my-email-example.com" />click here to email us</a>';
    ?>
    
    	</div>
    	</div>
    	<!-- end colleft -->
    
    	<?php get_sidebar(); ?>	
    
    <?php get_footer(); ?>
    Plugin Author Mike Challis

    @mikechallis

    Thanks, I will add this to my help page

    I have been wanting to fix my facebook connect for months, and i have read this over and over and still cant figure out were in the heck i am suppose to place this code

    what i have done is created a page within workpress called contact us. and i use a shortcode to insert my contact form into the page, so i am not quite sure what template file i am suppose to be inserting this into because i dont have a contact us template file

    Moderator Andrew Nevins

    @anevins

    Forum moderator

    Sorry, Sexyjason1986, you’ll have to create your own thread for help with your own issue. This thread’s discussion ended 8 months ago, so I’m closing this thread.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Fast Secure Contact Form] Contact Form conflict with Simple Facebook Connect’ is closed to new replies.
Skip to toolbar