From: Paul M. <pmm...@gm...> - 2005-06-08 22:58:00
|
Hello. I have searched for this information, but I can't seem to find it anywhere, although I believe it to be possible. I want to modify template files with a 1.2.7 clean install. Essentially, I want to 'wrap' the wiki with elements form an existing webpage (common headers, footer, ads, etc). I have changed the template extension to .php and changed the reference to it in config.php. It loads the template as-is with the new extension perfectly. The problem is that the new php code I am now inserting into it is not getting executed. I have a require() at the top of the renamed template file, and then I run a few custom canned functions from this included file (adRotate(), displayUsers(), etc). None of these execute properly when run from within the .php template. Do I need to make any other changes to execute php code in the template? This should (I think) be very straightforward but I can't find any information about executing code on the WIKI itself or in this mailist archives. Thanks in advance, Paul |