Changing links on different pages Changing links on different pages
 

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]

Main Menu

Changing links on different pages

Started by ian ditch, February 12, 2006, 01:22:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ian ditch

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

ian ditch

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