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

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