Knowledge Base

No avatars when disabling "avatars uploading"
Article ID: 1042
Written By: wadie
Written On: Tue Jun 14, 2011 1:31 am
Description: When you disable the avatars uploading form machine or from a link to your server option,all the avatars that have already been uploaded,don't show anymore. Solution is here.
link to this article on phpbb.com: Select All
[kb=no-avatars-when-disabling+quotavatars-uploading+quot]No avatars when disabling "avatars uploading"[/kb]
link to this article on your own board: Select All
[url=http://www.phpbb.com/kb/article/no-avatars-when-disabling+quotavatars-uploading+quot/]Knowledge Base - No avatars when disabling "avatars uploading"[/url]

When you disable avatar uploading or remote avatars in the ACP, all of the existing avatars will no longer be visible.

In order to fix this, please follow the instructions below.

Open: /includes/functions_display.php

Find and remove:
Code: Select all
         if (!$config['allow_avatar_upload'] && !$ignore_config)
         {
            return '';
         }


Please make sure you save a backup before you edit, as well as read the following article:
phpBB3 and UTF-8 without BOM

After this edit is made, the existing avatars will be visible after you disable the above mentioned options in the ACP

Changelog:
Slightly re-written, as well as spelling fixes - Sinom