MyBB Community Forums

Full Version: how to remove upload avatar from PC feature?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Well I changed the permission of the upload folder so when someone uploads a avatar it won't display but still that certain avatar gets uploaded to the server....

Thats annoying.

I want to prevent that and I know how.

By removing:
Custom Avatar
Upload Avatar:

If your avatar is too large, it will automatically be resized.

how do I remove that or hide it for certain usergroups?

(2011-04-11, 12:57 PM)Shukaku Wrote: [ -> ]I've already done this for you by simply removing the following code from the templates:
<tr>
<td class="tcat" colspan="2"><strong>{$lang->custom_avatar}</strong></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>
<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>
And I've done this since I'm a staff member on the guy's forum.

That'll remove the action link from the Submit button too, so it is incorrect.

Go to: ACP > Templates > User Control Panel Templates > usercp_avatar > and find;
<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>

and Change it to the following;
<tr>
<td class="tcat" colspan="2"><strong>{$lang->custom_avatar}</strong></td>
</tr>
<tr>
<form enctype="multipart/form-data" action="usercp.php" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
</td>
</tr>
Done your change Yaldaram, thanks.
But now we can't even link a avatar...

I just wanted to remove the upload feature from PC not from a imagehost...

But doesn't linking to a remote avatar just copy it to the server as well?
No, because if you link from imageshack they host the avatar not the server that hosts your community.

Its rather simple as a other site (now imageshack) manages all the weight if any the avatars carry to built up on the database which is none with that feature. And disabling the upload from PC feature.