costum php Code in theme.php costum php Code in 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

costum php Code in theme.php

Started by ve.ru, October 30, 2004, 04:20:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ve.ru

Hi,

is there a way to include custom php code in theme.php, including echo and print statements?

thanks,
verena

Joachim Müller

yes, you're free to add code anywhere. Without more details, you can't expect a ready to copy'n paste answer, as it depends on what you want to insert and where it is suppossed to appear. You're probably looking for a way to add a custom header/footer, so I suggest you take a look into http://forum.coppermine-gallery.net/index.php?topic=9863.0

Joachim

ve.ru

Thanks for your hint, but  was looking for something else. I wanted to change the category list and tried to add some php code to this part:

// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
        <tr>
                <td width="100px" class="tableh1"></td>
<td width="100px" class="tableh1"></td>
<td width="100px" class="tableh1"></td>
<td width="100px" class="tableh1"></td>
<td width="*" class="tableh1"></td>
        </tr>
<!-- END header -->


but php isn't interpreted in this part of the template. But I found a way to edit
function theme_display_cat_list($breadcrumb, &$cat_data, $statistics)
to get the categories in columns.

verena