In that file find:
function sp_topPoster($parameters, $id, $return_parameters = false)
{
global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;
Replace with (or add the extra global you see..)
function sp_topPoster($parameters, $id, $return_parameters = false)
{
global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile, $settings;
find:
foreach ($members as $member)
{
echo '
<tr>
<td class="sp_top_poster sp_center">', !empty($member['avatar']['href']) ? '
<a href="' . $scripturl . '?action=profile;u=' . $member['id'] . '"><img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="40" /></a>' : '', '
</td>
<td>
', $member['link'], '<br />', $member['output'], '
</td>
</tr>';
}
replace with:
foreach ($members as $member)
{
if (empty($member['avatar']['href']))
$member['avatar']['href'] = $settings['default_theme_url'] . '/images/sp/default_avatar.gif';
echo '
<tr>
<td class="sp_top_poster sp_center">', !empty($member['avatar']['href']) ? '
<a href="' . $scripturl . '?action=profile;u=' . $member['id'] . '"><img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="40" /></a>' : '', '
</td>
<td>
', $member['link'], '<br />
', $member['posts'], ' ', $txt['posts'], '
</td>
</tr>';
}
Use FTP to put your avatar at this file path:
/Themes/default/images/sp/default_avatar.gif