2 require_once('admin.php');
4 $title = __('Discussion Settings');
5 $parent_file = 'options-general.php';
7 include('admin-header.php');
11 <h2><?php _e('Discussion Settings') ?></h2>
12 <form method="post" action="options.php">
13 <?php wp_nonce_field('update-options') ?>
14 <table class="form-table">
16 <th scope="row"><?php _e('Default article settings') ?></th>
18 <label for="default_pingback_flag">
19 <input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_option('default_pingback_flag')); ?> />
20 <?php _e('Attempt to notify any blogs linked to from the article (slows down posting.)') ?></label>
22 <label for="default_ping_status">
23 <input name="default_ping_status" type="checkbox" id="default_ping_status" value="open" <?php checked('open', get_option('default_ping_status')); ?> />
24 <?php _e('Allow link notifications from other blogs (pingbacks and trackbacks.)') ?></label>
26 <label for="default_comment_status">
27 <input name="default_comment_status" type="checkbox" id="default_comment_status" value="open" <?php checked('open', get_option('default_comment_status')); ?> />
28 <?php _e('Allow people to post comments on the article') ?></label>
30 <small><em><?php echo '(' . __('These settings may be overridden for individual articles.') . ')'; ?></em></small>
34 <th scope="row"><?php _e('E-mail me whenever') ?></th>
36 <label for="comments_notify">
37 <input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked('1', get_option('comments_notify')); ?> />
38 <?php _e('Anyone posts a comment') ?> </label>
40 <label for="moderation_notify">
41 <input name="moderation_notify" type="checkbox" id="moderation_notify" value="1" <?php checked('1', get_option('moderation_notify')); ?> />
42 <?php _e('A comment is held for moderation') ?> </label>
46 <th scope="row"><?php _e('Before a comment appears') ?></th>
48 <label for="comment_moderation">
49 <input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked('1', get_option('comment_moderation')); ?> />
50 <?php _e('An administrator must always approve the comment') ?> </label>
52 <label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked('1', get_option('require_name_email')); ?> /> <?php _e('Comment author must fill out name and e-mail') ?></label>
54 <label for="comment_whitelist"><input type="checkbox" name="comment_whitelist" id="comment_whitelist" value="1" <?php checked('1', get_option('comment_whitelist')); ?> /> <?php _e('Comment author must have a previously approved comment') ?></label>
58 <th scope="row"><?php _e('Comment Moderation') ?></th>
60 <p><?php printf(__('Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="text" id="comment_max_links" size="3" value="' . get_option('comment_max_links'). '" />' ) ?></p>
62 <p><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP per line. It will match inside words, so "press" will match "WordPress".') ?></p>
64 <textarea name="moderation_keys" cols="60" rows="10" id="moderation_keys" style="width: 98%; font-size: 12px;" class="code"><?php form_option('moderation_keys'); ?></textarea>
69 <th scope="row"><?php _e('Comment Blacklist') ?></th>
71 <p><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so "press" will match "WordPress".') ?></p>
73 <textarea name="blacklist_keys" cols="60" rows="10" id="blacklist_keys" style="width: 98%; font-size: 12px;" class="code"><?php form_option('blacklist_keys'); ?></textarea>
79 <h3><?php _e('Avatars') ?></h3>
81 <p><?php _e('By default WordPress uses <a href="http://gravatar.com/">Gravatars</a> — short for Globally Recognized Avatars — for the pictures that show up next to comments. Plugins may override this.'); ?></p>
83 <?php // the above would be a good place to link to codex documentation on the gravatar functions, for putting it in themes. anything like that? ?>
85 <table class="form-table">
87 <th scope="row"><?php _e('Avatar display') ?></th>
90 $yesorno = array(0 => __("Don’t show Avatars"), 1 => __('Show Avatars'));
91 foreach ( $yesorno as $key => $value) {
92 $selected = (get_option('show_avatars') == $key) ? 'checked="checked"' : '';
93 echo "\n\t<label><input type='radio' name='show_avatars' value='$key' $selected> $value</label><br />";
99 <th scope="row"><?php _e('Maximum Rating') ?></th>
103 $ratings = array( 'G' => __('G — Suitable for all audiences'), 'PG' => __('PG — Possibly offensive, usually for audiences 13 and above'), 'R' => __('R — Intended for adult audiences above 17'), 'X' => __('X — Even more mature than above'));
104 foreach ($ratings as $key => $rating) :
105 $selected = (get_option('avatar_rating') == $key) ? 'checked="checked"' : '';
106 echo "\n\t<label><input type='radio' name='avatar_rating' value='$key' $selected> $rating</label><br />";
117 <input type="hidden" name="action" value="update" />
118 <input type="hidden" name="page_options" value="default_pingback_flag,default_ping_status,default_comment_status,comments_notify,moderation_notify,comment_moderation,require_name_email,comment_whitelist,comment_max_links,moderation_keys,blacklist_keys,show_avatars,avatar_rating" />
119 <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" />
124 <?php include('./admin-footer.php'); ?>