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: Category listing + albums/pics count  (Read 2178 times)

0 Members and 1 Guest are viewing this topic.

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Category listing + albums/pics count
« on: February 23, 2004, 01:58:37 pm »

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
Code: [Select]
<!-- 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 ?
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Category listing + albums/pics count
« Reply #1 on: February 23, 2004, 08:51:24 pm »

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

No one can solve this question ?
Logged

xarumanx

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
    • http://gallery.webtips.at
Category listing + albums/pics count
« Reply #2 on: February 23, 2004, 11:21:03 pm »

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...
Logged

<?php echo signature(); ?>

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Category listing + albums/pics count
« Reply #3 on: February 24, 2004, 08:26:08 am »

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.
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Category listing + albums/pics count
« Reply #4 on: February 26, 2004, 03:19:48 pm »

Haven't found a good solution yet. Anyone got a idea how to solve this one ?
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.