WordPress.org

Forums

Fast Secure Contact Form
[closed] Contact Form conflict with Simple Facebook Connect (10 posts)

  1. gibbous1
    Member
    Posted 3 years ago #

    Just got the warning message when I updated Fast Secure that these two plugins don't play nicely together. How serious is the incompatibility and is it likely to be fixed soon? Simple Facebook Connect is an invaluable plugin to me and I won't be giving it up anytime soon. Thanks.

    http://wordpress.org/extend/plugins/si-contact-form/

  2. Mike Challis
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  3. Iamhere
    Member
    Posted 3 years ago #

    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
    */?>
  4. Iamhere
    Member
    Posted 3 years ago #

    (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).

  5. Iamhere
    Member
    Posted 3 years ago #

    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

  6. Iamhere
    Member
    Posted 3 years ago #

    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(); ?>
  7. Mike Challis
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks, I will add this to my help page

  8. sexyjason1986
    Member
    Posted 2 years ago #

    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

  9. sexyjason1986
    Member
    Posted 2 years ago #

    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

  10. Andrew
    Forum moderator & snail smusher
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Fast Secure Contact Form
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic