Forums

Getting Posts to show inline (9 posts)

  1. chefslinejenn
    Member
    Posted 4 years ago #

    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!

    http://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.

  2. Ajd777
    Member
    Posted 4 years ago #

    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');?>`

  3. chefslinejenn
    Member
    Posted 4 years ago #

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

  4. Ajd777
    Member
    Posted 4 years ago #

    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});}

  5. chefslinejenn
    Member
    Posted 4 years ago #

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

  6. Ajd777
    Member
    Posted 4 years ago #

    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.

  7. chefslinejenn
    Member
    Posted 4 years ago #

    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. !!!!

  8. chefslinejenn
    Member
    Posted 4 years ago #

    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"

  9. Ajd777
    Member
    Posted 4 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic