I need some help bad! I've read the manual and read previous post on including your own php into the main_header.html, but for some reason things are working out for me. I have another php script that places a random banner (image) on the clients website. I want the banner displayed in the main_header.html of the forum.
In the index.php I placed the following function:
And in the setup_options.php I placed:
$topbanner = dobanner();
Then in main_header.html where I want the image to appear which is just rapped around a <td></td>
This does place the banner as specified, but it ignores the location of where it should be, in a table and in a <td></td> of the main_header.html where I called it. In fact I don't even need it in the html file. It places the banner at the very top of the page above all the html code no matter what.
I've also tried placing the function above in bb_functions.php and then the result is "undefined function: dobanner() in setup_options.php".
This could all be resolved if I had the ability to change the .html templates to .shtml files. Is this not possible? I tried editing the index.php file to: ('./templates/'.$tplName.'.shtml') but it still must have an .html extention.
This is different from previous post because my php script calls an image.