Album property option buttons? Album property option buttons?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Album property option buttons?

Started by Colliope, October 29, 2007, 11:57:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Colliope

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

Nibbler

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.

Colliope

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.

Joachim Müller

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).

Colliope

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