News:

Wondering if this will always be free?  See why free is better.

Main Menu

How to hide default avatar?

Started by Kich, April 05, 2018, 05:13:44 AM

Previous topic - Next topic

Kich

Hello!

I'm wondering how this (https://www.simplemachines.org/community/index.php?topic=540193.0) can be done in SMF 2.1 Beta 3.

What I want to do is exactly what he managed to do editing "load.php", but I was unable to find this file.

I was digging into display.template.php and I found this:

// Show the user's avatar.
if (!empty($modSettings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<li class="avatar">
<a href="', $message['member']['href'], '">', $message['member']['avatar']['image'], '</a>
</li>';


I tried to change and add some lines but I realized that I don't have enough knowledge to do this. Also, I don't really know if this is the right file to modify (and I guess it only handles posts, not the whole forum, considering the tests I've made). Any thoughts on this? :)

Thank you!

---

EDIT: Well, damn. I should have searched better. The "load.php" is located on the "Sources" folder.

Sorry about that! I'm marking this one as solved.

Advertisement: