MyBB Community Forums

Full Version: Avatar Upload
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I fully remove the avatar upload part. I don't want the Custom Avatar section

Where should I edit in "usercp_changeavatar" template
heloo there

well you may Disallow a certain group from uploading avatar, that will remove that option.

you may also go to templates> user cp templates> usercp_nav_profile

find and remove

<li><a href="usercp.php?action=avatar">$lang->ucp_nav_change_avatar</a></li>

you can also modify usercp_changeavatar with a custom message of ur own

regards
The problem is that even I closed Avatar upload to all the groups 2 days ago a new member has upload an avatar.

http://www.amatorbalikci.net/uploads/ava...ar_175.jpg

and the date he joined to my forum is 24-02-2006

Zaher to delete that code makes no one to have avatar what I want is

"Avatar Upload" and "Avatar Url" to be deleted
have u ever make a default avatar, for all joining users ?

to make sure, in member.php

find

$newuser = array(

do u find in the list below anything looks like this

"avatar" => "./images/defaultavatar.gif",

-------------------------

alright then u just need to keep the gallery
in user cp template >usercp_changeavatar

find and remove

<tr>
<td align="center" class="trow1" width="5%"><input type="radio" name="avatar" value="url"$checked[url] /></td>
<td class="trow1" width="40%"><strong>$lang->avatar_url</strong><br /><span class="smalltext">$lang->avatar_url_note</span></td>
<td class="trow1" width="55%"><input type="text" name="avatarurl" size="25" maxlength="100" value="$avatarurl" /></td>
</tr>
<tr>
<td align="center" class="trow2" width="5%"><input type="radio" name="avatar" value="upload"$checked[upload] /></td>
<td class="trow2" width="40%"><strong>$lang->avatar_upload</strong><br /><span class="smalltext">$lang->avatar_upload_note</span></td>
<td class="trow2" width="55%"><input type="file" name="avatarupload" size="25" value="" />$uploadedmsg</td>
</tr> 
many regards
No I did not becuse other new users don't have avatar
I have edited my post btw, as i read ur sec reply.

well users before adding that to member.php wont have an avatar ,so make sure anyway.

regards
No zaher I moved it but did not workout
Ow yeah sorry, its

usercp_avatar
find and remove 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="file" name="avatarupload" size="25" />
</td>
</tr>
<tr>
<td class="trow2" width="40%"><strong>$lang->avatar_url</strong></td>
<td class="trow2" width="60%"><input type="text" name="avatarurl" size="45" value="$avatarurl" /></td>
</tr>


i wonder where usercp_changeavatar is used Confused!!

regards
Thanx Zaher this was what I needed.