coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: darkheartagram on August 26, 2009, 01:08:01 AM

Title: How to remove category view from main page
Post by: darkheartagram 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
Title: Re: How to remove category view from main page
Post by: darkheartagram on August 26, 2009, 01:58:57 AM
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;}
Title: Re: How to remove category view from main page
Post by: Joachim Müller 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