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: How to remove category view from main page  (Read 2944 times)

0 Members and 1 Guest are viewing this topic.

darkheartagram

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
How to remove category view from main page
« on: August 26, 2009, 01:08:01 am »

Hi one more time

I'm trying to remove category view from main page ( I'd like to have only lastalb ) If I delete catlist from administration page I'm unable to open one category or category plus subcategories. In my opinion the solution is in index.php file but what should I modify?

My page http://student.agh.edu.pl/~pawelek/coppermine/index.php ( temporary )
CPG version 1.4.24
Logged

darkheartagram

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: How to remove category view from main page
« Reply #1 on: August 26, 2009, 01:58:57 am »

solved just change
Code: [Select]
case 'catlist':
                       if ($breadcrumb != '' || count($cat_data) > 0) theme_display_cat_list($breadcrumb, $cat_data, $statistics);
                        if (isset($cat) && $cat == USER_GAL_CAT) {
                            list_users();
                        }
                        flush();
                        break;
to
Code: [Select]
case 'catlist':
                        if ($cat) {if ($breadcrumb != '' || count($cat_data) > 0) theme_display_cat_list($breadcrumb, $cat_data, $statistics);
                        if (isset($cat) && $cat == USER_GAL_CAT) {
                            list_users();
                        }
                        flush();
                        break;}
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to remove category view from main page
« Reply #2 on: August 26, 2009, 08:48:45 am »

instead of checking for if ($breadcrumb != '' you could just have checked for the category you're in, like this if ($cat == 0
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.