MyBB Community Forums

Full Version: Restrict users about avatar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how to restrict use not to upload avatars? I want only option to upload by URL
You'll need a plugin.
Mybb doesnt have this option... Ohh Nooo.... Can you give me that plugin??
(11-19-2010, 03:49 PM)*pushkar* Wrote: [ -> ]Mybb doesnt have this option... Ohh Nooo.... Can you give me that plugin??

There isn't any plugin for this feature. :p
Please make a request thread @: http://community.mybb.com/forum-65.html
Can't he just edit the appropriate User CP template to remove the upload form?

EDIT: Yup. Open the admin panel, then "Templates and Style", then "Templates", then your theme name, then "User Control Panel Templates", then "usercp_avatar". Remove all this:
<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>

Replace with:
<form enctype="multipart/form-data" action="usercp.php" method="post">
Yes this is the other way, but if he meant to restrict by selective groups than he would need a plugin to do that.
(11-20-2010, 04:50 AM)Yaldaram Wrote: [ -> ]Yes this is the other way, but if he meant to restrict by selective groups than he would need a plugin to do that.

He could install the PHP/Conditionals plugin, and show the upload form only for groups he chooses:

http://mybbhacks.zingaburga.com/showthread.php?tid=260