Changeset 502538
- Timestamp:
- 02/09/2012 06:27:17 AM (14 years ago)
- Location:
- comment-extra-field/trunk
- Files:
-
- 2 edited
-
comment-extra-fields.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
comment-extra-field/trunk/comment-extra-fields.php
r502223 r502538 3 3 Plugin Name: Comment Extra Fields 4 4 Plugin 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. 65 Description: Allows administrator to add custom fields to comment form. On admin side let you update/delete the extra info. 6 Version: 1.7 7 7 Author: Simona Ilie 8 8 Author URI: … … 414 414 $c_id = $c->comment_ID; 415 415 $fields = cef_load_comment_extra_fields($c_id); 416 416 417 $fields_def = cef_list_comment_extra_fields(); 418 417 419 foreach($fields_def as $field) 418 420 { 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 } 419 425 if($field['type'] != cef_translate_type(CEF_INPUT_FILE)) 420 426 echo cef_parse_html_code($field['id'], $field['label'], $field['type'], $fields[$field['id']]); -
comment-extra-field/trunk/readme.txt
r502223 r502538 5 5 Requires at least: 3.2.1 6 6 Tested up to: 3.3.1 7 Stable tag: 1. 67 Stable tag: 1.7 8 8 9 9 Add extra fields to default Wordpress comment form … … 89 89 * added new field Who to show comment fields for all users or only guests or only logged in users. 90 90 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 91 95 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.