Hotfix change to allow user gallery admins option to change picture owner
Open themes/default/Gallery2.template.php
Find
// If the user can manage the gallery give them the option to change the picture owner.
if ($context['is_usergallery'] == false && $g_manage == true)
{
echo '<tr class="windowbg2">
<td align="right">', $txt['gallery_text_changeowner'], '</td>
<td><input type="text" name="pic_postername" id="pic_postername" value="" />
<a href="', $scripturl, '?action=findmember;input=pic_postername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);"><img src="', $settings['images_url'], '/icons/assist.gif" alt="', $txt['find_members'], '" /></a>
<a href="', $scripturl, '?action=findmember;input=pic_postername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);">', $txt['find_members'], '</a>
</td>
</tr>
<tr class="windowbg2">
<td colspan="2" align="center">
',$txt['gallery_txt_picturemoveoptions'],'<a href="',$scripturl,'?action=gallery;sa=changegallery;mv=touser;id=',$context['gallery_pic']['id_picture'], '">',$txt['gallery_movetousergallery'],'</a>
</td>
</tr>
';
}
else
{
if ($g_manage == true)
{
echo ' <tr class="windowbg2">
<td colspan="2" align="center">
',$txt['gallery_txt_picturemoveoptions'],'<a href="',$scripturl,'?action=gallery;sa=changegallery;mv=togallery;id=',$context['gallery_pic']['id_picture'], '">',$txt['gallery_movetomaingallery'],'</a>
</td>
</tr>
';
}
}
Change to
// If the user can manage the gallery give them the option to change the picture owner.
if ($context['is_usergallery'] == false && $g_manage == true)
{
echo '<tr class="windowbg2">
<td align="right">', $txt['gallery_text_changeowner'], '</td>
<td><input type="text" name="pic_postername" id="pic_postername" value="" />
<a href="', $scripturl, '?action=findmember;input=pic_postername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);"><img src="', $settings['images_url'], '/icons/assist.gif" alt="', $txt['find_members'], '" /></a>
<a href="', $scripturl, '?action=findmember;input=pic_postername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);">', $txt['find_members'], '</a>
</td>
</tr>
<tr class="windowbg2">
<td colspan="2" align="center">
',$txt['gallery_txt_picturemoveoptions'],'<a href="',$scripturl,'?action=gallery;sa=changegallery;mv=touser;id=',$context['gallery_pic']['id_picture'], '">',$txt['gallery_movetousergallery'],'</a>
</td>
</tr>
';
}
else
{
if ($g_manage == true)
{
echo '
<tr class="windowbg2">
<td align="right">', $txt['gallery_text_changeowner'], '</td>
<td><input type="text" name="pic_postername" id="pic_postername" value="" />
<a href="', $scripturl, '?action=findmember;input=pic_postername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);"><img src="', $settings['images_url'], '/icons/assist.gif" alt="', $txt['find_members'], '" /></a>
<a href="', $scripturl, '?action=findmember;input=pic_postername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);">', $txt['find_members'], '</a>
</td>
</tr>
<tr class="windowbg2">
<td colspan="2" align="center">
',$txt['gallery_txt_picturemoveoptions'],'<a href="',$scripturl,'?action=gallery;sa=changegallery;mv=togallery;id=',$context['gallery_pic']['id_picture'], '">',$txt['gallery_movetomaingallery'],'</a>
</td>
</tr>
';
}
}