Album List Columns Album List Columns
 

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

Main Menu

Album List Columns

Started by jamieb, July 01, 2004, 04:27:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jamieb

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.


Casper

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

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

// 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;

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