coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Colliope on October 29, 2007, 11:57:22 AM

Title: Album property option buttons?
Post by: Colliope on October 29, 2007, 11:57:22 AM
Where do I find the Properties, Delete, & Edit Files buttons seen here (Admin mode, Album list view - theme Fruity) so I can change their positioning?

http://colliope.com/screenshots/gallery_01.jpg

Thought this would be a no-brainer, but I can't find it. :(

Thanks, C
Title: Re: Album property option buttons?
Post by: Nibbler on October 29, 2007, 01:18:23 PM
Depends what you want to do with them. The template for that is $template_album_admin_menu. Copy it from the sample theme to your theme and modify your copy.
Title: Re: Album property option buttons?
Post by: Colliope on October 30, 2007, 03:19:11 AM
I want to break up the buttons (Delete, Properties, Edit Files - seen in the above screenshot) into two rows instead of one in order to decrease the overall width of the page.
Title: Re: Album property option buttons?
Post by: Joachim Müller on October 30, 2007, 07:55:23 AM
As Nibbler suggested: copy // HTML template for the ALBUM admin menu displayed in the album list
$template_album_admin_menu = <<<EOT
        <table border="0" cellpadding="0" cellspacing="1">
                <tr>
                        <td align="center" valign="middle" class="admin_menu">
                                <a href="delete.php?id={ALBUM_ID}&amp;what=album"  class="adm_menu" onclick="return confirm('{CONFIRM_DELETE}');">{DELETE}</a>
                        </td>
                        <td align="center" valign="middle" class="admin_menu">
                                <a href="modifyalb.php?album={ALBUM_ID}"  class="adm_menu">{MODIFY}</a>
                        </td>
                        <td align="center" valign="middle" class="admin_menu">
                                <a href="editpics.php?album={ALBUM_ID}"  class="adm_menu">{EDIT_PICS}</a>
                        </td>
                </tr>
        </table>

EOT;
from themes/sample/theme.php into a new line before ?>of themes/yourtheme/theme.php

Then edit by turning the table from a "3 columns by 1 row" to a "1 column by 3 rows" - simply change the stuff you just copied in like this:// HTML template for the ALBUM admin menu displayed in the album list
$template_album_admin_menu = <<<EOT
        <table border="0" cellpadding="0" cellspacing="1">
                <tr>
                        <td align="center" valign="middle" class="admin_menu">
                                <a href="delete.php?id={ALBUM_ID}&amp;what=album"  class="adm_menu" onclick="return confirm('{CONFIRM_DELETE}');">{DELETE}</a>
                        </td>
                </tr>
                <tr>
                        <td align="center" valign="middle" class="admin_menu">
                                <a href="modifyalb.php?album={ALBUM_ID}"  class="adm_menu">{MODIFY}</a>
                        </td>
                </tr>
                <tr>
                        <td align="center" valign="middle" class="admin_menu">
                                <a href="editpics.php?album={ALBUM_ID}"  class="adm_menu">{EDIT_PICS}</a>
                        </td>
                </tr>
        </table>

EOT;
(notice the additional </tr><tr>-tags).
Title: Re: Album property option buttons?
Post by: Colliope on October 30, 2007, 01:19:37 PM
Thankyou! I looked in several files last night but couldn't find $template_album_admin_menu. Got it done this morning with your instructions and it looks great as a 1 column table, and solves the display problem I was having in IE7 and MSN Ex. Thanks again, it's a big improvement for me.
C