Support for SMF Tricks Themes & Mods

0 Members and 1 Guest are viewing this topic.

*
shinamec
Sniffer
Redsy - Avatars
April 30, 2015, 12:35:24 PM
Redsy seems to be the best SMF theme around!  But the border placed around the avatars when you post is a little extreme for me.  How would I go about reducing the border and/or removing it altogether?

Thanks ahead of time!
« Last Edit: April 30, 2015, 12:39:10 PM by shinamec »






*
Daniel
#1
Webmaster
Re: Redsy - Avatars
April 30, 2015, 05:13:43 PM
Display.template.php (Themes/Redsy)
Search:
Code: [Select]
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
{
echo '
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
<img src="', $message['member']['avatar']['href'], '" class="img-thumbnail img-circle" alt="*" />
</a>';
}
else
{
echo'
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
<img src="',$settings['images_url'] ,'/noavatar.png" class="img-thumbnail img-circle" alt="*" />
</a>';
}

Replace with:
Code: [Select]
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
{
echo '
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
<img src="', $message['member']['avatar']['href'], '" class="img-circle" alt="*" />
</a>';
}
else
{
echo'
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
<img src="',$settings['images_url'] ,'/noavatar.png" class="img-circle" alt="*" />
</a>';
}
*
shinamec
#2
Sniffer
Re: Redsy - Avatars
April 30, 2015, 05:27:56 PM
Thank you for the quick response, but apparently I didn't know what I was asking for though that fix answers a separate question.  Right now the default is that it changes the avatar into a circle instead of leaving it a square/rectangle.  I'm trying to remove that so it just stays square or maybe just reduce how far into the avatar it cuts into.

Thank you for your quick response!
« Last Edit: April 30, 2015, 05:29:45 PM by shinamec »
*
Daniel
#3
Webmaster
Re: Redsy - Avatars
April 30, 2015, 05:43:55 PM
Thank you for the quick response, but apparently I didn't know what I was asking for though that fix answers a separate question.  Right now the default is that it changes the avatar into a circle instead of leaving it a square/rectangle.  I'm trying to remove that so it just stays square or maybe just reduce how far into the avatar it cuts into.

Thank you for your quick response!
You mean something like this: http://prntscr.com/703bha ?
*
shinamec
#4
Sniffer
Re: Redsy - Avatars
April 30, 2015, 07:40:34 PM
Yes exactly!  Sorry I am failing to explain.
*
Daniel
#5
Webmaster
Re: Redsy - Avatars
April 30, 2015, 09:18:21 PM
Display.template.php (Themes/Redsy)
Search:
Code: [Select]
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
{
echo '
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
<img src="', $message['member']['avatar']['href'], '" class="img-thumbnail img-circle" alt="*" />
</a>';
}
else
{
echo'
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
<img src="',$settings['images_url'] ,'/noavatar.png" class="img-thumbnail img-circle" alt="*" />
</a>';
}

Replace with:
Code: [Select]
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
{
echo '
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
<img src="', $message['member']['avatar']['href'], '" style="margin-bottom: 5px;" alt="*" />
</a>';
}
else
{
echo'
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
<img src="',$settings['images_url'] ,'/noavatar.png" style="margin-bottom: 5px;" alt="*" />
</a>';
}
*
shinamec
#6
Sniffer
Re: Redsy - Avatars
May 01, 2015, 11:05:55 PM
That worked flawlessly!  Thank you for your amazing support and this amazing theme!

You can close this topic if you like!  Thanks!