Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Kich on April 05, 2018, 05:13:44 AM

Title: How to hide default avatar?
Post by: Kich on April 05, 2018, 05:13:44 AM
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:

Code: [Select]
// 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.