• Like doodlebee but for posts. I uploaded more recent inlineposts.php module and deactivated old inline ajax comments. Also deactivated other plugins.

    Am thinking it has something to with template code for posts since category links seem to display inline. Your help is much appreciated!

    https://www.chefsline.com/blog

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    <div id=”middle”>
    <?php
    if (is_home()) {
    query_posts(“cat=-24”);
    }
    ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_date(”,'<h2>’,'</h2>’); ?>

    <div class=”post”>
    <h3 class=”storytitle” id=”post-<?php the_ID(); ?>”>” rel=”bookmark”>
    <?php the_title(); ?>
    </h3>

    ETC.

Viewing 8 replies - 1 through 8 (of 8 total)
  • I found the problem. See the fix below.

    Open: /js/core.js.php
    Find: `switch(_d[i].type){
    <?php do_action(‘awp_ajax_complete’);?>
    }`
    Replace With:`switch(_d[i].type){
    <?php do_action(‘awp_ajax_complete’);?>`

    Thread Starter chefslinejenn

    (@chefslinejenn)

    Hi. Did the edit.
    This did not make any noticeable change.
    ….

    I goofed when I copied and pasted. I updated the edit. Basically, you should only have to remove one of the }’s.

    There is a second edit that will need to be made if you decide later to use the comment form.:

    open /modules/commentform/commentform.php
    Find: aWP.doit({'id': _d[i].id, 'type': 'comments', 'force': 1, 'focus': 'comment-'+_d[i].mrc});
    Replace With: aWP.doit({'id': _d[i].id, 'type': 'comments', 'force': 1, 'focus': 'comment-'+_d[i].mrc});}

    Thread Starter chefslinejenn

    (@chefslinejenn)

    Thanks for the comment piece.
    BUT!
    Not working.
    I’ve stripped everything down a lot.
    ??
    Thanks.

    I checked your website and it is a completely different error now, and I think happened while you were editing it. Rather than trying to find exactly what is causing it, I added the updated the SVN so you can download the updated core.js.php file.

    Thread Starter chefslinejenn

    (@chefslinejenn)

    Bingo.
    The plugin is brilliant. Thanks for the help. Will be back to your site to support and will update you when I fully implement. !!!!

    Thread Starter chefslinejenn

    (@chefslinejenn)

    I hope I’m not imposing, but it looks like if content of posts is less than designated split (in my case 80 words), that simple post still display “continue to read” link. So to fix that, I would like to use the direct call. I have a syntax error I think and if you could let me know that’d be great.

    my code:
    <?php the_content; ?>
    <?php do_action (‘awp_title’); ?>

    Rather than content or link to “continue to read..” display on site is, eg.:

    onclick=”aWP.doit({‘id’: ‘1002’, ‘type’: ‘post”show’: ‘sugar alternatives’, ‘hide’: ‘sugar alternatives’}); return false;” id=”awppost_link_1002″

    1) do_action (‘awp_title’); is for when you want your title to be used as the show/hide link. You want to use do_action (‘awp_post’);

    2) I heavily suggest not using awp_post as it has become an after-thought in the coding process.

    3) Do you have an example page you can post where the link is being displayed?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Getting Posts to show inline’ is closed to new replies.