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: changing album description placement  (Read 3678 times)

0 Members and 1 Guest are viewing this topic.

WickedElf

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
changing album description placement
« on: January 04, 2006, 09:41:59 pm »

I hope I'm not missing something obvious here. 

How can I change the placement of my album thumbnails and descriptions (the part that says so many files, last one added and delete/properties/edit files if you are logged in)?  Currently they sit to the right of the album thumbnail and I would like them BELOW the thumbnail so they don't throw off my layout.

In my config, I've got "yes" checked next to:
Code: [Select]
Display file caption (in addition to title) below the thumbnail
 - and -
Display file name below the thumbnail

I didn't see any other spot that referenced the placement (I could be blind though).  And I think before I had changed it in my template.html, but I've since upgraded and changed skins (an altered version of giallo) and I'm not sure where else to look.

Can someone point me in the right direction?

Thanks!!
« Last Edit: January 05, 2006, 06:10:34 am by GauGau »
Logged

ecto

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 144
    • My very incomplete gallery
Re: changing album description placement
« Reply #1 on: January 05, 2006, 01:37:36 am »

Find $template_album_list in themes/your_theme/theme.php and edit it to suit your needs. If $template_album_list isn't in your theme.php file then copy it there from themes/sample/theme.php.
Logged

WickedElf

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: changing album description placement
« Reply #2 on: January 05, 2006, 05:16:14 am »

Ok, it's not in my theme.php, so I went to the sample one.   And found:
Code: [Select]
EOT;
// HTML template for the album list
$template_album_list = <<<EOT

<!-- BEGIN stat_row -->
        <tr>
                <td colspan="{COLUMNS}" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>
        </tr>
<!-- END stat_row -->
<!-- BEGIN header -->
        <tr>
<!-- END header -->
<!-- BEGIN album_cell -->
        <td width="{COL_WIDTH}%" valign="top">
        <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
                <td colspan="3" height="1" align="left" valign="top" class="tableh2">
                        <span class="alblink"><a href="{ALB_LINK_TGT}"><b>{ALBUM_TITLE}</b></a></span>
                </td>
        </tr>
        <tr>
                <td colspan="3">
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" /><br />
                </td>
        </tr>
        <tr>
                <td align="center" valign="middle" class="thumbnails">
                        <img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" class="image" style="margin-top: 0px; margin-bottom: 0px; border: none;" alt="" /><br />
                        <a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
                </td>
                <td>
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" />
                </td>
                <td width="100%" valign="top" align="left" class="tableb_compact">
                        {ADMIN_MENU}
                        <p>{ALB_DESC}</p>
                        <p class="album_stat">{ALB_INFOS}</p>
                </td>
        </tr>
        </table>
        </td>
<!-- END album_cell -->
<!-- BEGIN empty_cell -->
        <td width="{COL_WIDTH}%" valign="top">
        <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
                <td height="1" valign="top" class="tableh2">
                        <b>&nbsp;</b>
                </td>
        </tr>
        <tr>
                <td>
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" /><br />
                </td>
        </tr>
        <tr>
                <td width="100%" valign="top" class="tableb_compact">
                    <div class="thumbnails" style="background-color:transparent"><img src="images/spacer.gif" width="1" height="{SPACER}" border="0" class="image" style="border:0;margin-top:1px;margin-bottom:0" alt="" /></div>
                </td>
        </tr>
        </table>
        </td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
        </tr>
        <tr>
<!-- END row_separator -->
<!-- BEGIN footer -->
        </tr>
<!-- END footer -->
<!-- BEGIN tabs -->
        <tr>
                <td colspan="{COLUMNS}" style="padding: 0px;">
                        <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
                                       {TABS}
                                </tr>
                        </table>
                </td>
        </tr>
<!-- END tabs -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

If I copy and paste that (without editing anything yet) into my theme.php... it breaks the site.   :o  Nothing gallery-related loads, I just get a blank white page.  Do I need to put something before it to define it or anything? 

All my theme.php currently has in it is:
Code: [Select]
define('THEME_HAS_RATING_GRAPHICS', 1);
define('THEME_HAS_NAVBAR_GRAPHICS', 1);
define('THEME_IS_XHTML10_TRANSITIONAL',1);

$template_sys_menu_spacer='';

Thanks!!
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: changing album description placement
« Reply #3 on: January 05, 2006, 05:41:42 am »

First of all, the "EOT;" at the top should be at the bottom.  You are supposed to copy from the first comment (// HTML template for the album list) to the next comment.
Logged

WickedElf

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: changing album description placement
« Reply #4 on: January 05, 2006, 06:05:38 am »

Oh great!  Ok, so that fixed that part. 

Thanks!   ;D
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: changing album description placement
« Reply #5 on: May 06, 2006, 12:49:53 am »

edit: Oops.  I split a post to a new thread, but left my reply here (shown below).  So the reply below is in response to that other post.  Oh well.

You shouldn't reply to "Solved" threads unless you are asking a question that is a clarification question on something already discussed.

Start a new thread and reference this thread with whatever you think is relevant.

I'll split this off into a new thread for you, this time.   :-\
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 20 queries.