Showing content only on certain albums Showing content only on certain albums
 

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]

Main Menu

Showing content only on certain albums

Started by ian ditch, December 22, 2005, 10:29:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ian ditch

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?

donnoman

well if your code works


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


then changing it to

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


should do what you want.

ian ditch