• Hello all, as this is my first post in the support forum I definitely want to thank everyone for their up front attention. I have attempted to set up the WP Book plugin for Facebook integration, and so far is pulling in content from the blog which can be seen here http://apps.facebook.com/jaimejorge/. The content is partially loading, but when “Continue reading…” is clicked it loads a blank page with the website heading. If the “View post” option is clicked it will load the page from the original site just fine. I have disabled all migration settings under the advanced section.

    It would be ideal to either have the full posts display, or load when the “Continue reading” is clicked. Once again thank you for your assistance.

    http://wordpress.org/extend/plugins/wpbook/

Viewing 9 replies - 16 through 24 (of 24 total)
  • Plugin Contributor B.

    (@bandonrandon)

    Showing the full post is pretty simple. You’ll need to modify wpbook/theme/index.php. I’m more tying to find out if we have a bigger bug to fix rather than making everyone with the issue just modify their theme file. I have include instructions below how to show full post but if you’d like to continue to troubleshoot that would be great. The first thing would be to try to disable fbconnect and see if that helps anything. By viewing the source it looks like FBconnect is inserting scripts into the header and then the page is failing to load. If disabling FBconnect fixes the problem but you still need it on the site you can wrap it in the second question here: http://wpbook.net/docs/faq/

    Here are the modifications to be made in the wpbook/theme/index.php file:

    On line 316 you’ll see the_content(); you want to add the following before that line so you’ll have:

    global $more;    // Declare global $more (before the loop).
    $more = 1;       // Set (inside the loop) to display all content, including text below more.
    the_content();

    Source

    You’ll also probally want to remove the link in the title to do this edit line 291-292 from

    <a href="<?php the_permalink(); ?>" target="_top">
             <?php the_title(); ?></a></h3>

    to
    <?php the_title(); ?</h3>

    STANDARD DISCLAIMER: Although I’m working on a way to prevent overriding the theme changes on upgrade this isn’t a current feature. This means that you need to back up the theme file so it won’t be overwritten on upgrade.

    Hope the helps.

    Plugin Contributor B.

    (@bandonrandon)

    It looks like I forgot a > in the above post you should have this for the title <?php the_title(); ?></h3>

    Plugin Author John Eckman

    (@johneckman)

    You’ve hit an assumption I made early in the development of WPBook that I’ve not been able to correct yet.

    WPBook takes the “canvas url” from Facebook, and adds the permalink url to it.

    So your post which actually lives at /archives/permalink/ gets turned into /blog/archives/permalink because WPBook doesn’t recognize that your “list of posts” page is at /blog/ but your permalinks begin with /archives/ not with /blog/.

    You could edit / hardcode the function that calculates permalinks inside WPBook, and leave you canvas callback url set to /blog/ – but you’ll have to redo that change every time we update.

    Plugin Contributor B.

    (@bandonrandon)

    @johneckman thanks for the explanation. Any reason why we aren’t just using the canvas url from the WPBook settings and adding the permalink to that. That may be more accurate. Another way may be to grab the site’s blog url from Settings >reading > post url and attach our permalink to that. I’m probably missing something here though.

    Plugin Author John Eckman

    (@johneckman)

    We are grabbing the canvas url from the WPBook settings and adding the permalink to that.

    In his case, the permalink starts with /archive/, but the canvas url starts with /blog/, so the result is /blog/archive/title/

    The problem is basically when a homepage is used that is not the list of blog posts – the posts page lives on a url like /blog/ but the wordpress install is in the root.

    It’s been a while since I’ve looked at this issue, but as I recall the problem is that Facebook won’t let you go “above” the canvas url – so if your canvas url were http://www.domain.com/blog/ then your Facebook app would not be able to call http://www.domain.com/ or http://www.domain.com/somethingelse/more/.

    What we’d have to do instead is set the canvas url to http://www.domain.com (or at least the root of the wordpress controlled portion of the site) and then automatically trigger the post page (ignoring the custom home page setting) on page load.

    Thread Starter jaybadz

    (@jaybadz)

    Wow, thank you guys so much for the support. I have not had the opportunity to implement the suggestion but I am going to and will follow up on the results.

    Thread Starter jaybadz

    (@jaybadz)

    Ok, so I have tried to modify the file with the suggested changes and it is not displaying the full content without the “continue reading”. The facebook connect plugin, when disabled, does not resolve the issue.
    The following is the example: <?php the_title(); ?></h3>
    and

    global $more; //global $more (before the loop).
        $more = 1;	//Set (inside the loop) to display all content, including text below more.
        the_content();

    Your assistance is most appreciated.

    Plugin Contributor B.

    (@bandonrandon)

    That’s strange. I made the changes discribed above in my test install and they worked fine. If you’d like me to check it out could you post theme/index.php into a pastebin and either post the link here or if you want privacy, e-mail me the link.

    Thread Starter jaybadz

    (@jaybadz)

    First and foremost just to say thanks for the help here. I, unfortunately, have not been able to get the links to work properly with the WordPress blog. I have updated the plugin to the most current version. Facebook connect had to be deactivated as it had started to cause conflicts with the WP Book installation. If there can be any assistance provided; I am willing to provide whatever info is needed. Thank you.

Viewing 9 replies - 16 through 24 (of 24 total)

The topic ‘[Plugin: WPBook] Continue reading not loading content’ is closed to new replies.