Hi,
I'm modifying coppermine theme to suit my blogs design. I chose Final Fantasy theme, since it's the closest one to my blog's design (menu is on the other side and gallery is on the other). Now I can't figure out where is the code for admin functions. All other buttons are positioned ok, but three buttons (delete/properties/edit files) appear on left side of the thumbnails. Where is the code for them? Right now those buttons are very badly positioned since they go over my sysmenu and submenu and I cannot log out. Of course this bad positioning is causes by my modification of the theme. I just want to move those buttons under the thumbnails and I can't find the code. Where is it?
- Tuomas
The code you're looking to move is {ADMIN_MENU} in the "HTML template for the album list". Copy the below code from Themes=>Sample=>themes.php and paste into your theme.php edit accordingly.
// HTML template for the album list
$template_album_list_cat = <<<EOT
<!-- BEGIN c_stat_row -->
<tr>
<td colspan="{COLUMNS}" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>
</tr>
<!-- END c_stat_row -->
<!-- BEGIN c_header -->
<tr>
<!-- END c_header -->
<!-- BEGIN c_album_cell -->
<td width="{COL_WIDTH}%" valign="top">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" height="1" valign="top" class="tableh2">
<span class="alblink"><a href="{ALB_LINK_TGT}"><b>{ALBUM_TITLE}</b></a></span>
</td>
</tr>
<tr>
<td colspan="3">
<img src="images/spacer.gif" width="1" height="1" border="0" alt="" /><br />
</td>
</tr>
<tr>
<td align="center" valign="middle" class="thumbnails">
<img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" class="image" style="margin-top: 0px; margin-bottom: 0px; border: none;" alt="" /><br />
<a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
</td>
<td>
<img src="images/spacer.gif" width="1" height="1" border="0" alt="" />
</td>
<td width="100%" valign="top" class="tableb_compact">
{ADMIN_MENU}
<p>{ALB_DESC}</p>
<p class="album_stat">{ALB_INFOS}</p>
</td>
</tr>
</table>
</td>
<!-- END c_album_cell -->
<!-- BEGIN c_empty_cell -->
<td width="{COL_WIDTH}%" valign="top">
<table width="100%" cellspacing="0" cellpadding="0" >
<tr>
<td height="1" valign="top" class="tableh2">
<b> </b>
</td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="1" height="1" border="0" alt="" /><br />
</td>
</tr>
<tr>
<td width="100%" valign="top" class="tableb_compact" >
<div class="thumbnails" style="background-color:transparent"><img src="images/spacer.gif" width="1" height="{SPACER}" border="0" class="image" style="border:0;margin-top:1px;margin-bottom:0" alt="" /></div>
</td>
</tr>
</table>
</td>
<!-- END c_empty_cell -->
<!-- BEGIN c_row_separator -->
</tr>
<tr>
<!-- END c_row_separator -->
<!-- BEGIN c_footer -->
</tr>
<!-- END c_footer -->
<!-- BEGIN c_tabs -->
<tr>
<td colspan="{COLUMNS}" style="padding: 0px;">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
{TABS}
</tr>
</table>
</td>
</tr>
<!-- END c_tabs -->
<!-- BEGIN c_spacer -->
<img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END c_spacer -->
EOT;
To get the menu to be under the thumbnail, move the {ADMIN_MENU} tag under the {ALB_LINK_PIC} tag as such.
<td align="center" valign="middle" class="thumbnails">
<img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" class="image" style="margin-top: 0px; margin-bottom: 0px; border: none;" alt="" /><br />
<a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
{ADMIN_MENU}
</td>
It's a little tight but doable.
Gizmo
I did it but it doesn't seem to have any effect. I tried to move the {ADMIN_MENU} all kinds of places in that code but those three buttons don't move anywhere. It kind of feels like the code isn't somehow activated.
- Tuomas
How about a link to your site and a screehshot of the overlapping buttons? If you want some serious help, zip up your theme and attach that as well.
I copied the code from your message and it works! Sorry about to confusion. First I copied the code from the Themes=>Sample=>theme.php and then just changed position of the the {ADMIN_MENU}. It didn't work. Uh... I spend hours with this problem and all I had to do is copy the code from your message... argh!
Ok. Thanks a lot for your help.
- Tuomas
Cool! :D Glad to be of service.