How to hide #albums & #files per category How to hide #albums & #files per category
 

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

Main Menu

How to hide #albums & #files per category

Started by yagoo, October 11, 2006, 06:03:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yagoo

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

Joachim Müller

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

yagoo