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: costum php Code in theme.php  (Read 3023 times)

0 Members and 1 Guest are viewing this topic.

ve.ru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
costum php Code in theme.php
« on: October 30, 2004, 04:20:10 pm »

Hi,

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

thanks,
verena
« Last Edit: November 03, 2004, 04:56:52 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: costum php Code in theme.php
« Reply #1 on: October 31, 2004, 07:41:31 am »

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
Logged

ve.ru

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: costum php Code in theme.php
« Reply #2 on: November 02, 2004, 11:43:41 pm »

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:
Code: [Select]
// 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
Code: [Select]
function theme_display_cat_list($breadcrumb, &$cat_data, $statistics)to get the categories in columns.

verena
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.