coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: MstrMitch on March 22, 2005, 11:37:19 PM

Title: customize pages not to show categories on every page
Post by: MstrMitch on March 22, 2005, 11:37:19 PM
this is sorta a repost but i am clarifying it and putting in a link. I have 2 categories and 29 albums. The categories have a picture and video album in them. I dont want to make them all categories becuase the albums dont all have multiple content. So I created the albums and put 10 on each page. But as I scroll through the pages the categories always come up on the following pages as if they are thumbtacked there. Is there a way to just let the pages scroll to new albums and not show the catrgory options on each following page? this is adult material just warning http://www.tlcafterdark.com/pics/ . if you select page 2 or page 3 you will see the categories at the top of every page, I want to change that.

Mitch
Phoenix, AZ
Title: Re: customize pages not to show categories on every page
Post by: kegobeer on March 23, 2005, 12:07:49 AM
They are "thumbtacked" there because you are still on the index page, which shows the categories at the top.  The 2, 3, etc links are just for the album listing on the main page.  You click on 2, you get the categories listed (you're on the index page) and then you get the albums.  This is by design.

Here's how to get around it:

In index.php, look for

if ($breadcrumb != '' || count($cat_data) > 0) theme_display_cat_list($breadcrumb, $cat_data, $statistics);

change to

if (($breadcrumb != '' || count($cat_data) > 0) && ($cat == 0 && $PAGE == 1)) theme_display_cat_list($breadcrumb, $cat_data, $statistics);
Title: Re: customize pages not to show categories on every page
Post by: MstrMitch on March 23, 2005, 12:55:48 AM
you are a genius..you rock, you are the best..thank you tons!!!!!!! wooooooooo hoooooooo!!!!