WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WPBook] Is it possible to us WP Book as a page tab (2 posts)

  1. Hi,
    This is a really great plugin and has been very helpful to me. I would like to know if it's possible to make it work on a fan page tab that would pull the content from a wordpress page?

    I can get it to work with a static page put the page I am trying to pull in contains a form built using Gravity Forms. When you fill out the form and click submit it redirects to the canvas page which also contains the same form.

    The form properly collects the data when it is filled out on the canvas page but not on the fan page tab.

    Here is the link to the fanpage tab http://www.facebook.com/pages/Patricia-Ahmad-Cornerstone-Mortgage-Company/366214724021?v=app_374524741751

    To get it to just show the page in the tab I had to create a special wordpress template and altered header.php here is the code in my header.php and template

    Template Code

    <?php
    /*
    Template Name: facebook
    */
    ?>
    
    <?php get_header('facebook'); ?>
    
     <div id="content">
    
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    
    <?php the_content("<p>__('Read the rest of this page &raquo;')</p>"); ?>
    <?php endwhile; endif; ?>
    <div id="footer">
    <p class="bottom"><img class="ehl" src="http://pa.c3mtech.com/images/ehl.jpg" />NMLS# 207943</p>
    </div>
    </div>
    <div id="side" class="referafriend">
    <div class="header">Share With Facebook Friends</div>
    <div style="padding: 10px;"> <fb:request-form method="post" action="index.php" content="C3M Digital" type="Page" invite="true"> <div class="clearfix" style="padding-bottom: 10px;"> <fb:multi-friend-selector condensed="true" selected_rows="0" style="width: 200px;" /> </div> <fb:request-form-submit /> </fb:request-form> </div> 
    
    </div>
    
    </div>

    Header.php only contains the css

  2. johneckman
    Member
    Posted 4 years ago #

    I don't think this is really a WPBook question - you're not even loading wpbook in this case, just loading a custom php file in Facebook.

    Which form is built using gravity forms? the "join our mailing list" one?

    It does seem Facebook allows forms on Profile tabs or in FBML, so I'm not sure why it doesn't work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags