php includes php includes
 

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

Main Menu

php includes

Started by MrBiggZ, November 05, 2007, 01:45:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MrBiggZ

I searched the forum and found a few things about php includes.  Unfortunately, I thought the solutions where rather vague.

I saw that in almost every instance it was said you can't use an include with the gallery.  I read something about using an iframe.  I gave that a try and that didn't work either.

I'd rather not .. but I'm guessing that you have to include all that code in the include right in the template.html file.

Is there an easier way to get this to function??    ???

Thx in advance!

Joachim Müller

You can't use a PHP include within template.html, as this file is for plain HTML, JavaScript and CSS only. There are various threads that explain how to include custom PHP code. The tricky bit is that you can not include anything, but only certain files: you can not include PHP code that tries to manipulate the file header, but only stuff that manipulates or creates the HTML output within the body section.
If you need instructions ready for copy and paste, you'll have to explain what the file you want to include does. For a start, post the code of the file you want to include.