Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Adding Text only under images from a specific catergory  (Read 3472 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: 15764
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: 15764
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.019 seconds with 19 queries.