Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Adding php to theme.php  (Read 2393 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.031 seconds with 19 queries.