Advanced search  

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

Pages: [1]   Go Down

Author Topic: Need help for hiding empty categories  (Read 5501 times)

0 Members and 1 Guest are viewing this topic.

cccc

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Need help for hiding empty categories
« on: July 29, 2005, 11:52:05 am »

I would like to include my albums in categories
(ex. category = cat1 including albums=2001, 2003, 2004...)  and display on the homepage only the categories.
Problem : when the albums are restricted to some users, they should not appear on the homepage for unregistered users. But categories don't have this user filter and they are always displayed. For an unregistered user, If a category contains only restricted albums, it should not be displayed. At the moment, they are but are empty (no albums and pictures inside as shown on the attached picture for cat1 to cat3).

I think a test like (if in the category, albums count=0 for the current user, then dont disyplay it) sould be added in index.php.
Could someone look at it and give me his opinion ?

Thanks.



« Last Edit: August 02, 2005, 03:34:23 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Need help for hiding empty categories
« Reply #1 on: July 29, 2005, 12:39:38 pm »

As you posted this on the paid support board, you should post your budget as well. Review the sticky thread on this sub-board for suggestions on how to post here.
Logged

cccc

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Need help for hiding empty categories
« Reply #2 on: July 29, 2005, 02:37:44 pm »

OK, sorry I haven't read the sub-board rules.

My budget is $15 (paypal).
Logged

cccc

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Need help for hiding empty categories
« Reply #3 on: August 02, 2005, 11:09:20 am »

Found !

In theme.php I deleted the code in the section

<!-- BEGIN catrow_noalb -->
<!-- END catrow_noalb -->

and seems to work.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Need help for hiding empty categories
« Reply #4 on: August 02, 2005, 03:33:58 pm »

although I doubt that this is the actual solution, I will mark this thread as "closed" if it works for you
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.