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: Help on Coppermine layout #2  (Read 2441 times)

0 Members and 1 Guest are viewing this topic.

rosyxox

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Help on Coppermine layout #2
« on: January 16, 2007, 06:47:46 pm »

I've been trying to customize my Coppermine layout (Kind of hard, since I don't really know php). I haven't done much on the layout, but I've taken out all the options I didn't need. http://www.beautiful-illusion.org/photography/index.php

How do I move the "1 files in 4 albums with 0 comments viewed 1 times" ? I want to send it at the bottom.
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Help on Coppermine layout #2
« Reply #1 on: January 16, 2007, 11:14:41 pm »

Actually it is at the bottom. It's at the bottom of the categories section which are always displayed above any albums which aren't associated with categories. So since there are no categories to display, it only shows this line. Moving this would involve php code change to the functions theme_display_cat_list($breadcrumb, &$cat_data, $statistics) and theme_display_album_list(&$alb_list, $nbAlb, $cat, $page, $total_pages) but you could remove it all together if you wish. To do this, copy $template_cat_list from the sample theme.php file into your theme.php if it's not already there.
Code: [Select]
// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
        <tr>
                <td class="tableh1" width="80%" align="left"><b>{CATEGORY}</b></td>
                <td class="tableh1" width="10%" align="center"><b>{ALBUMS}</b></td>
                <td class="tableh1" width="10%" align="center"><b>{PICTURES}</b></td>
        </tr>
<!-- END header -->
<!-- BEGIN catrow_noalb -->
        <tr>
                <td class="catrow_noalb" colspan="3"><table border="0"><tr><td align="left">{CAT_THUMB}</td><td align="left"><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
        </tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
        <tr>
                <td class="catrow" align="left"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
                <td class="catrow" align="center">{ALB_COUNT}</td>
                <td class="catrow" align="center">{PIC_COUNT}</td>
        </tr>
        <tr>
            <td class="tableb" colspan="3">{CAT_ALBUMS}</td>
        </tr>
<!-- END catrow -->
<!-- BEGIN footer -->
        <tr>
                <td colspan="3" class="tableh1" align="center"><span class="statlink">{STATISTICS}</span></td>
        </tr>
<!-- END footer -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;

Then remove these lines only:
Code: [Select]
        <tr>
                <td colspan="3" class="tableh1" align="center"><span class="statlink">{STATISTICS}</span></td>
        </tr>

Do not remove the <!-- BEGIN footer --> and <!-- END footer --> lines as this will cause and error to appear. They're commented out so they won't show in the browser.

Pretty cool, eh? It's funny because I was checking your site and you must be adding features because when I refresh, there's something new added.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 16 queries.