Different template for each category Different template for each category
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Different template for each category

Started by globo, July 12, 2004, 03:00:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

globo

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 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

Casper

It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

globo

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