Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: indio on March 23, 2004, 01:04:16 AM

Title: request: guest can't see user avatars
Post by: indio on March 23, 2004, 01:04:16 AM
for not consume bandwidth

thks
Title: Re: request: guest can't see user avatars
Post by: Acf on March 23, 2004, 02:04:11 AM
hmm geust can't see local stored avatars sounds better ;)
Title: Re: request: guest can't see user avatars
Post by: Tyris on March 23, 2004, 02:49:04 AM
well a simple template modification...
in display.template.php (in all themes that use it, or just in default)
find
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']))
echo '
', $message['member']['avatar']['image'], '<br />';

replace with:
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !$context['user']['is_guest'])
echo '
', $message['member']['avatar']['image'], '<br />';

that'll just not display avatars for all guests. (untested, should work tho)
Title: Re: request: guest can't see user avatars
Post by: indio on March 23, 2004, 04:31:49 AM
it works¡

thks
Title: Re: request: guest can't see user avatars
Post by: Tyris on March 23, 2004, 05:16:24 AM
no problemo :)
glad I could help ^^
Title: Re: request: guest can't see user avatars
Post by: Bigguy on September 18, 2007, 11:56:40 AM
I know this is an old topic and I am not sure if this has been done yet for this code but I packaged this up and made a mod out of it. I have not tested it yet so if anyone wants to they can check it out. This also installs for SMF 2.0