MyBB Community Forums

Full Version: Remove Avatar Gallery and URL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Did search and found this thread for avatar gallery. What about removing Avatar URL?

Just want uploads only. Thank you.

(never used MyBB before, but not afraid of altering code of any kind)
Nevermind, its in the code from the thread above. Sorry about that, didn't read topic carefully, its easier then it looks to alter.
Are you talking about stopping users from linking to avatars?
Just removed the capability to use Gallery and URL, uploading to forum is my only preferred choice.

Be nice if their were options to enable/disable instead, unless of course, its available, just don't see anything, never used MyBB before.
WMC- Can I ask you how you went about removing the URL option? I want my users only to be able to use the upload also. But before I go and start messing with the code I wanted to check and see if someone has already found what I need.

Thanks
Click the link in first post or click here. Was pretty easy to do, at least to me it was. But, sorry, I didn't write down alteration before and after.

Replace for usercp_avatar with what I have below. And below is just for uploading to forum only.
<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">
{$avatar_error}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->change_avatar}</strong></td>
</tr>
<tr>
<td class="trow1" colspan="2">
<table cellspacing="0" cellpadding="0" width="100%"><tr>
<td>{$lang->avatar_note}{$avatarmsg}
</td>
{$currentavatar}
</tr></table>
</td>
</tr>
<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>
</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>
</table>
</form>
{$footer}
</body>
</html>