• Andrew

    (@andrewkantor)


    (Sorry for the multiple posts, but it doesn’t seem to like the code markup!)

    I love the idea of this plugin, but, well, nothing happens when I install and activate it. I should say that nothing happens in my customized theme; it works if I switch to the WordPress Classic theme.

    Obviously I’m doing something wrong. Here’s the relevant section of my comments.php file:

    <?php if (comments_open()) : ?>


    <form action=”https://www.kantor.com/blog/wp-comments-post.php&#8221; method=”post” id =”commentform”>
    <h3>Weigh in</h3>

    <p><small>Yer name:</small>
    <input type=”text” name=”author” size=”21″ value=”<?php echo $comment_author; ?>” tabindex=”1″ /></p>

    <p><small>Yer e-mail (so I can respond privately — never ever shared):</small>
    <input type=”text” name=”email” id=”email” value=”<?php echo $comment_author_email; ?>” size=”40″ tabindex=”2″ /></p>

    <p><small>Yer Web site (if you like):</small>
    <input type=”text” name=”url” id=”url” value=”<?php echo $comment_author_url; ?>” size=”22″ tabindex=”3″ /></p>

    <p><small>What you have to say (Be civil, or it might be removed; comments with linksmight be held for moderation, just so you know):</small>
    <textarea name=”comment” cols=”50″ rows=”10″ tabindex=”4″></textarea>

    <input name=”submit” type=”submit” id=”submit” tabindex=”5″ value=”Submit Comment” />
    <input type=”hidden” name=”comment_post_ID” value=”<?php echo $id; ?>” />
    </p>
    <?php do_action(‘comment_form’, $post->ID); ?>
    <?php live_preview(); ?>
    <?php endif; ?>
    ‘</form&gt

    Any help you can give would be most appreciated — thanks!

    Andrew

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter Andrew

    (@andrewkantor)

    (Sorry for the multiple posts, but it doesn’t seem to like the code markup!)

    I love the idea of this plugin, but, well, nothing happens when I install and activate it. I should say that nothing happens in my customized theme; it works if I switch to the WordPress Classic theme.

    Obviously I’m doing something wrong. Here’s the relevant section of my comments.php file:

    <?php if (comments_open()) : ?>


    <form action=”https://www.kantor.com/blog/wp-comments-post.php&#8221; method=”post” id =”commentform”>
    <h3>Weigh in</h3>

    <p><small>Yer name:</small>
    <input type=”text” name=”author” size=”21″ value=”<?php echo $comment_author; ?>” tabindex=”1″ /></p>

    <p><small>Yer e-mail (so I can respond privately — never ever shared):</small>
    <input type=”text” name=”email” id=”email” value=”<?php echo $comment_author_email; ?>” size=”40″ tabindex=”2″ /></p>

    <p><small>Yer Web site (if you like):</small>
    <input type=”text” name=”url” id=”url” value=”<?php echo $comment_author_url; ?>” size=”22″ tabindex=”3″ /></p>

    <p><small>What you have to say (Be civil, or it might be removed; comments with linksmight be held for moderation, just so you know):</small>
    <textarea name=”comment” cols=”50″ rows=”10″ tabindex=”4″></textarea>

    <input name=”submit” type=”submit” id=”submit” tabindex=”5″ value=”Submit Comment” />
    <input type=”hidden” name=”comment_post_ID” value=”<?php echo $id; ?>” />
    </p>
    <?php do_action(‘comment_form’, $post->ID); ?>
    <?php live_preview(); ?>
    <?php endif; ?>
    ‘</form&gt

    Any help you can give would be most appreciated — thanks!

    Andrew

    icanseeclearlynow

    (@icanseeclearlynow)

    Mine does not work either.

    byronrode

    (@byronrode)

    hey guys! see this post for a fix for the above!
    https://www.ads-software.com/support/topic/143524

    lworrilow

    (@lworrilow)

    The fix you have referenced is for Live Comment Preview 1.7 and not version 1.8.

    I can’t get Live Comment Preview version 1.8 to work with WordPress 2.3.1.

    I’ve taken over maintenance of this plugin and just updated it today. I noticed that problem and fixed it in the 1.8 release.

    lworrilow

    (@lworrilow)

    I’m using the Copyblogger 1.0 theme and it doesn’t work with it and I can’t find the problem. Nothing happens when I activate the theme. I’ll just have to stay with version 1.7.

    KirkM

    (@kirkm)

    Version 1.8 does not work for me either where 1.7 (right out of the box, no modification) has always worked just fine. There are several others in various places in the forum who are also complaining that 1.8 does not work. I even tried installing the code snippet and it still doesn’t work. Went back to 1.7.

    I use version 1.8.2 with WP 2.3.1 and that plugin don’t works for me even if I add that code line to my comments page manually. I have no idea why it not works ??

    Has anyone ever figured out how to get this working again? I’ve tried several different fixes mentioned in various threads and nothing works.

    I’ve tried this on 15 of the sites I manage, and tried it with over 40 different themes, and none of them work.

    So wondering if there is a fix, or is this terminally obsolete now. Is there an alternative plugin option that does work?

    I’ve just found that I had to make a couple of changes to get live-comment-preview to work.

    • Around line 158, change str_replace("\r\n", "", $previewFormat) to str_replace("\n", "", $previewFormat). That should get previews for non-logged in users.
    • To get comments for logged in users working, change line 153 from if (eml != '') { to if (eml) {.

    It would be nice to get those fixes into a released version…

    Sends happygiraffe the beverage of their choice, cheers for the two fixes, exactly what I was looking for.

    Plugin updating is a nightmare on WP and this codex, while useful, is ungainly, took me a long to to find the fix. hope someone cleans this place up soon, it’s a jungle in here

    Thanks happygiraffe, your fixes worked for me too.

    Worked for me three. (WordPress 2.5) Thank you!

    I still can’t get it to work in 2.5 with those modifications. I’m using a custom theme, so I’ve placed the live_preview() function in the comments template, and this appears when I view source:

    <script src="https://storystats.com/?live-comment-preview.js" type="text/javascript"></script><div id="commentPreview"></div>

    … but it stays empty when I type. ??

    Yes, I have the exact same problem as sillybean. I’m using 2.5, see the exact save tags in the html source as sillybean (except my own URL in place of storystats.com, of course), and absolutely nothing happens when I type. Any help?

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘live-comment-preview doesn’t work’ is closed to new replies.