coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: nec on May 14, 2007, 06:50:04 PM

Title: Double category on homepage
Post by: nec on May 14, 2007, 06:50:04 PM
Hello,
I have problem with my coppermine-gallery, as you can see in the picture below, the category on homepage is doubled(the same thing is showed twice time). How can i repair it? Maybe it is something in config, but i have no idea.

http://img403.imageshack.us/img403/2915/badvm2.png (http://img403.imageshack.us/img403/2915/badvm2.png)


Thank you :]
Title: Re: Double category on homepage
Post by: skidpics on May 14, 2007, 07:01:20 PM
Did you check config:album settings, under "The content of the main page" and make sure you don't have a double entry of "catlist"??

-- Skidpics
Title: Re: Double category on homepage
Post by: nec on May 14, 2007, 07:23:16 PM
Great it is working again!
I have deleted this code in index.php, and no error etc. everything is working again.
Thank for help.


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;



Thank you :]
Title: Re: Double category on homepage
Post by: Hein Traag on May 14, 2007, 07:30:15 PM
Do you have any plugins running on your CPG ? It does happen with some plugins that the categorie field is displayed twice. Placing the plugins in the correct order in plugin manager saves you the trouble of deleting code from index.php (which is something you really should not be doing)
Title: Re: Double category on homepage
Post by: skidpics on May 14, 2007, 07:32:51 PM
I agree with Hein, and I don't believe my instructions were to delete coding from the index file.  Rather, log into admin, confid and check the album setting for the main page content listing, as discussed in the previous post. 

Title: Re: Double category on homepage
Post by: nec on May 14, 2007, 10:05:34 PM
I believe it is caused by something else, but for now it is working, yes i am running a few plugins i will try to turn them off and then look, but from this what i remember none of them has impact on the view of the main page.

QuoteI agree with Hein, and I don't believe my instructions were to delete coding from the index file.  Rather, log into admin, confid and check the album setting for the main page content listing, as discussed in the previous post.
@skidpics: I have deleted this part of code before I have seen your answer.