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: Changing links on different pages  (Read 2890 times)

0 Members and 1 Guest are viewing this topic.

ian ditch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Changing links on different pages
« on: February 12, 2006, 01:22:15 pm »

I want to show different links depending on which image is shown in an album

I know I can use

'if (defined('THUMBNAILS_PHP') && $_GET['album'] == XX){
SHOW LINK
}

but this will only show the link on every image within that album

I want to go into an album and then on image 1, 3 and 5 show link a

and then on image 2,4 and 6 to show link b
« Last Edit: February 13, 2006, 12:40:41 am by ian ditch »
Logged

ian ditch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: Changing links on different pages
« Reply #1 on: February 13, 2006, 06:40:36 pm »

OK, after a bit of playing I have found out that if I use  if (defined('DISPLAYIMAGE_PHP') && $_GET['pos'] == 1  ){Content}
I can show my content on picture 'pos=1' but how do I show this same content on picture pos 1, 3, 5 etc?

Please help :P
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.