Customizing SMF > Modifications and Packages

Staff Page Mod updated for SMF 2.0!

<< < (127/134) > >>

017:
So I gotta question... how would I edit the size of avatars on the page? I'd like to resize the avatars on it so the height is always at 25px. I think it has something to do with this code snippet, but not sure cause I don't see any of the usual context for image size or etc.:


--- Code: --- if ($modSettings['smfstaff_showavatar'])
{
echo '<td class="windowbg">';
// Display the users avatar
            $memCommID = $row2['ID_MEMBER'];
            loadMemberData($memCommID);
            loadMemberContext($memCommID);
            echo $memberContext[$memCommID]['avatar']['image'];

echo '</td>';
}
--- End code ---

Anyway, if someone can point out what I'm missing with this that'd be great.

vbgamer45:
Not easily you would have to get your own picture url
   echo $memberContext[$memCommID]['avatar']['image'];
That above code includes all the html.

017:
Ack, that's what I feared was the case.

luuuciano:
You may try changing <td class="windowbg"> to <td class="windowbg avatar25">
then in the css adding something like
.avatar25 img {
height:25px;
}
or maybe
height:25px !important;

017:
Worked like a charm. Thanks!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version