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: Showing content only on certain albums  (Read 3030 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.017 seconds with 20 queries.