WordPress.org

Ready to get started?Download WordPress

Forums

Adding an extra field to the comments (21 posts)

  1. debateso
    Member
    Posted 4 years ago #

    I'm looking for a tutorial or a plugin that will add an extra field to the comments page. For example, the current comments form after every post looks like this:
    Name __________
    Email ___________
    Website _________
    Comments _________

    I would like to add extra/custom fields to make the comments form look like this:
    Name _____________
    Email _____________
    Website ______________
    Country _____________
    Age ______________
    Comments ________________

    This would then be stored in the database and displayed after the comment is submitted.

    Could somebody point me in the right direction please? Thanks!

  2. m_abdelfattah
    Member
    Posted 4 years ago #

    I've been searching for the same question 3 days ago and can't find any solution !! did you ?

  3. debateso
    Member
    Posted 4 years ago #

    nope, still searching for a plugin. wordpress hasn't responded to my idea submission either.

    only option is to hack the wordpress comments php file and modify the database to add an extra field, but i suspect i may break something accidentally if i do that... sigh.

  4. djSonline
    Member
    Posted 4 years ago #

    well,
    here is the solution to what you require.
    http://www.ideashower.com/files/scripts/extra-comment-fields.zip
    this is plugin which by which you can add as many extra fields in comments form as you want.
    and can just retrieve values by appending 'extra' to the name provided.
    i.e.
    echo esc_attr($comment_author);
    echo esc_attr($comment_extra_age);

    Hope it works for you. (works fine for me.)

    Aslam Shahid

  5. Heerefishyfish
    Member
    Posted 4 years ago #

    Yes but where do you write

    echo esc_attr($comment_extra_age); ?? I can't figure that part out....

  6. Crucialitis
    Member
    Posted 4 years ago #

  7. vterpe
    Member
    Posted 4 years ago #

    I tried this plug-in under 2.9.2 and it doesn't work. No fields are added to the comments table.

  8. WebTechGlobal
    Member
    Posted 4 years ago #

    I think this is the solution

    http://wordpress.org/support/topic/345554

    Comment meta, like custom fields

  9. rwilki
    Member
    Posted 4 years ago #

    @WebTechGlobal, not the solution that people are asking for... debateso is asking for extra fields in the comments form not a rating system for comments. it turns out that a lot of people are asking about this, and no one seems to know how...

  10. badnews
    Member
    Posted 4 years ago #

    http://wordpress.org/extend/plugins/hikari-title-comments/

    This is what I used for a similar purpose.

    You would probably need to modify the code a bit for your needs. After months of searching, this is the only thing I have been able to find that actually works.

  11. rwilki
    Member
    Posted 4 years ago #

    thanks badnews... i'm going to try this!

  12. rwilki
    Member
    Posted 4 years ago #

    can't even figure out where to edit the code based on hard to understand directions...

  13. badnews
    Member
    Posted 4 years ago #

    Hey I found it fairly simple to modify... what exactly are you having a hard time with?

  14. anabelle
    Member
    Posted 3 years ago #

    Isn't this supposed to be easy now that wordpress has comment meta in the database and correspondent hooks?

  15. solace10
    Member
    Posted 3 years ago #

    so - has anyone figured out how to get comment extra fields to work?

    I just want to add one extra field that is displayed in admin (and the admin email) before being approved.

    I've tried so many solutions and there's appears to be nothing that will work out of the box.

    The extra-comment-fields plugin is broken.

  16. webwitch
    Member
    Posted 3 years ago #

    Yes, I would like to be able to add a custom comment field too. Have looked at so many forum posts but no real answer.

    I simply want to have a comment form like this:

    Name: Joe Bloggs
    Email: jbloggs@bloggs.com
    Parent: Yes or No

    I don't even need the website field. Any ideas, anyone?

  17. solace10
    Member
    Posted 3 years ago #

    Hi there

    I searched high and low and could only find the ideashower plugin - which is hopelessly out of date for 3.01.

    I ended up hiring a developer to get one sorted for me. Now I have a custom field that works great on the comments form and that shows up on the admin and in the notification email. Overall it works well.

    It did cost me to get this sorted, and it would be nice to recover some of that cost, so I'd be happy to share the code (and developer contact for any additional mods you might need) with anyone who wants it for US $15 payable by paypal.

    If you're interested, you can reach me on: solaceten at gmail.com

  18. solace10
    Member
    Posted 3 years ago #

    oops - the forum is doing weird things!
    Sorry about the double post

  19. solace10
    Member
    Posted 3 years ago #

    oops - the forum is doing weird things!
    Sorry about the double post

  20. solace10
    Member
    Posted 3 years ago #

    This does work as testified by another user who recently contacted me.

    Thanks for the files!

    ...I had it all up and running in 20 minutes!

    Thank you very much for the explanation and help.

    Everything described in the readme file cleared everything and made it easy to install

    Get in touch if you'd like more info and screenshots
    solaceten AT gmail.com

  21. Nexus24
    Member
    Posted 3 years ago #

    The following is a basic tutorial, but it doesn't explain how to add the comment meta data to the admin Edit Comment page - just how to add the fields to the comment form and how to display the data:

    http://www.soapboxdave.com/2010/02/using-wordpress-comment-meta/

  22. solace10
    Member
    Posted 3 years ago #

    Trust me - I've tried everything and in the end came up with the above solution - but good luck!

  23. solace10
    Member
    Posted 3 years ago #

    Hi everyone - I have added some more functionality to the plug-in and created a page with screen shots for you to see (and the site to test the demo:

    http://solaceten.info/extra-comment-fields-plugin

    Regards
    Solace

Topic Closed

This topic has been closed to new replies.

About this Topic