MyBB Community Forums

Full Version: Disabling avatars completely
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does anyone know of a way to 100% disable the built in methods of avatar selection? (local file, url and gallery)
Hello Tyrone,

The way I would do this is by simply changing the usercp_avatar template, so that the page is disabled, thus stopping users from selecting avatars.

If you go to your ACP > Templates & Style > Templates > Your Theme > User Control Panel Templates > usercp_avatar

and replace everything with this (or something similar)

<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->change_avatar}</title>
{$headerinclude}
</head>
<body>
{$header}
<table width="100%" border="0" align="center">
<tr>
{$usercpnav}
<td valign="top">
Sorry, avatars are disabled on this board.
</td>
</tr>
</table>
{$footer}
</body>
</html>

Then the UserCP options for uploading avatars will be gone. You can also remove the link to the avatars UserCP page by editing the usercp_nav_profile template, FINDING this line:

<div><a href="usercp.php?action=avatar" class="usercp_nav_item usercp_nav_avatar">{$lang->ucp_nav_change_avatar}</a></div>

and removing it.