Hello...
I recently installed this mod from the SMF site: http://custom.simplemachines.org/mods/index.php?mod=3575
It rounds the corners of the avatars in messages, on profiles, and in the memberlist. It does not round the avatars in any of my SimplePortal blocks. Can anyone point me in the direction as to how to round the avatars in the different blocks I have running?
Thanks!
EDIT: My apologies... I do believe I posted this in the wrong forum. :(
I looks like you can do this by finding the blocks in PortalBlocks.php that you want the avatars to be rounded on and add "avatar" to the class.
For example with Board News.
Find:
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" /></a>
Replace With:
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right avatar" /></a>
I seem to need help finding the line to edit for the TOP POSTER block....
There are two instances of this in PortalBlocks.php. The first instance is for Top Poster and the second is for Top Member Stats.
Find:
<a href="' . $scripturl . '?action=profile;u=' . $member['id'] . '"><img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="40" /></a>' : '', '
Replace with:
<a href="' . $scripturl . '?action=profile;u=' . $member['id'] . '"><img class="avatar" src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="40" /></a>' : '', '
Unfortunately avatars show up at 100% (not 40) using the code above... but they ARE rounded.
:)
Thats odd, I tested the Top Poster block with Firefox and Chrome with no problems on the default theme.
also there is the team-list block..
<a href="' . $scripturl . '?action=profile;u=' . $staff['id'] . '"><img src="' . $staff['avatar']['href'] . '" alt="' . $staff['name'] . '" width="40" /></a>' : '', '
<a href="' . $scripturl . '?action=profile;u=' . $staff['id'] . '"><img class="avatar" src="' . $staff['avatar']['href'] . '" alt="' . $staff['name'] . '" width="40" /></a>' : '', '
i made a mod of these three changes.. so just install this after the round corners mod of colins.. and everything should be fine
Unfortunately the package did the very same thing that happened when I manually made changes...
It made all my avatars go from 40% to 100%.
Might be that I have those blocks in blocks...?
im sorry.. i don
Can you show a link to the forum?. We can see the HTML and CSS that way.
What theme are you using?
FrizzleFried -- if you are still interested in this issue, please hit the "Topic Not Solved" button and continue.
Thanks