MyBB Community Forums

Full Version: Disable Upload Avatar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I don't want to fully disable the functionality of having avatars for the users. I just prefer that avatars are only gotten via url instead of uploading and storing them in the avatar directory. How do I do this?
Bump Big Grin
Need also Smile
ACP > Templates> Your Theme > User Control Panel Tempaltes > usercp_avatar

Find and remove:
<tr>
<td class="trow1" width="40%"><strong>{$lang->avatar_upload}</strong></td>
<td class="trow1" width="60%">
<form enctype="multipart/form-data" action="usercp.php" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<input type="file" name="avatarupload" size="25" class="fileupload" />
{$auto_resize}
</td>
</tr>
Hi Jason L.,

Removing that part of the code did remove 'Upload Avatar' from the interface but for some reason I am unable to upload via url anymore and 'Change Avatar' doesn't work. I can press the button but nothing happens.
Update?
Replace:
<tr>
<td class="trow1" width="40%"><strong>{$lang->avatar_upload}</strong></td>
<td class="trow1" width="60%">
<form enctype="multipart/form-data" action="usercp.php" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<input type="file" name="avatarupload" size="25" class="fileupload" />
{$auto_resize}
</td>
</tr>

by:
<form enctype="multipart/form-data" action="usercp.php" method="post">