MyBB Community Forums
[How To?] Removing "Default Gallery" - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: [How To?] Removing "Default Gallery" (/thread-102547.html)



Removing "Default Gallery" - Fluid Mantis - 2011-08-26

When a member on my forum chooses a new avatar, there are no images in the root avatar directory. There are different avatars in various categories which is how I want it to be. This works okay. However, despite there being no images in the root directory, the "Default Gallery" still appears in the list of galleries. When chosen, the member is told there are no images. It would be easier if the Default Gallery option did not appear at all.

It is only a minor issue, but the option to remove it would be nice.


RE: Removing "Default Gallery" - Fluid Mantis - 2011-08-27

Anybody?


RE: Removing "Default Gallery" - Everett777 - 2011-08-27

Delete it from Your Theme's Template > User Control Panel Templates > usercp_changeavatar


RE: Removing "Default Gallery" - Fluid Mantis - 2011-08-27

Could you elaborate? I'm not 100% sure of what to change.

<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->change_avatar}</title>
{$headerinclude}
</head>
<body>
{$header}
<form enctype="multipart/form-data" action="usercp.php" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table width="100%" border="0" align="center">
<tr>
{$usercpnav}
<td valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="3"><strong>{$lang->change_avatar}</strong></td>
</tr>
<tr>
<td align="center" class="trow1" width="1%"><input type="radio" class="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" class="textbox" name="avatarurl" size="25" maxlength="100" value="{$avatarurl}" /></td>
</tr>
<tr>
<td align="center" class="trow2" width="1%"><input type="radio" class="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="" class="fileupload" />{$uploadedmsg}</td>
</tr>
<tr>
<td align="center" class="trow1" width="1%"><input type="radio" class="radio" name="avatar" value="list"{$checked['list']} /></td>
<td class="trow1" width="40%"><strong>{$lang->avatar_list}</strong><br /><span class="smalltext">{$lang->avatar_list_note}</span></td>
<td class="trow1" width="55%">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td valign="middle">
<select name="avatarlist" size="5" onChange="document.images.avatarpic.src='{$mybb->settings['avatardir']}/'+this[this.selectedIndex].value;">
{$listoptions}
</select>
</td>
<td valign="middle">
<img src="{$avatarpic}" name="avatarpic" width="80" height="80" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" class="trow2" width="1%"><input type="radio" class="radio" name="avatar" value="none"{$checked['none']} /></td>
<td colspan="2" class="trow2" width="95%"><strong>{$lang->no_avatar}</strong><br /><span class="smalltext">{$lang->no_avatar_note}</span></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}" />
</div>
</td>
</tr>
</table>
</form>
{$footer}
</body>
</html>



RE: Removing "Default Gallery" - pdtrx - 2011-08-27

http://community.mybb.com/thread-42032-post-283968.html


RE: Removing "Default Gallery" - Fluid Mantis - 2011-08-27

This seems to be for removing all avatars except what the users upload themselves. I don't want that. I already have a gallery of avatars, but there are no images in the root directory (images/avatars), just the sub-directories which appear in the gallery. However, despite the fact there are no images in the root directory, the "Default Gallery" choice still appears in the drop-down box. Perhaps I can better demonstrate this with a screenshot.

[Image: j67w9g.png]


RE: Removing "Default Gallery" - ranjani - 2011-08-27

^ most probably it requires a modification in usercp.php file & lets wait for an expert to respond ...


RE: Removing "Default Gallery" - Fluid Mantis - 2011-08-28

That sounds like a good idea. Big Grin


RE: Removing "Default Gallery" - Fluid Mantis - 2011-08-31

Any ideas? Confused


RE: Removing "Default Gallery" - Fluid Mantis - 2011-09-03

One more bump to see if anyone has any clue about this, but otherwise I'll let the thread die. Smile