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 call other .php files into template.html  (Read 3091 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.02 seconds with 19 queries.