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: Showing content only on certain albums  (Read 3028 times)

0 Members and 1 Guest are viewing this topic.

ian ditch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Showing content only on certain albums
« on: December 22, 2005, 10:29:13 pm »

Hi, I want to show content only in certain albums. I can use

'if (defined('THUMBNAILS_PHP') && $_GET['album'] == 41){Content Here}'

but this only shows in album 41.  How do I show this content in albums 41 to 51?
« Last Edit: December 23, 2005, 02:01:37 am by TranzNDance »
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Showing content only on certain albums
« Reply #1 on: December 22, 2005, 11:05:18 pm »

well if your code works

Code: [Select]
if (defined('THUMBNAILS_PHP') && $_GET['album'] == 41){Content Here}

then changing it to
Code: [Select]
if (defined('THUMBNAILS_PHP') && $_GET['album'] >= 41 && $_GET['album'] <= 51){Content Here}

should do what you want.
Logged

ian ditch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: Showing content only on certain albums
« Reply #2 on: December 22, 2005, 11:41:38 pm »

Thanks donnoman , That works a treat
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.