How to remove category view from main page How to remove category view from main page
 

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]

Main Menu

How to remove category view from main page

Started by darkheartagram, August 26, 2009, 01:08:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

darkheartagram

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

darkheartagram

solved just change
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
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;}

Joachim Müller

instead of checking for if ($breadcrumb != '' you could just have checked for the category you're in, like this if ($cat == 0