Author Topic: How to hide default avatar?  (Read 863 times)

Offline Kich

  • Semi-Newbie
  • *
  • Posts: 10
How to hide default avatar?
« on: April 05, 2018, 05:13:44 AM »

I'm wondering how this ( 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>

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.
« Last Edit: April 05, 2018, 05:40:01 AM by Lucas Kich »