coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: yagoo on October 11, 2006, 06:03:55 PM

Title: How to hide #albums & #files per category
Post by: yagoo on October 11, 2006, 06:03:55 PM
Hello, I want to hide the number of albums and files per category. Mainly in the index of the gallery; but if it's not possible to remove the numbers only for the index, I would like a solution for all the gallery.

The normal view is something like this:

Category--------------------------|---Albums---|---Files---|
cat 1 ----------------------------|-----3------|------20--|
cat 2 ----------------------------|-----2------|-------0--|

... and I want:

Category--------------------------------------------------|
cat 1 ----------------------------------------------------|
cat 2 ----------------------------------------------------|

Thank you very much
Title: Re: How to hide #albums & #files per category
Post by: Joachim Müller on October 11, 2006, 08:14:51 PM
Edit themes/yourtheme/theme.php, find// HTML template for the category listand edit the stuff beneath it accordingly. If you don't have that section in your custom theme, copy // 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"><b>{STATISTICS}</b></span></td>
        </tr>
<!-- END footer -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;
from themes/sample/theme.php into themes/yourtheme/theme.php into a new line before?>
Title: Re: How to hide #albums & #files per category
Post by: yagoo on October 18, 2006, 04:53:09 PM
It worked; thanks  :)