Advanced search  

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

Pages: [1]   Go Down

Author Topic: How to call other .php files into template.html  (Read 3051 times)

0 Members and 1 Guest are viewing this topic.

Hanna.

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 227
  • webstar
How to call other .php files into template.html
« on: March 30, 2023, 05:12:30 pm »

I'm trying to add this:

Quote
<?php  include "./welcome.php";?>


into template.html but it won't display. I need to be able to include/import php files in the template to save myself each time I change the theme colors/layout.

Please advise.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: How to call other .php files into template.html
« Reply #1 on: March 30, 2023, 05:44:45 pm »

You can not run PHP code from an .html file.

See here for adding custom PHP code.
Logged

Hanna.

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 227
  • webstar
Re: How to call other .php files into template.html
« Reply #2 on: March 30, 2023, 06:23:35 pm »

You can close this topic. I was able to locate the plugin that you provided me a while back in regards to this. Thanks!
Logged

Hanna.

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 227
  • webstar
Re: How to call other .php files into template.html
« Reply #3 on: March 30, 2023, 06:23:54 pm »

Logged
Pages: [1]   Go Up
 

Page created in 0.039 seconds with 19 queries.