Plugin / Ajax Comment Preview

Michael D Adams

Frequently Asked Questions (FAQ)

Go to the Settings (called “Options” in WordPress 2.6 ) -> Ajax Comment Preview admin panel. From there you’ll be able to specify the markup used to display the comment being previewed. The markup you enter will depend on what theme your site is using. If you’re using Kubrick (the default theme for WordPress), the settings that come installed with the plugin will work fine. For other themes, I suggest the following. Go to the permalink page for a post on your site that has a few comments. In your web browser, view the Page Source of that page. You can usually do this by finding that option in your browsers Edit or View menu or in the menu that pops up when you right click on the page. Find the section of code that corresponds to one of the comments. Copy it into your clipboard. Paste that code into the big text box in the Options -> Ajax Comment Preview admin panel. Replace the text specific to that comment (author name, time, comment text, …) with the plugin’s special tags (%author%, %date%, %content%, …). Most themes’ code has all the comments inside one big
    ,
      , or
      tag. You’ll probably need to put your preview markup inside that “parent” tag too. Make sure it has the same class(es) as the tag in your theme’s code.
Remember, you have to have WordPress version 2.6 or higher to use this plugin. If you do: Go to the plugin’s Settings page. Copy the HTML from the big text box to a text file (not a Word document) and save it. Now you have a backup. Delete everything in the big text box. Type “TEST” (without the quote marks) in the big text box, then hit the “Update” button. Go back to your blog, type in a comment and hit the preview button. If you see TEST come back, there’s probably a mistake in the HTML you entered in the big text box. Double check it and try again.
This plugin has two files: ajax-comment-preview.php and ajax-comment-preview.js . Did you upload them both? (You did if you were a good blogger and followed the directions.) Make sure both of those files are on your webserver and in the same directory.
Are you serving your blog’s webpages as XML documents (for example with the MIME type application/xhtml+xml)? If so (or if you don’t know what that means), try putting xmlns=”http://www.w3.org/1999/xhtml” inside the very first HTML tag of your comment template. So if you had:
  • as the first line in your comment template, change it to
  • in the big text box.
  • … Can you tell if there are any JavaScript errors when you load a post on your blog or when you click the preview button? Other than that, nope, I’m out of ideas.

    Ratings

    4.3
    3 reviews

    Rating breakdown

    Details Information

    Version

    2.4

    First Released

    26 Sep, 2006

    Total Downloads

    35,703

    Wordpress Version

    3.1 or higher

    Tested up to:

    3.3.2

    Require PHP Version:

    -

    Tags

    Contributors

    Languages

    The plugin hasn't been transalated in any language other than English.

    DIRECTORY DISCLAIMER

    The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

    The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

    Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

    While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

    wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

    Keep Leading Your Followers!
    Share it for them.