MyBB Community Forums

Full Version: go directly to the default avatar package
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to do so users go directly to the default avatar package when clicking change avatar?
So you don't want users to upload a Custom Avatar? Should they only be able to choose one from the Local Avatar Galleries?
(2011-06-16, 10:24 AM)faviouz Wrote: [ -> ]So you don't want users to upload a Custom Avatar? Should they only be able to choose one from the Local Avatar Galleries?

Yes. But there will only be one gallery.
1. Go to Admin CP > Templates & Style > Templates > Your Template Set > User Control Panel Templates > usercp_avatar.

2. Find and delete:

<tr>
<td class="tcat" colspan="2"><strong>{$lang->custom_avatar}</strong></td>
</tr>
<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>
<tr>
<td class="trow2" width="40%"><strong>{$lang->avatar_url}</strong></td>
<td class="trow2" width="60%"><input type="text" class="textbox" name="avatarurl" size="45" value="{$avatarurl}" /></td>
</tr>
</table>
<br />
<div align="center">
<input type="hidden" name="action" value="do_avatar" />
<input type="submit" class="button" name="submit" value="{$lang->change_avatar}" />
<input type="submit" class="button" name="remove" value="{$lang->remove_avatar}" />
</div>
</td>
</tr>