forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: ian ditch on December 22, 2005, 10:29:13 pm

Title: Showing content only on certain albums
Post by: ian ditch 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?
Title: Re: Showing content only on certain albums
Post by: donnoman 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.
Title: Re: Showing content only on certain albums
Post by: ian ditch on December 22, 2005, 11:41:38 pm
Thanks donnoman , That works a treat