Advanced search  


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

Pages: [1]   Go Down

Author Topic: Template.php instead of template.html  (Read 2870 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Template.php instead of template.html
« on: June 04, 2005, 07:39:16 pm »

For the bulk of my site I use PHP includes, so basically if I change something in the menu I only change one page, sitemenu.php instead of the whole site.

Unfortunately though, as the template page is .html it will not allow php includes. can someone help me modify the code so that I can use my includes


  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Template.php instead of template.html
« Reply #1 on: June 04, 2005, 07:52:41 pm »

Please note the second bullet here:


  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From
    • Donovan Bray
Re: Template.php instead of template.html
« Reply #2 on: June 04, 2005, 07:55:16 pm »

Search the FAQ and boards for "custom_header" and "custom_footer".

The proper way to do what you describe is to put {TOKENS} where you want the includes to happen in your template.html and you use theme.php to replace the {TOKENS} with your included content in the appropriate sections as described by the FAQ and subsequent articles on the board.
Pages: [1]   Go Up

Page created in 0.025 seconds with 20 queries.