WordPress.org

Ready to get started?Download WordPress

Forums

Changing the required fields on a comment (5 posts)

  1. adeking
    Member
    Posted 7 years ago #

    Hi,

    When users click "comment" on my weblog posts they are presented with the default fields - Name, e-mail, website and comment.

    This isnt relevant for my audience. Is there anyway to change these fields to Name | School | Country | Comment?

    If so, does it require database changes, or can I simply change the lables next to the text boxes?

    UPDATE |||||||||||||||||||||||

    Just realised that when the comments are shown, I would like the school and country to show as well as the name so I presume the PHP will need to be altered. Thanks
    Thanks

    Adrian

  2. pizdin_dim
    Member
    Posted 7 years ago #

    "If so, does it require database changes, or can I simply change the lables next to the text boxes?"

    Yes and yes. It depends on whether you can live with the potential confusion caused by referring email => school and website => country in the admin section and the comments table. As a bare minimum, you'll have to change the admin comments section to reflect the changed field names.

  3. adeking
    Member
    Posted 7 years ago #

    Hi Pizdin,

    thanks for your response. Can you elaborate on your final comment please?

    Also can you refer me to any documentation that might help with this change. I need to be able to display the school and country in the comments.

    Thanks again

    ade

  4. adeking
    Member
    Posted 7 years ago #

    OK!

    I have settled for changing the names of the lables on the form and I have managed to get the comments to spit out the relevant information when you view comments, however for the URL field (which is now country) it is automatically putting http:// in front of the response.

    I have checked the database and cant see anywhere that it states this and I have also checked the theme files.

    Does anyone know how to take off this http://??????

    Thanks

  5. adeking
    Member
    Posted 7 years ago #

    Hi,

    More issues - If the user to comment is logged in as an administrator I do not want it to show the school country etc. Just the name.

    I am hoping to also change it so that a comment by an administrator is shaded and the rest are not.

    Please see my blog for clarification - http://www.macmillan-academy.org.uk/blog_connect/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.