forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: globo on July 12, 2004, 03:00:53 pm

Title: Different template for each category
Post by: globo on July 12, 2004, 03:00:53 pm
Hi everyone,

I'm new to Coppemine and coming from Smartors Album in PHPBB. So much for my Background.

What I'm looking for is a MOD that works like this (http://www.4homepages.de/forum/viewtopic.php?t=1847) one for 4IMAGES.

Basically I need a different template for some categories with extra HTML and static images.
Right now I've hard coded all my galleries and I want to switch to Coppermine.
(My site contains nudity, that's why I don't just post a link for descriptive purposes)

Any Idea how to go about that?

globo
Title: Re: Different template for each category
Post by: Casper on July 12, 2004, 04:21:04 pm
Yes, this hack for version 1.2 also works for 1.3;
http://forum.coppermine-gallery.net/index.php?topic=3138.0
Title: Re: Different template for each category
Post by: globo on July 13, 2004, 10:23:50 am
Hi Casper,

thanks for your quick reply. I've looked into the MOD and it seems that it does exactly what i've described earlier.

As I was working on transfering my old site into coppermine I got a different idea.
Sorry if that changes my initial request...

Instead of having to write a different theme for my categories it would be sufficient to check if there is additional data to be displayed and simply include that before and/or after the normal coppermine output.
Maybe one could store the additional data in files named 1 to x and say if category 4 is loaded coppermine would check if 4-before.php and/or 4-after.php are present.
If that is the case it would include it so that the output would look like this:
4-before
coppermine category 4
4-after


sadly my PHP knowledge is very limited.
So how do i check for an existing file and where would I include that code.

Again sorry for that shift in my request

globo