• I looked through the forums and did some Google searches and I didn’t really find the answer to my question.

    I’m working on a new design using WordPress as a CMS. There is only one log entry and it is set as the main page, and the comments are the more important part. What I want to do is add a category field for the comments. The visitor can select a different category for the comment, so that when the page is loaded, I can display the comments from different categories in different ways.

    I’ve been looking at the PHP for the comment functions, but I’m not PHP savvy enough to muck around with it. I’m afraid I’ll break something.

    So my basic question is:

    If I add a drop-down menu on the comments form, what changes to the PHP functions do I need to make to process another variable? How do I take the category they choose and return it as a variable in the comment loop?

    If I’m being unclear, please say so and I’ll attempt to clarify.

    Thanks,
    Brian

Viewing 9 replies - 1 through 9 (of 9 total)
  • There is only one log entry and it is set as the main page, and the comments are the more important part. … The visitor can select a different category for the comment, so that when the page is loaded, I can display the comments from different categories in different ways.

    Could you give a more concrete example of the purpose for these user comments? It sounds like you want a forum-like functionality for your site.

    This forum uses the open source bbpress, which is a sister app of WordPress. bbPress has built-in tags capability, which could be used as a substitute for the categories you mentioned.

    For what you’re asking, WP isn’t really isn’t designed to do that. It’s comments processing is only designed to accept a few fields (name, email, website, and the actual comment). To add a new field would likely require modifying core code along with adding a new database table.

    Rather than having users select a category on the comment form, how about asking users to select first a category for their comment, and then direct them to a comment form after they select the category? This way, you can use a generic comment form for all categories, and query the comments based on the category. You can then use a combination of CSS styles and conditional statements to display the comments in different ways. Anyway, just an idea.

    Not sure if this is helpful, but there is a new plugin being developed by Andrew Rickmann of WPFun.co.uk called Fun with In-Context Comments (link to WLTC since it’s being entered for the plugin competition) which does allow users to ‘categorise’ their comments (in a way).

    Hey how can I remove a custom field key from the database? Is their a plugin that helpsmanage custom feilds. How can I sent a custom feild using XML feeds.

    I would also like to turn of the f$%^&U^# auto save or at least change itrs settings so there is no more then three last posts…

    Any know how change or delete de prefix “https://” in Website comments field, i like use like phone field, im try with “Extra Comment Fields” plugin but dont works.
    I need edit the comment-template.php file?

    hi,

    I have been juggling with this question for close to a year now. I think comments are a key aspect of blogs and it will be great if someone can help improve this area and offer more plugins, and help me! : )

    Or am I getting basic organization wrong?

    Basically I am organizing my blog in three languages and I am doing so by routing posts to categories such as: Language 1, Language 2, Language 3, Language 1 Sports, Language 2 Sports, Language 3 Sports, Language 1 Business, Language 2 Business, Language 3 Business … etc.

    Presentation is not a problem as I can Show posts under separate categories on separate pages.

    Presenting comments for different languages is what poses the problem though.

    Recent comments in categories:
    Language 1
    Language 1 Sports
    Language 1 Business

    all need to come together, while excluding others.

    Jodies plugin allows this, but just once (I need to run it thrice, or more times at will. installing the plugin thrice!! can’t be the way to go)
    Its also quite a complicated plugin with extensive features. I just need a simple recent comment categorization option.

    If someone can simplify Jodies plugin, then its all sorted.

    Help please! : ) thanks.

    my users after login can see the administration screen (Tablero or DessBoard), but I want to send directly to the main screen of the Blog. How do I send them directly to the blog and not the management screen?, please Helpme i need redirect meabe with a code or someting

    Or you just use the Category List Plugin. Could you explain the purpose of doing that.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Custom Comment Fields’ is closed to new replies.