Help on Coppermine layout #2 Help on Coppermine layout #2
 

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]

Main Menu

Help on Coppermine layout #2

Started by rosyxox, January 16, 2007, 06:47:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rosyxox

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.

Gizmo

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.

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

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