coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: carefree on July 29, 2007, 12:39:26 PM

Title: Remove a single album from index page
Post by: carefree on July 29, 2007, 12:39:26 PM
Im using a dynamic content rotator in the anycontent.php file, I want to add 100+ movies to the album so the content manager can serve from it, but i need it to be a movie of the day thing, so making the album invisble is my last step.

Is there a way to remove a single album on the index page so a guest can still access the url and the file, but not see the album in the index page? Ive tried making it "registered users only" but when I go to the url i cant acccess it as a guest.

Heres the site link http://www.freexxxhunters.com/all  //Warning not work safe//
the album im trying to remove is the bottom of the page

Thanks
Title: Re: Remove a single album from index page
Post by: Nibbler on July 29, 2007, 02:32:25 PM
You can hide the album list on the main page by editing index.php


                    case 'alblist':
                        list_albums();
                        flush();
                        break;


change to


                    case 'alblist':
                        if (!empty($cat)) list_albums();
                        flush();
                        break;
Title: Re: Remove a single album from index page
Post by: carefree on July 29, 2007, 04:21:33 PM
Thanks alot for that ! It worked a charm.  ;D

I spent nearly a whole day trying to solve it myself.

Ive gotta reverse the code to edit the files when i add more but i should only have to update it a few times a year.

Thanks Nibbler