I got around it by creating two templates .. a header and a footer and calling them in the actual php file. Then just write your php code in the actual file between the header and footer calls. Makes life much easier IMO. So far no problems, but my code doesnt require me using vBulletin variables in my script. If I did have to tho, I think I would just create a new template and call the template from the page. Let me know if this works for you.
--------------- Added [DATE]1201307122[/DATE] at [TIME]1201307122[/TIME] ---------------
actually I take that back. I have put the template directly into the php file with all variables surrounded by <?php echo ::code:: ;?>.. I did this for the header and footer .. and just did normal php/html in the middle. Works fairly well.. Except the title variable doesnt work, which makes me wonder was other variables arent working..... If theres a better way to output template variables in php pages instead of ECHO .. please let me know.
|