Plugin Directory

Changeset 502538


Ignore:
Timestamp:
02/09/2012 06:27:17 AM (14 years ago)
Author:
SimonaIlie
Message:

version 1.7 - show in admin comment edit page the values filled in by users on fields with custom html code

Location:
comment-extra-field/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • comment-extra-field/trunk/comment-extra-fields.php

    r502223 r502538  
    33Plugin Name: Comment Extra Fields
    44Plugin URI: http://wordpress.org/extend/plugins/comment-extra-field/
    5 Description: Allows administrator to add custom fields to comment form. On admin side let you update/delete the extra info. Extra features: show fields in comment form on custom post types; show fields in comment form only for guests, only for logged in users or for everyone.
    6 Version: 1.6
     5Description: Allows administrator to add custom fields to comment form. On admin side let you update/delete the extra info.
     6Version: 1.7
    77Author: Simona Ilie
    88Author URI:
     
    414414    $c_id       = $c->comment_ID;
    415415    $fields     = cef_load_comment_extra_fields($c_id);
     416   
    416417    $fields_def = cef_list_comment_extra_fields();
     418   
    417419    foreach($fields_def as $field)
    418420    {
     421        $html_code      = get_option(CEF_OPTION_PREFIX . $field['id'] . CEF_POSTFIX_HTML_CODE);
     422        if(!is_null($html_code) && !empty($html_code)) {
     423            echo "User value: " . $fields[$field['id']];
     424        }
    419425        if($field['type'] != cef_translate_type(CEF_INPUT_FILE))
    420426            echo cef_parse_html_code($field['id'], $field['label'], $field['type'], $fields[$field['id']]);
  • comment-extra-field/trunk/readme.txt

    r502223 r502538  
    55Requires at least: 3.2.1
    66Tested up to: 3.3.1
    7 Stable tag: 1.6
     7Stable tag: 1.7
    88 
    99Add extra fields to default Wordpress comment form
     
    8989* added new field Who to show comment fields for all users or only guests or only logged in users.
    9090
     91= 1.7 =
     92
     93* for fields defined with custom HTML code show in Admin comment edit page the value filled in by users on front site.
     94
    9195== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.