coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: paul863 on December 17, 2011, 06:15:27 PM

Title: Where to put br between stats bar and categories
Post by: paul863 on December 17, 2011, 06:15:27 PM
I would like to add <br> between my statistics at the bottom of my gallery and list of categories, if you don't know what I mean, look: http://www.freeimagehosting.net/newuploads/713d9.png
Title: Re: Where to put br between stats bar and categories
Post by: ΑndrĂ© on December 20, 2011, 11:36:31 AM
Copy this to your theme's theme.php file:
/******************************************************************************
** Section <<<$template_cat_list>>> - START
******************************************************************************/
// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
        <tr>
                <td class="tableh1" width="80%" align="left">{CATEGORY}</td>
                <td class="tableh1" width="10%" align="center">{ALBUMS}</td>
                <td class="tableh1" width="10%" align="center">{PICTURES}</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">{CAT_TITLE}</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">{CAT_TITLE}</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 tableb_alternate" colspan="3">{CAT_ALBUMS}</td>
        </tr>
<!-- END catrow -->
<!-- BEGIN footer -->
        <tr>
                <td colspan="3" class="tableh1" align="center"><br /><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;
/******************************************************************************
** Section <<<$template_cat_list>>> - END
******************************************************************************/
Title: Re: Where to put br between stats bar and categories
Post by: paul863 on December 23, 2011, 12:39:28 PM
It's working, but what is so sad and macabre is that oxygen theme inherited tragic index outfit from classic coppermine theme meaning first four or whatever albums of each category are displayed below each, would it be possible for You, please, to configure this plugin so no albums would be displayed? Thanks in advance!
Title: Re: Where to put br between stats bar and categories
Post by: dagoris2010 on December 23, 2011, 01:06:08 PM
thanks for the information it was helpful.