Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Album List Columns  (Read 3838 times)

0 Members and 1 Guest are viewing this topic.

jamieb

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Album List Columns
« on: July 01, 2004, 04:27:10 am »

Currently I am working on a site that works fine until someone enters admin mode. It is set to show five columns across for the album list. It is all wrapped in a table in the template.html and is set to span 80% of the page while being centered. The problem occurs when someone enters the admin mode, it spans the whole page and ends up being wider then my 1280 wide display. Is there a way to set it to only display three columns in admin mode but maintain five columns in user mode? As soon the album properties show up it breaks the table display for some reason.

Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Album List Columns
« Reply #1 on: July 01, 2004, 04:41:31 pm »

Well you are asking to get a lot in a limited space.

Try this. Open themes/your_theme/theme.php, and find;

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}&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>

Now change each cell to be on it's own row, 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}&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>

This will mean the buttons sit on top of each other, not side by side.  It will make it narrower, but longer.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.