These are Template edits to replace the default Profile Photo Pic with an avatar. These are what I can find off the top, If you need one, or find one that's not mentioned here and would like for me to add it please feel free to post a comment here, on my profile or PM me.
Disclaimers:
Odd shaped avatars will appear odd. By this I mean if the avatar isn't perfectly square these edits will not scale them properly. Unfortunately I wouldn't know of a way to simply scale the proportions.
If Gravatars are enabled then people that don't have a photo or an avatar will get a blank nothing in place of the default icon. Unfortunately I wouldn't know how to work around that. Sorry dears.
Profile Replacement:
Profiles > profileModern
Find:
<img class="photo" src='{$member['pp_main_photo']}' alt="{$member['members_display_name']}{$this->lang->words['users_photo']}" />Replace with:
<if test="$member['pp_main_photo'] == $this->settings['img_url'].'/profile/default_large.png' && $member['avatar'] != '' ">
{$member['avatar']}<else /><img class="photo" src='{$member['pp_main_photo']}' alt="{$member['members_display_name']}{$this->lang->words['users_photo']}" /></if>Friends Replacement in the Member profile:
Find:
<img src='{$friend['pp_thumb_photo']}' width='{$friend['pp_thumb_width']}' height='{$friend['pp_thumb_height']}' alt='{$this->lang->words['photo']}' class='photo' />Replace:
<if test="$friend['pp_thumb_photo'] == $this->settings['img_url'].'/profile/default_thumb.png' && $friend['avatar_location'] != '' ">
<if test="$friend['avatar_type'] != 'url'">
<img src='{$this->settings['board_url']}<if test="$friend['avatar_type'] == 'upload'">/uploads/<else />/public/style_avatars/</if>{$friend['avatar_location']}' alt="{$friend['members_display_name']}{$this->lang->words['users_photo']}" width='{$friend['pp_thumb_width']}' height='{$friend['pp_thumb_width']}' class='photo' />
<else />
<img src='{$friend['avatar_location']}' alt="{$friend['members_display_name']}{$this->lang->words['users_photo']}" width='{$friend['pp_thumb_width']}' height='{$friend['pp_thumb_height']}' class='photo' />
</if>
<else /><img src='{$friend['pp_thumb_photo']}' alt="{$friend['members_display_name']}{$this->lang->words['users_photo']}" width='{$friend['pp_thumb_width']}' height='{$friend['pp_thumb_height']}' class='photo' /></if>Latest Visitor on Profile:
Find:
<img src='{$friend['pp_mini_photo']}' width='{$friend['pp_mini_width']}' height='{$friend['pp_mini_height']}' alt='{$this->lang->words['photo']}' class='photo' />Replace:
<if test="$friend['pp_mini_photo'] == $this->settings['img_url'].'/profile/default_thumb.png' && $friend['avatar_location'] != '' ">
<if test="$friend['avatar_type'] != 'url'">
<img src='{$this->settings['board_url']}<if test="$friend['avatar_type'] == 'upload'">/uploads/<else />/public/style_avatars/</if>{$friend['avatar_location']}' alt="{$friend['members_display_name']}{$this->lang->words['users_photo']}" width='{$friend['pp_mini_width']}' height='{$friend['pp_mini_width']}' class='photo' />
<else />
<img src='{$friend['avatar_location']}' alt="{$friend['members_display_name']}{$this->lang->words['users_photo']}" width='{$friend['pp_mini_width']}' height='{$friend['pp_mini_height']}' class='photo' />
</if>
<else /><img src='{$friend['pp_mini_photo']}' alt="{$friend['members_display_name']}{$this->lang->words['users_photo']}" width='{$friend['pp_mini_width']}' height='{$friend['pp_mini_height']}' class='photo' /></if>Member Box icon in the top right:
Global Templates > globalTemplates > Find:
<a href="{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}" title='{$this->lang->words['your_profile']}'><img src='{$this->memberData['pp_thumb_photo']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" width='{$this->memberData['pp_thumb_width']}' height='{$this->memberData['pp_thumb_height']}' class='photo' /></a>Replace:
<a href="{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}" title='{$this->lang->words['your_profile']}'>
<if test="$this->memberData['pp_thumb_photo'] == $this->settings['img_url'].'/profile/default_thumb.png' && $this->memberData['avatar_location'] != '' ">
<if test="$this->memberData['avatar_type'] != 'url'">
<img src='{$this->settings['board_url']}<if test="$this->memberData['avatar_type'] == 'upload'">/uploads/<else />/public/style_avatars/</if>{$this->memberData['avatar_location']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" width='{$this->memberData['pp_thumb_width']}' height='{$this->memberData['pp_thumb_width']}' class='photo' />
<else />
<img src='{$this->memberData['avatar_location']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" width='{$this->memberData['pp_thumb_width']}' height='{$this->memberData['pp_thumb_height']}' class='photo' />
</if>
<else /><img src='{$this->memberData['pp_thumb_photo']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" width='{$this->memberData['pp_thumb_width']}' height='{$this->memberData['pp_thumb_height']}' class='photo' /></if>
</a>For Memberlist replacement:
Member List > member_list_show
Find:
<a href='{parse url="showuser={$member['member_id']}" template="showuser" seotitle="{$member['members_seo_name']}" base="public"}' title='{$this->lang->words['view_profile']}'><img src='{$member['pp_thumb_photo']}' width='{$member['pp_thumb_width']}' height='{$member['pp_thumb_height']}' alt="{$member['members_display_name']}{$this->lang->words['users_photo']}" class='photo' /></a> Replace:
<a href='{parse url="showuser={$member['member_id']}" template="showuser" seotitle="{$member['members_seo_name']}" base="public"}' title='{$this->lang->words['view_profile']}'>
<if test="$member['pp_thumb_photo'] == $this->settings['img_url'].'/profile/default_thumb.png' && $member['avatar_location'] != '' ">
<if test="$member['avatar_type'] != 'url'">
<img src='{$this->settings['board_url']}<if test="$member['avatar_type'] == 'upload'">/uploads/<else />/public/style_avatars/</if>{$member['avatar_location']}' alt="{$member['members_display_name']}{$this->lang->words['users_photo']}" width='{$member['pp_thumb_width']}' height='{$member['pp_thumb_width']}' class='photo' />
<else />
<img src='{$member['avatar_location']}' alt="{$member['members_display_name']}{$this->lang->words['users_photo']}" width='{$member['pp_thumb_width']}' height='{$member['pp_thumb_height']}' class='photo' />
</if>
<else /><img src='{$member['pp_thumb_photo']}' alt="{$member['members_display_name']}{$this->lang->words['users_photo']}" width='{$member['pp_thumb_width']}' height='{$member['pp_thumb_height']}' class='photo' /></if>
</a>Profiles > StatusUpdates
Find:
<img src='{$this->memberData['pp_mini_photo']}' width='{$this->memberData['pp_mini_width']}' height='{$this->memberData['pp_mini_height']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" class='photo' />Replace:
<if test="$this->memberData['pp_mini_photo'] == $this->settings['img_url'].'/profile/default_thumb.png' && $this->memberData['avatar_location'] != '' ">
<if test="$this->memberData['avatar_type'] != 'url'">
<img src='{$this->settings['board_url']}<if test="$this->memberData['avatar_type'] == 'upload'">/uploads/<else />/public/style_avatars/</if>{$this->memberData['avatar_location']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" width='{$this->memberData['pp_mini_width']}' height='{$this->memberData['pp_mini_width']}' class='photo' />
<else />
<img src='{$this->memberData['avatar_location']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" width='{$this->memberData['pp_mini_width']}' height='{$this->memberData['pp_mini_height']}' class='photo' />
</if>
<else /><img src='{$this->memberData['pp_mini_photo']}' alt="{$this->memberData['members_display_name']}{$this->lang->words['users_photo']}" width='{$this->memberData['pp_mini_width']}' height='{$this->memberData['pp_mini_height']}' class='photo' /></if>
Same file as above.
Find:
<img src='{$status['pp_mini_photo']}' width='{$status['pp_mini_width']}' height='{$status['pp_mini_height']}' alt="{$status['members_display_name']}{$this->lang->words['users_photo']}" class='photo' />Replace:
<if test="$status['pp_mini_photo'] == $this->settings['img_url'].'/profile/default_thumb.png' && $status['avatar_location'] != '' ">
<if test="$status['avatar_type'] != 'url'">
<img src='{$this->settings['board_url']}<if test="$status['avatar_type'] == 'upload'">/uploads/<else />/public/style_avatars/</if>{$status['avatar_location']}' alt="{$status['members_display_name']}{$this->lang->words['users_photo']}" width='{$status['pp_mini_width']}' height='{$status['pp_mini_width']}' class='photo' />
<else />
<img src='{$status['avatar_location']}' alt="{$status['members_display_name']}{$this->lang->words['users_photo']}" width='{$status['pp_mini_width']}' height='{$status['pp_mini_height']}' class='photo' />
</if>
<else /><img src='{$status['pp_mini_photo']}' alt="{$status['members_display_name']}{$this->lang->words['users_photo']}" width='{$status['pp_mini_width']}' height='{$status['pp_mini_height']}' class='photo' /></if>
Board Index > hookTopPosters
Find:
<img src='{$r['pp_thumb_photo']}' width='{$r['pp_thumb_width']}' height='{$r['pp_thumb_height']}' alt='{$this->lang->words['photo']}' class='photo' />Replace:
<if test="$r['pp_thumb_photo'] == $this->settings['img_url'].'/profile/default_thumb.png' && $r['avatar_location'] != '' ">
<if test="$r['avatar_type'] != 'url'">
<img src='{$this->settings['board_url']}<if test="$r['avatar_type'] == 'upload'">/uploads/<else />/public/style_avatars/</if>{$r['avatar_location']}' alt="{$r['members_display_name']}{$this->lang->words['users_photo']}" width='{$r['pp_thumb_width']}' height='{$r['pp_thumb_width']}' class='photo' />
<else />
<img src='{$r['avatar_location']}' alt="{$r['members_display_name']}{$this->lang->words['users_photo']}" width='{$r['pp_thumb_width']}' height='{$r['pp_thumb_height']}' class='photo' />
</if>
<else /><img src='{$r['pp_thumb_photo']}' alt="{$r['members_display_name']}{$this->lang->words['users_photo']}" width='{$r['pp_thumb_width']}' height='{$r['pp_thumb_height']}' class='photo' /></if>(Blog) Portal Plugin > recentEntries
Find:
<img src='{$entry['pp_mini_photo']}' width='{$entry['pp_mini_width']}' height='{$entry['pp_mini_height']}' alt='' class='photo' style='float:left' />Replace:
<if test="$entry['pp_mini_photo'] == $this->settings['img_url'].'/profile/default_thumb.png' && $entry['avatar_location'] != '' ">
<if test="$entry['avatar_type'] != 'url'">
<img src='{$this->settings['board_url']}<if test="$entry['avatar_type'] == 'upload'">/uploads/<else />/public/style_avatars/</if>{$entry['avatar_location']}' alt="{$entry['members_display_name']}{$this->lang->words['users_photo']}" width='{$entry['pp_mini_width']}' height='{$entry['pp_mini_width']}' class='photo' style='float:left' />
<else />
<img src='{$entry['avatar_location']}' alt="{$entry['members_display_name']}{$this->lang->words['users_photo']}" width='{$entry['pp_mini_width']}' height='{$entry['pp_mini_height']}' class='photo' style='float:left' />
</if>
<else /><img src='{$entry['pp_thumb_photo']}' alt="{$entry['members_display_name']}{$this->lang->words['users_photo']}" width='{$entry['pp_mini_width']}' height='{$entry['pp_mini_height']}' class='photo' style='float:left' /></if>Cheers!
3/16/10 - Updated to allow for Gallery avatar support.
6/30/10 - Updated to work on 3.1

Help
Actions
Visit support topic
Bookmark




Tutorial info
View member's tutorials






