WordPress.org

Ready to get started?Download WordPress

Forums

comment preview (7 posts)

  1. vicar
    Member
    Posted 7 years ago #

    i have just tried to download several plug-ins to allow comment previews from the wordpress plug-in directory....None of them works. I'm betting there is something that I'm missing.

    I've done other plug-ins and had no problems. I am downloading, opening, then uploading to the server. I activate the plug-in on the admin panel, but nothing happens...there is no preview.

    any ideas?

  2. yosemite
    Member
    Posted 7 years ago #

    Usually you are required to make a 'call' to the plugins functions from within your page. This requires editing your comments.php (in my case). I looked for the <form> section and right after it I added (for example) <?php live_preview() ?> , your plugin's function may be named differently.

  3. vicar
    Member
    Posted 7 years ago #

    Thank you! I had not done this...so no wonder it couldn't find the Live Preview plug-in.

    Now, I've tried adding that line a number of different places in my comments.php file and, alas, nothing happens (still).

    I am using the default, Kubrick, template. I don't see a specific <form> section, so have tried moving the line around here and there. Anything else I should look for?

    I'd be happy to send the lines of code if that would help, but I think it's the standard.

    Thanks again.

  4. yosemite
    Member
    Posted 7 years ago #

    Do a 'view source' of your page and see if the <head> section has a <script type="text/javascript" src="http://www.yourdomain.com/wp-content/plugins/live-comment-preview/live-comment-preview.js"></script>
    statement in it (or a similar statement calling your comment preview).

  5. vicar
    Member
    Posted 7 years ago #

    I received a reply by email from the maker of the plug-in for LivePreview saying that I "haven't upload the javascript file (livepreview.js) into the plugins directory."

    I see that file on the server when I look and I see "Comment Live Preview" activated on the Plug-ins management page of my dashboard.

    Does anyone know if there is something else I am supposed to activate?

    No matter where I place the text <?php live_preview() ?> in my comments.php file, nothing happens.

    Please advise.

    Many thanks!

  6. vicar
    Member
    Posted 7 years ago #

    I just tried taking Live Preview off of the server and reloading it, reactivating it as plug-in, and adding the line of text to comments.php.

    Nothing.

    Any ideas? I just don't get it.

    Thanks much.

  7. vicar
    Member
    Posted 7 years ago #

    Okay...I just deactivated Live Preview and activated Ajaxified Preview. It works.

    Would still like to know why the other wouldn't work...user error no doubt! :D

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags