Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Adding php to theme.php  (Read 2440 times)

0 Members and 1 Guest are viewing this topic.

suppster

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Adding php to theme.php
« on: July 30, 2009, 07:43:31 pm »

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!
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.