Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Change Gravatar Size?


Bloggsbe
Member

@bloggsbe

Well, if you like to hack you admin files, you can add the following code to the options-general.php file just after line 143, making this code start on line 144;

<label for="avatars_size">
<?php _e('Gravatar Size:'); ?>
</label>
<div>
<select name="avatars_size" id="avatars_size">
<?php
$selected = array();
$selected[bb_get_option('avatars_size')] = ' selected="selected"';
?>
<option value="16"<?php echo $selected[16]; ?>><?php _e('16 px'); ?></option>
<option value="32"<?php echo $selected['32']; ?>><?php _e('32 px'); ?></option>
<option value="36"<?php echo $selected['36']; ?>><?php _e('36 px'); ?></option>
<option value="48"<?php echo $selected['48']; ?>><?php _e('48 px'); ?></option>
<option value="80"<?php echo $selected['80']; ?>><?php _e('80 px'); ?></option>
<?php
unset($selected);
?>
</select>
</div>

And in the bb-includes/template-functions.php file, after line 1198 you can add this;

$size = bb_get_option('avatars_size');

Then you can change the size in the admin section, and the correct size will show with the posts.

Or you can download the edited files here

Rune

Skip to toolbar