Results 1 to 2 of 2

Thread: Extra comment Field ( drop down list) Guys use your brain

  1. #1
    Thread Starter
    Member hazara's Avatar
    Join Date
    Jan 2011
    Thanked 9 Times in 8 Posts

    Question Extra comment Field ( drop down list) Guys use your brain

    Well guys i have been trying to create a custom field for comments What i want is to create a drop down list, where users ( i suppose user can comment without registration) select an option from drop down Lets say option called Recommend and having 3 options, Yes, NO, Maybe while posting a comment.

    I have tired many plugin but it doesnt really work....

    The Plan: lets make a custom field admin>classipress>custom field > but do not include it in ad new form, instead call for this specific field (suppose drop down) in theme-comment.php

    what i am asking how to call for specific field and will it be saved in db ? the code below display all custom field calls for all drop down in add new form

    <select name="<?php esc_attr_e($result->field_name); ?>" id="<?php esc_attr_e($result->field_name); ?>" class="dropdownlist <?php if ($result->field_req) echo 'required' ?>">
    <option value="">-- <?php _e('Select', 'appthemes') ?> --</option>
    $options = explode( ',', $result->field_values );

    foreach ( $options as $option ) {
    <option value="<?php esc_attr_e($option); ?>"><?php esc_attr_e($option); ?></option>

    once the field input is saved in db it can be called easily any help ? or comment ?

  2. #2
    Veteran barukar's Avatar
    Join Date
    Sep 2010
    Brasil, São Paulo, SP
    Thanked 742 Times in 623 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Projects: ClassiNoiva - Classimóveis - vocênoenem - i50 - Clube DETRAN

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [MOD NEEDED] Need a drop-down list to adapt to another drop down list (Region/State)
    By retorit in forum ClassiPress General Discussion
    Replies: 3
    Last Post: October 11th, 2015, 03:03 PM
  2. Currency in drop down list
    By Andre in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: January 21st, 2011, 07:12 PM
  3. Add a extra field to the search option
    By dschn1978 in forum ClassiPress General Discussion
    Replies: 1
    Last Post: October 13th, 2010, 08:32 AM