coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: ian ditch on November 19, 2005, 12:18:18 AM

Title: AnyContent.php Question
Post by: ian ditch on November 19, 2005, 12:18:18 AM
I Use anycontent to show the album discription but on the thubnail page.

In this anycontent file  I use this script

Quotestarttable("100%", 'Just An Example');
echo '<tr><td class="tableb">';
echo bb_decode($album_desc);

    ?>
   
    <?php
    endtable();

I want to add an extra script before this which is hidden unless you view /thumbnails.php?album=99.


EG. This script is ONLY shown on /thumbnails.php?album=99


Can Anyone help me?
Title: Re: AnyContent.php Question
Post by: Nibbler on November 19, 2005, 12:21:40 AM

if (defined('THUMBNAILS_PHP') && $_GET['album'] == 99){
    echo 'hello';
}


Also you should use valid html.
Title: Re: AnyContent.php Question
Post by: ian ditch on November 19, 2005, 01:28:05 AM
Thanks Nibbler, Worked a treat