Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Different template for each category  (Read 3725 times)

0 Members and 1 Guest are viewing this topic.

globo

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Different template for each category
« 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 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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Different template for each category
« Reply #1 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
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Different template for each category
« Reply #2 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
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.