Quote:
Originally Posted by Spinball
This is a great hack. Problem for me is that I want to include an external HTML file into the forum header.
E.g.
If I try to use php in the header or footer, it doesn't like it.
How would I do some php scripting, please?
|
Spinball,
What exactly are you trying to do? Is it possible to create a template with the contents of your external html file? If yes, then create it and then you go in global.php, and find
Above that add something like
PHP Code:
'sponsorspanel',
in between the list you see there. Then, go into your phpinclude_start template and add a line like
PHP Code:
eval('$sponsorspanel = "' . fetch_template('sponsors_panel') . '";');
Then, you can use the variable $sponsorpanel wherever you want in the other templates.
Another method is to do the evaluation of the templates in global.php, instead of phpinclude_start. Several ways exist.
In either case, all you have to do, is to make sure that the template sponsors_panel contains the HTML code you want.
Sorry if this is not the case of what you are trying to do. The above helped me.
Rgds