coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: ceesjoore on July 26, 2005, 06:33:38 PM

Title: albumlist
Post by: ceesjoore on July 26, 2005, 06:33:38 PM
Hi,

I use coppermine only for myself and i want it to start up with my albums on the startup page, how do i do that ?

Regards

www.ceesjoore.nl
Title: Re: albumlist
Post by: Tranz on July 26, 2005, 11:01:47 PM
I'm not sure what you are asking.
Title: Re: albumlist
Post by: dfuncr on November 20, 2005, 03:50:21 AM
Sorry to drag up this old thread .. I would also like to set coppermine so that it loads to the album page as default for the index ... I don't want to have to use the catagories page just the Albums one

Sorry if this has already been answered

James
Title: Re: albumlist
Post by: Tranz on November 20, 2005, 04:06:31 AM
This code is from a plug-in for cpg 1.4 that allows the user to designate a new index. To use with 1.3, you can add the following code in index.php:
  if (empty($_SERVER["QUERY_STRING"]) && strstr($_SERVER["PHP_SELF"],'index.php')) {
    header('Location: http://yourgallery.com/thumbnails.php?album=N');
  }


AFTER:
define('IN_COPPERMINE', true);
Title: Re: albumlist
Post by: dfuncr on November 20, 2005, 01:15:27 PM
Sorry to be bit of an idiot but where abouts should I add this code in index.php? does where I place it have any effect on the code itself

James
Title: Re: albumlist
Post by: Stramm on November 20, 2005, 01:32:48 PM
if you only want to show albums and no cats on the index... then don't create cats and put your albums in * No category *
Title: Re: albumlist
Post by: dfuncr on November 20, 2005, 01:47:21 PM
How would I do that with user galleries?? I'm starting to think I'm in over my head here :S
Title: Re: albumlist
Post by: Tranz on November 20, 2005, 03:05:29 PM
Quote from: dfuncr on November 20, 2005, 01:15:27 PM
Sorry to be bit of an idiot but where abouts should I add this code in index.php? does where I place it have any effect on the code itself

James
Quote from: TranzNDance on November 20, 2005, 04:06:31 AM
AFTER:
define('IN_COPPERMINE', true);


Please post a link to the page that you want to be the startup. I think there is some misunderstanding going on.
Title: Re: albumlist
Post by: Stramm on November 20, 2005, 03:08:09 PM
ahh.. user galleries ;) sorry, I didn't get that
open index.php and find
           case 'alblist':

below add
            if ($cat == 0) list_users();
Title: Re: albumlist
Post by: dfuncr on November 20, 2005, 03:16:23 PM
Wow thank you this has been an amazing help ... I have to say this is has been one of the best boards in regards of supporting a product ... thank you