Hi wretch,
wretch wrote:Thank you for the replies. No one has attempted to integrate this into an existing php template system?
Yes, there are several examples on the net: the main difference is that they started moving their templates into the PMF ones.
wretch wrote:I have seen a few sites using iframes, but I would rather not go down that archaic path.
Why not if this could be the key for solving your issue? As said before, PMF needs to set 2 cookies so you have two choices for being able to upgrade your PMF installation in the future:
- hacking the PMF index,php file, as Thorsten said, for moving the set of the two cookies just before the first PHP output in your template: this is an option that take you far from having an easy upgrade process of PMF during the life of your site;
- removing from the index.tpl what is not needed such as the PMF banner and so on and using an iframe in your template to link the /path/to/PMF/index.php file: this will preserve both from cookies issues and from time issues about PMF upgrading
That's why I've suggested you the IFRAME solution.
wretch wrote:Even after I enabled php parsing for the .tpl files in PMF configuration, the include code was not recognized, and skipped over by php. The only way it reacts is when I include in index.php. I'm not sure what might be causing that.
Put this code below into the index.tpl file:
Code: Select all
...
</head>
<body dir="ltr">
<!-- DEBUG CODE - START -->
<div id="debug">
<?php
print 'Fixme!';
?>
</div>
<!-- DEBUG CODE - END -->
<div id="wrapper1">
<div id="wrapper2">
...
If PHP parsing is enabled in your PMF configuration, in your HTML file you'll see (tested now):
Code: Select all
...
<!-- DEBUG CODE - START -->
<div id="debug">
Fixme!
</div>
<!-- DEBUG CODE - END -->
...
For discovering IF the cookie issue is blocking the PHP parsing please try to test your PHP code into index.tpl within the context of a
normal PMF setup, in order to understand if there is an issue in the PMF code.