News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

request: guest can't see user avatars

Started by indio, March 23, 2004, 01:04:16 AM

Previous topic - Next topic

indio


Acf

hmm geust can't see local stored avatars sounds better ;)
Sigh...

Tyris

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)


Tyris


Bigguy

#5
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

Advertisement: