forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: ian ditch on February 12, 2006, 01:22:15 pm

Title: Changing links on different pages
Post by: ian ditch 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
Title: Re: Changing links on different pages
Post by: ian ditch 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