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: Is it possible to restrict access of categories ?  (Read 3779 times)

0 Members and 1 Guest are viewing this topic.

cccc

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Is it possible to restrict access of categories ?
« on: July 21, 2005, 03:43:52 pm »

I restricted the access of some albums (in the config panel "can be viewed by") to the desired users. Then I grouped all those albums in a category.
On my home page I display "catlist/alblist...".
When I access to the home page (non logged), the restricted albums are hidden but the categories are still visible, empty but visible.
Is there a way to hide empty or "hidden" categories?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Is it possible to restrict access of categories ?
« Reply #1 on: July 22, 2005, 04:54:59 am »

without code modifications: no
Logged

cccc

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Is it possible to restrict access of categories ?
« Reply #2 on: July 22, 2005, 12:10:46 pm »

I supose I should add a criteria in the "function get_cat_list(&$breadcrumb, &$cat_data, &$statistics)" in index.php that checks if the number of albums selected for the current user is 0.
But I need some help for the code.
Logged

cccc

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Is it possible to restrict access of categories ?
« Reply #3 on: August 02, 2005, 11:15:40 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: Is it possible to restrict access of categories ?
« Reply #4 on: August 02, 2005, 04:00:19 pm »

see my reply to the other identical thread you started: I don't think that this solution will actually work. Next time you want to hire someone for a task you already started a thread for, just reply to your existing thread accordingly and a moderator will move your thread to the freelancer sub-board - there's no point in cross-posting nor double-posting.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.