Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How to hide #albums & #files per category  (Read 2646 times)

0 Members and 1 Guest are viewing this topic.

yagoo

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
How to hide #albums & #files per category
« 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
« Last Edit: October 18, 2006, 04:54:39 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to hide #albums & #files per category
« Reply #1 on: October 11, 2006, 08:14:51 pm »

Edit themes/yourtheme/theme.php, find
Code: [Select]
// HTML template for the category listand edit the stuff beneath it accordingly. If you don't have that section in your custom theme, copy
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"><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
Code: [Select]
?>
Logged

yagoo

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: How to hide #albums & #files per category
« Reply #2 on: October 18, 2006, 04:53:09 pm »

It worked; thanks  :)
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.