Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Author we8u

    (@we8u)

    hey shawn. post a link to your site, and I’ll take a look at it tonight. in which file did you comment out the script?

    shaun

    Thanks Shaun,

    the website is https://www.lifesavernetwork.org

    The facebook fan box is not on the homepage. If you click on any posting, it only show up with the facebook comment.

    The changes I made is the script in widget for the facebook fan box. I added <!– and –> around the script in the widget.

    If I remove the <!– and –>, my facebook comment will show “the page you requested was not found”

    Shawn

    Plugin Author we8u

    (@we8u)

    To get it back on the main page, edit your index.php file (here) and add <script src="https://connect.facebook.net/en_US/all.js#xfbml=1"> right before the bottom (before </body>, if present) and outside of any php tags (<?php ... ?>).

    The reason it’s only showing up on posts is because the comment plugin isn’t loaded on the main page, thus the facebook script isn’t either.

    If you still have problems, post the last twenty or so lines of your (modified) index.php file, and the first ten or so of your footer.php file.

    shaun

    Thread Starter MelonieMac

    (@meloniemac)

    Shawn, I had the same problem when I added “<!– –>” to the code on both the home page and posts pages FB fan box widget. I fixed it by only posting “<!– –>” on the fan box widget for the posts pages, and not changing anything for the FB fan box code on the home page. I’m not sure how you have yours set up, but I put my FB fan box in a text widget, so adding code to the fan box on the post section and leaving it alone on the home page was simple.

    But Shaun really knows what he’s talking about, so it definitely wouldn’t hurt to listen to him. :p haha

    Hi Shaun,

    this is my index.php

    <?php endwhile; ?>
    
          <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
          <div class="navigation">
            <div class="alignleft">
              <?php next_posts_link('← Previous Entries') ?>
            </div>
            <div class="alignright">
              <?php previous_posts_link('Next Entries →') ?>
            </div>
          </div>
        <?php } ?>
    
          <?php else : ?>
          <h2 class="center">Not Found</h2>
          <p class="center">Sorry, but you are looking for something that isn't here.</p>
          <?php include (TEMPLATEPATH . "/searchform.php"); ?>
          <?php endif; ?>
    </div> <!-- /gap -->
    </div> <!-- /content -->
    </div> <!-- /content-wrap -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    This is my footer.php

    <br class="clear" />
    </div>
    </div>
    <!-- /sub page -->
    <br class="clear" />
    <div class="thetop"><a href="#top">↑ Top</a></div>
    <div id="footer-out">
      <div id="footer">
        <hr />
        <p> <strong>
          <?php bloginfo('name');?>
          </strong> ? Powered by <a href="https://www.ads-software.com/">WordPress
          <?php bloginfo('version'); ?>
          </a> </p>

    Hi Melonie,

    I only put one facebook fan box script into text widget (under sidebar 1). before I put the facebook comment, I have my facebook fan box in both the main page and posts pages.

    May I know how do you have another facebook fan box in your main page?

    thanks
    Shawn

    Plugin Author we8u

    (@we8u)

    If you don’t have the same setup as melonie, you can add

    <script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script>

    right before <?php get_sidebar(); ?> in index.php

    It actually really doesn’t matter where you place the script in that file, but placing it low allows the page to load first, and not have to wait on the script.

    Thread Starter MelonieMac

    (@meloniemac)

    Sorry for the late reply. I forgot to check back lol.

    Shawn, it sounds like you put the fanxbox into a text widget placed in a universal sidebar, right? Where everything in that section displays on everything, including pages and posts?

    I have mine laid out a little differently. I put the fanxbox code into two different text widgets. One that I placed in the “homepage sidebar” section, and another in the “post sidebar” section. I left the FB fan box text widget as is on the homepage sidebar, but for the post sidebar, I added the “<!– –>” outside of the fanbox code.

    I hope that explains things better. If not, I’ll take some screencaps to better describe the process. Let me know. ??

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘[Plugin: Facebook Comments for WordPress] FB Comment error on my site’ is closed to new replies.