Changeset 3026
- Timestamp:
- 06/10/2010 04:51:39 PM (14 years ago)
- Location:
- branches/1.2/bp-core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-core/bp-core-admin.php
r2726 r3026 108 108 <p><?php _e( 'For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their email address', 'buddypress' ) ?></p> 109 109 110 <label><input name="bp-admin[user-avatar-default]" id="avatar_mystery" value="mystery" type="radio" <?php if ( get_site_option( 'user-avatar-default' ) == 'mystery' ) : ?> checked="checked"<?php endif; ?> /> <img alt="" src="http://www.gravatar.com/avatar/<?php md5( $ud->user_email) ?>&?s=32&d=<?php echo BP_PLUGIN_URL . '/bp-core/images/mystery-man.jpg' ?>&r=PG&forcedefault=1" class="avatar avatar-32" height="32" width="32"> <?php _e( 'Mystery Man', 'buddypress' ) ?></label><br>111 <label><input name="bp-admin[user-avatar-default]" id="avatar_identicon" value="identicon" type="radio" <?php if ( get_site_option( 'user-avatar-default' ) == 'identicon' ) : ?> checked="checked"<?php endif; ?> /> <img alt="" src="http://www.gravatar.com/avatar/<?php md5( $ud->user_email) ?>?s=32&d=identicon&r=PG&forcedefault=1" class="avatar avatar-32" height="32" width="32"> <?php _e( 'Identicon (Generated)', 'buddypress' ) ?></label><br>112 <label><input name="bp-admin[user-avatar-default]" id="avatar_wavatar" value="wavatar" type="radio" <?php if ( get_site_option( 'user-avatar-default' ) == 'wavatar' ) : ?> checked="checked"<?php endif; ?> /> <img alt="" src="http://www.gravatar.com/avatar/<?php md5( $ud->user_email) ?>?s=32&d=wavatar&r=PG&forcedefault=1" class="avatar avatar-32" height="32" width="32"> <?php _e( 'Wavatar (Generated)', 'buddypress' ) ?> </label><br>113 <label><input name="bp-admin[user-avatar-default]" id="avatar_monsterid" value="monsterid" type="radio" <?php if ( get_site_option( 'user-avatar-default' ) == 'monsterid' ) : ?> checked="checked"<?php endif; ?> /> <img alt="" src="http://www.gravatar.com/avatar/<?php md5( $ud->user_email) ?>?s=32&d=monsterid&r=PG&forcedefault=1" class="avatar avatar-32" height="32" width="32"> <?php _e( 'MonsterID (Generated)', 'buddypress' ) ?></label>110 <label><input name="bp-admin[user-avatar-default]" id="avatar_mystery" value="mystery" type="radio" <?php if ( get_site_option( 'user-avatar-default' ) == 'mystery' ) : ?> checked="checked"<?php endif; ?> /> <img alt="" src="http://www.gravatar.com/avatar/<?php md5( strtolower( $ud->user_email ) ) ?>&?s=32&d=<?php echo BP_PLUGIN_URL . '/bp-core/images/mystery-man.jpg' ?>&r=PG&forcedefault=1" class="avatar avatar-32" height="32" width="32"> <?php _e( 'Mystery Man', 'buddypress' ) ?></label><br> 111 <label><input name="bp-admin[user-avatar-default]" id="avatar_identicon" value="identicon" type="radio" <?php if ( get_site_option( 'user-avatar-default' ) == 'identicon' ) : ?> checked="checked"<?php endif; ?> /> <img alt="" src="http://www.gravatar.com/avatar/<?php md5( strtolower( $ud->user_email ) ) ?>?s=32&d=identicon&r=PG&forcedefault=1" class="avatar avatar-32" height="32" width="32"> <?php _e( 'Identicon (Generated)', 'buddypress' ) ?></label><br> 112 <label><input name="bp-admin[user-avatar-default]" id="avatar_wavatar" value="wavatar" type="radio" <?php if ( get_site_option( 'user-avatar-default' ) == 'wavatar' ) : ?> checked="checked"<?php endif; ?> /> <img alt="" src="http://www.gravatar.com/avatar/<?php md5( strtolower( $ud->user_email ) ) ?>?s=32&d=wavatar&r=PG&forcedefault=1" class="avatar avatar-32" height="32" width="32"> <?php _e( 'Wavatar (Generated)', 'buddypress' ) ?> </label><br> 113 <label><input name="bp-admin[user-avatar-default]" id="avatar_monsterid" value="monsterid" type="radio" <?php if ( get_site_option( 'user-avatar-default' ) == 'monsterid' ) : ?> checked="checked"<?php endif; ?> /> <img alt="" src="http://www.gravatar.com/avatar/<?php md5( strtolower( $ud->user_email ) ) ?>?s=32&d=monsterid&r=PG&forcedefault=1" class="avatar avatar-32" height="32" width="32"> <?php _e( 'MonsterID (Generated)', 'buddypress' ) ?></label> 114 114 </td> 115 115 </tr> -
branches/1.2/bp-core/bp-core-avatars.php
r2984 r3026 161 161 162 162 $email = apply_filters( 'bp_core_gravatar_email', $email, $item_id, $object ); 163 $gravatar = apply_filters( 'bp_gravatar_url', $host ) . md5( $email) . '?d=' . $default_grav . '&s=' . $grav_size;163 $gravatar = apply_filters( 'bp_gravatar_url', $host ) . md5( strtolower( $email ) ) . '?d=' . $default_grav . '&s=' . $grav_size; 164 164 165 165 return apply_filters( 'bp_core_fetch_avatar', "<img src='{$gravatar}' alt='{$alt}' class='{$class}'{$css_id}{$html_width}{$html_height} />", $params, $item_id, $avatar_dir, $css_id, $html_width, $html_height, $avatar_folder_url, $avatar_folder_dir ); -
branches/1.2/bp-core/bp-core-templatetags.php
r3022 r3026 1121 1121 1122 1122 $gravatar_url = apply_filters( 'bp_gravatar_url', 'http://www.gravatar.com/avatar/' ); 1123 return apply_filters( 'bp_get_signup_avatar', '<img src="' . $gravatar_url . md5( $_POST['signup_email']) . '?d=' . $default_grav . '&s=' . $size ) . '" width="' . $size . '" height="' . $size . '" alt="' . $alt . '" class="' . $class . '" />';1123 return apply_filters( 'bp_get_signup_avatar', '<img src="' . $gravatar_url . md5( strtolower( $_POST['signup_email'] ) ) . '?d=' . $default_grav . '&s=' . $size ) . '" width="' . $size . '" height="' . $size . '" alt="' . $alt . '" class="' . $class . '" />'; 1124 1124 } else { 1125 1125 return apply_filters( 'bp_get_signup_avatar', bp_core_fetch_avatar( array( 'item_id' => $signup_avatar_dir, 'object' => 'signup', 'avatar_dir' => 'avatars/signups', 'type' => 'full', 'width' => $size, 'height' => $size, 'alt' => $alt, 'class' => $class ) ) );
Note: See TracChangeset
for help on using the changeset viewer.