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: Changing links on different pages  (Read 3567 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.018 seconds with 21 queries.