Adding php to theme.php Adding php to theme.php
 

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

Adding php to theme.php

Started by suppster, July 30, 2009, 07:43:31 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

suppster

I am trying to add a custom image for each album, instead of the thumbnail. I was thinking to edit theme.php and use an if statement to check the album name then display the appropriate image, for example:

<?php if($ALBUM_TITLE=="funny") {?>
<span class="alblink"><a href="{ALB_LINK_TGT}"><b>{ALBUM_TITLE}</b></a></span> <?php } ?>

But for some reason no php seems to work in theme.php, not even <?php echo"blah"; ?>

Is there another way to do this? Why is php not working in the  templates in theme.php?

Thanks!