SimplePortal

Customization => Custom Coding => Topic started by: adi on June 24, 2011, 06:38:07 PM

Title: Assign Avatars for Top Poster block
Post by: adi on June 24, 2011, 06:38:07 PM
Is there any way to assign avatars for users on Top Poster block that dont have avatars yet?

I tried installing the mod default avatar but it still doesn show up on the top poster block.

Thanks
Title: Re: Assign Avatars for Top Poster block
Post by: grafitus on June 27, 2011, 06:38:07 AM
./Sources/PortalBlocks.php
Code: (Find) [Select]
<img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="40" />' : '', '
Code: (Replace) [Select]
<img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="40" />' : sp_embed_image('default_avatar'), '
Then, copy a default_avatar.png image to ./Themes/default/images/sp.
Title: Re: Assign Avatars for Top Poster block
Post by: adi on June 28, 2011, 03:41:27 PM
./Sources/PortalBlocks.php
Code: (Find) [Select]
<img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="40" />' : '', '
Code: (Replace) [Select]
<img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="40" />' : sp_embed_image('default_avatar'), '
Then, copy a default_avatar.png image to ./Themes/default/images/sp.

That works!

Thanks grafitus.
SimplePortal 2.3.8 © 2008-2024, SimplePortal