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: How to use php in your template? + errors in the docs  (Read 3126 times)

0 Members and 1 Guest are viewing this topic.

MaThIbUs

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 130
  • I rock.
    • http://mathibus.com/
How to use php in your template? + errors in the docs
« on: January 17, 2004, 03:09:27 pm »

Well, the title says it all...

I tried renaming template.html to template.php and then change the variable in includes/init.inc.php, but it just doesn't seem to work :(

btw, there are some small errors in the documentation:
Quote
To create a new template the best solution is to use an existing one as a basis. Do do that make a copy of the folder of the theme you want to use as a basis then edit the "template.html" and "template.php" files and replace all occurences of "themes/old_theme_dir" with "themes/new_theme_dir" in order for the links to point to the correct place.

It should say:
Quote
To create a new template, the best solution is to use an existing one as a basis. To do that, make a copy of the folder of the theme you want to use as a basis. Then edit the "template.html" and "theme.php" files and replace all occurences of "themes/old_theme_dir" with "themes/new_theme_dir" in order for the links to point to the correct place.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How to use php in your template? + errors in the docs
« Reply #1 on: January 18, 2004, 10:55:27 am »

you simply can't use php in the templates (see faq: custom header).
Thanks for pointing out the typos, I updated the dev version of the readme accordingly.

GauGau
Logged

MaThIbUs

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 130
  • I rock.
    • http://mathibus.com/
How to use php in your template? + errors in the docs
« Reply #2 on: January 18, 2004, 07:11:21 pm »

Thanks for the reply. I'll try editing theme.php then.

I thought it might've been possible using a hack, as there's a mod for this for phpBB... More info about that here.

/m_aTh!bUs
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 14 queries.