Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/03/2008 06:16:23 AM (18 years ago)
Author:
sambauers
Message:

Built-in Avatar/Gravatar support using pluggable function.

Clean up layout/CSS for post author display.

Properly clear infobox in topic and stop "strikethrough" effect in IE.

Show email address on profile to 'manage_users' privilege holders. Fixes #792

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-admin/options-general.php

    r1174 r1198  
    6767$selected[bb_get_option('mod_rewrite')] = ' selected="selected"';
    6868?>
    69                 <option value="0"<?php echo $selected[0]; ?>><?php _e('None') ?>&nbsp;&nbsp;&nbsp;.../forums.php?id=1</option>
    70                 <option value="1"<?php echo $selected[1]; ?>><?php _e('Numeric') ?>&nbsp;&nbsp;&nbsp;.../forums/1</option>
    71                 <option value="slugs"<?php echo $selected['slugs']; ?>><?php _e('Name based') ?>&nbsp;&nbsp;&nbsp;.../forums/first-forum</option>
     69                <option value="0"<?php echo $selected[0]; ?>><?php _e('None'); ?>&nbsp;&nbsp;&nbsp;.../forums.php?id=1</option>
     70                <option value="1"<?php echo $selected[1]; ?>><?php _e('Numeric'); ?>&nbsp;&nbsp;&nbsp;.../forums/1</option>
     71                <option value="slugs"<?php echo $selected['slugs']; ?>><?php _e('Name based'); ?>&nbsp;&nbsp;&nbsp;.../forums/first-forum</option>
     72<?php
     73unset($selected);
     74?>
    7275            </select>
    7376        </div>
     
    122125    </fieldset>
    123126    <fieldset>
     127        <legend><?php _e('Avatars'); ?></legend>
     128        <p>
     129            <?php _e('bbPress includes built-in support for <a href="http://gravatar.com/">Gravatars</a>, you can enable this feature here.'); ?>
     130        </p>
     131        <label for="avatars_show">
     132            <?php _e('Show avatars:') ?>
     133        </label>
     134        <div>
     135<?php
     136$checked = array();
     137$checked[bb_get_option('avatars_show')] = ' checked="checked"';
     138?>
     139            <input type="checkbox" class="checkbox" name="avatars_show" id="avatars_show" value="1"<?php echo $checked[1]; ?> />
     140<?php
     141unset($checked);
     142?>
     143        </div>
     144        <label for="avatars_rating">
     145            <?php _e('Gravatar maximum rating:'); ?>
     146        </label>
     147        <div>
     148            <select name="avatars_rating" id="avatars_rating">
     149<?php
     150$selected = array();
     151$selected[bb_get_option('avatars_rating')] = ' selected="selected"';
     152?>
     153                <option value="0"<?php echo $selected[0]; ?>><?php _e('None'); ?></option>
     154                <option value="X"<?php echo $selected['X']; ?>><?php _e('X'); ?></option>
     155                <option value="R"<?php echo $selected['R']; ?>><?php _e('R'); ?></option>
     156                <option value="PG"<?php echo $selected['PG']; ?>><?php _e('PG'); ?></option>
     157                <option value="G"<?php echo $selected['G']; ?>><?php _e('G'); ?></option>
     158<?php
     159unset($selected);
     160?>
     161            </select>
     162            <p>
     163                <img src="http://site.gravatar.com/images/gravatars/ratings/3.gif" alt="Rated X" style="height:30px; width:30px; float:left; margin-right:10px;" />
     164                <?php _e('X rated gravatars may contain hardcore sexual imagery or extremely disturbing violence.'); ?>
     165            </p>
     166            <p>
     167                <img src="http://site.gravatar.com/images/gravatars/ratings/2.gif" alt="Rated R" style="height:30px; width:30px; float:left; margin-right:10px;" />
     168                <?php _e('R rated gravatars may contain such things as harsh profanity, intense violence, nudity, or hard drug use.'); ?>
     169            </p>
     170            <p>
     171                <img src="http://site.gravatar.com/images/gravatars/ratings/1.gif" alt="Rated PG" style="height:30px; width:30px; float:left; margin-right:10px;" />
     172                <?php _e('PG rated gravatars may contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence.'); ?>
     173            </p>
     174            <p>
     175                <img src="http://site.gravatar.com/images/gravatars/ratings/0.gif" alt="Rated G" style="height:30px; width:30px; float:left; margin-right:10px;" />
     176                <?php _e('A G rated gravatar is suitable for display on all websites with any audience type.'); ?>
     177            </p>
     178        </div>
     179    </fieldset>
     180    <fieldset>
    124181        <?php bb_nonce_field( 'options-general-update' ); ?>
    125182        <input type="hidden" name="action" id="action" value="update" />
Note: See TracChangeset for help on using the changeset viewer.