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

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

Main Menu

Adding php to theme.php

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

Previous topic - Next topic

0 Members and 1 Guest 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!