From: Reini U. <ru...@x-...> - 2005-06-09 16:54:55
|
> I want to modify template files with a 1.2.7 clean install. with phpwiki-1.2.x php code is forbidden inside templates. you have to use something higher than 1.3.6 or so. before we just replaced some magic vars in the template string and dumped that to the client. now we eval the template. > Essentially, I want to 'wrap' the wiki with elements form an existing > webpage (common headers, footer, ads, etc). that's ok. > 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. see above. not possible. > 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. -- Reini Urban http://phpwiki.org/ http://xarch.tu-graz.ac.at/home/rurban/ |