Category listing + albums/pics count Category listing + albums/pics count
 

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

Category listing + albums/pics count

Started by Hein Traag, February 23, 2004, 01:58:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hein Traag

Hi all,

am working on a pics gallery and working with categories and sub categories. All working fine except was missing one thing.

If you load the gallery it displays a list of categories. Now, if you have albums directly underneath a category it displays a count of the number of albums and pics underneath that category.

But if you have a category with sub-categories it doesnt display the amount of albums and pics.

I have the setting at "Number of levels of categories to display " set to 1 because there are going to be a lot of categories.

Now, before i go and mess up the code within the pages (not a star on php programming) i would like to ask if anyone on the board has an idea or hack. Have looked through the search but couldn't find an suitable answer. Or am i blind as a mule and is that selectable somewhere in the config file ?

The where i think i can modify it is this
<!-- BEGIN catrow_noalb -->
        <tr>
                <td class="tableh2" colspan="3"><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td>
        </tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
        <tr>
                <td class="tableb"><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td>
                <td class="tableb" align="center">{ALB_COUNT}</td>
                <td class="tableb" align="center">{PIC_COUNT}</td>
        </tr>
      <tr>
            <td class="tableb" colspan=3>{CAT_ALBUMS}</td>
      </tr>
<!-- END catrow -->


What i want is to add a album and pic count to the catrow_noalb section. Where do i have to edit code to accomplish this ?

Hein Traag

Haven been tinkering some more and ended up replacing some files ;)

No one can solve this question ?

xarumanx

if i recall that right, you can find the needed code somewhere towards the end of the theme.php file.
i'll have a look at that tomorrow if time permits...

<?php echo signature(); ?>

Hein Traag

Much appreciated.. was looking down the end of the theme.php file myself but since im knew at the game of PHP i was not sure what to look for.

Hein Traag

Haven't found a good solution yet. Anyone got a idea how to solve this one ?