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: use php in index.html  (Read 4239 times)

0 Members and 1 Guest are viewing this topic.

atmorell

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
use php in index.html
« on: September 08, 2007, 07:58:19 pm »

Hello,

I have a single page (displayimage.php) where I would like to strip everything. (Header, menu and footer) Now that should be pretty easy to control in index.html - but if I do a small php test <?php echo "test"; ?> in index.html I don't get anything echoed. It looks like coppermine ignoes my php in that file.

Any ideas?

Best regards.
Asbjørn Morell.
Logged

Nibbler

  • Guest
Re: use php in index.html
« Reply #1 on: September 08, 2007, 08:29:13 pm »

What is index.html?
Logged

atmorell

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: use php in index.html
« Reply #2 on: September 08, 2007, 09:16:02 pm »

themes\mytheme\index.html

it's the layout of my site.

Best regards.
Asbjørn Morell.
Logged

atmorell

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: use php in index.html
« Reply #3 on: September 09, 2007, 07:09:37 am »

Hello,

Sorry but I have typed the wrong filename :( I am trying to use php in www.domain.com/themes/mytheme/theme.html Hmmmm that is also the reason I could not find the answer in this forum. http://forum.coppermine-gallery.net/index.php?topic=35937.0 It looks like it is not possible. However I could move the stuff from theme.html to a custom header page. (header.php) Will try that tomorrow.

Best regards.
Asbjørn Morell
Logged

atmorell

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: use php in index.html
« Reply #4 on: September 09, 2007, 07:51:05 am »

Hello,

I am so close from having this working! The only problem I have is that my {PLACEHOLDERS} does not get resolved in my custom_header.php and custom_footer.php file. Don't know if I should open a new thread. (1 question/thread) Is there a function to fetch the placeholder result?

Best regards.
Asbjørn Morell.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: use php in index.html
« Reply #5 on: September 09, 2007, 09:00:32 am »

please start a new thread and attach the code you have in your custom header
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.