• As mentioned in THIS thread.

    Sorry, I allowed the domain where I uploaded the zip file to to lapse, and had someone contact me about not being able to download it today, so figured I’d come back and repost it (tried to do so in my original thread, but it was closed).

    So here’s the updated, WP 3.0 compliant version of the Extra Comment Fields plugin by Nate Weiner. Enjoy!

Viewing 5 replies - 16 through 20 (of 20 total)
  • I understand that is is frustrating, but I honestly don’t know what else to do to solve your problem. I’ve installed and written custom code for this plugin on two different sites and both times it’s worked like a dream. I’m really sorry Mike. ??
    Maybe someone else more knowledgeable will stumble across this thread and point out something we’ve both been missing…

    Hopefully, I’m not sue what’s going on with it. I’ve tried reinstalling the plugin and every step except removing the wp-comments table (I have important comments I can’t lose). I will continue to try to figure it out but for now I have too many other issues on the site to worry about this one. I’m just going to link the author name for now until I can figure this out. I really appreciate all of your help so far, thank you for your patience.

    If you get an error saying depricated php function, don’t panic it will still work. However if you do want to fix it, at line 285
    replace the “ereg” with a preg_match

    //  if (ereg('^([a-zA-Z0-9_-])+$', $_POST['new_var'])) {
        if (preg_match('/^([a-zA-Z0-9_-])+$/', $_POST['new_var'])) {

    Hey folks

    I’ve reworked the old plugin and updated it with comprehensive instructions and documentation.

    It’s very easy to install and get going to add new comment form fields.
    I’ve modelled it around the twentyten theme, however, it’s been tested on many other themes too. Works with 2.92 – and everything up to the current version (3.03 at time of writing)

    I’ve also added some additional features:
    – ability to show or hide additional comment fields on posts
    – ability to show extra comment fields in the admin email
    – and more!

    I’m not giving it away – it’s just $15 – which goes towards my time supporting and maintaining it. I’m working on a revamped version for 2011.

    Meanwhile, the current version works just fine. If you’d like to take a look, go here: https://www.solaceten.info/extra-comment-fields-plugin

    Best regards
    Solace

    Mike, this is probably way too late for you, but for anyone else who encounters your problem as I just have, here’s how to fix it:

    In your code, find the line that is fetching the comments. It will look similar to this:
    $comments = get_comments("post_id=$post_id");

    Now, right after this line, before you actually do anything with the comments, add this line:
    $comments = ecf_getComments( $comments, $post_id );

    Just one note here, in the second block of code, the second parameter $post_id is a variable that I previously defined in my code. You will have to change that in your code to reflect whatever the id of your actual post is.

    If you’re inside The Loop, that’s easy enough. If not, here’s the code that I used to get the ID for the current post outside of The Loop:

    global $wp_query;
    $post_id = $wp_query->post->ID;

    Hope this helps someone.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘3.0 Compliant Version of the Extra Comment Fields Plugin’ is closed to new replies.