Include function only works in .php extension files, ok but if i rename template.html to .php the gallery dont understand it.
What code i must change to run template.html as template.php?
Thankyou
i think it´s in include\init.inc
not sure so....
line 113 of include/init.inc.php is where TEMPLATE_FILE is defined.
change:
define('TEMPLATE_FILE', 'template.html');
to:
define('TEMPLATE_FILE', 'template.php');
I changed it and coppermine reads from template.php ok
But when it loads in the web dont run the include, very strange, if i put the complete url to template.php it runs the include well.
You usally need to put at least the relavtive path to your includes in your script.
wouldn't theme.php be a better place todo the what ever it is your trying todo?
You can't insert php code into template.html, no matter what you rename it to.
PHP code has to go into theme.php!
Read the faq!
GauGau
I want Split my templete.html in 2 parts, first one file header.php (the header that will be included in template.html/php) Do you know how can i do it?
you can not have php in template.html !!!!
Read http://coppermine.sourceforge.net/faq.php?q=customHeader#customHeader for custom headers...
GauGau