forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: atmorell on September 08, 2007, 07:58:19 pm

Title: use php in index.html
Post by: atmorell 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.
Title: Re: use php in index.html
Post by: Nibbler on September 08, 2007, 08:29:13 pm
What is index.html?
Title: Re: use php in index.html
Post by: atmorell on September 08, 2007, 09:16:02 pm
themes\mytheme\index.html

it's the layout of my site.

Best regards.
Asbjørn Morell.
Title: Re: use php in index.html
Post by: atmorell 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 (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
Title: Re: use php in index.html
Post by: atmorell 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.
Title: Re: use php in index.html
Post by: Stramm on September 09, 2007, 09:00:32 am
please start a new thread and attach the code you have in your custom header