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 ?
Haven been tinkering some more and ended up replacing some files ;)
No one can solve this question ?
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...
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.
Haven't found a good solution yet. Anyone got a idea how to solve this one ?