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: Adding Text only under images from a specific catergory  (Read 2528 times)

0 Members and 1 Guest are viewing this topic.

taucher_0815

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 134
Adding Text only under images from a specific catergory
« on: June 08, 2010, 09:39:20 am »

Hi @ all...
Me again...

What I want do to is the following:

I have several Categories with several albums in each of them. There is a way selling prints from an affiliate site. Users should be able to order these photos. So far this is no problem.

Only images from some specific categrories should display this link right under the intermediate image.

Any way to do this?

Link to my Site: http://www.sk-foto.info

Best regards
Sven
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Adding Text only under images from a specific catergory
« Reply #1 on: June 08, 2010, 01:38:33 pm »

It's possible with the plugin hook file_data.
Logged

taucher_0815

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 134
Re: Adding Text only under images from a specific catergory
« Reply #2 on: June 08, 2010, 02:41:07 pm »

But how to limit the display of those links to specific categories?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Adding Text only under images from a specific catergory
« Reply #3 on: June 08, 2010, 02:46:07 pm »

You always have access to the picture id (pid). If you follow the tree (picture - album - category - category - ...), you can determine in which category the picture is in. Then you have to specify where to display your content and check if the picture is in one of these categories.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.