Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Album property option buttons?  (Read 2547 times)

0 Members and 1 Guest are viewing this topic.

Colliope

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 126
Album property option buttons?
« 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
« Last Edit: October 30, 2007, 06:19:51 pm by GauGau »
Logged

Nibbler

  • Guest
Re: Album property option buttons?
« Reply #1 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.
Logged

Colliope

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 126
Re: Album property option buttons?
« Reply #2 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Album property option buttons?
« Reply #3 on: October 30, 2007, 07:55:23 am »

As Nibbler suggested: copy
Code: [Select]
// 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
Code: [Select]
?>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:
Code: [Select]
// 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).
Logged

Colliope

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 126
Re: Album property option buttons?
« Reply #4 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
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.