I am using MODx Revolution v2.2.6 and I am nesting a PHP program into my MODx. This program has it's own database and runs i'ts own site. I can then nest this separate program inside MODx using Namespaces and actions. I have already done this with 2 other programs and it works great. The problem that I am having is my templates are in HTML and the new program wants me to add includes onto a PHP page. My master HTML template look like this:
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>My Website</title>
<link href="mystyles/style.css" rel="mystylesheet" type="text/css">
</head>
<body>
<div id="page">
<div id="logo">
[[$logo]] </div>
<!-- menu start -->
<div id="nav">[[$navigation]]</div>
<!-- menu end -->
<div id="content">[[*content]]</div>
<div style="clear: both;"></div>
<img class="graybar" alt="logo_banner" height="5" src="images/bg_banner_grey.gif" width="930" />
<div id="footer">[[$footer]]</div>
</div>
</body>
</html>
The software I am trying to implement has these instructions:
Step 1: Copy the code below and paste it at the top of your PHP page.
<?php
ob_start();
?>
Step 2: Copy the code below and paste it within the HEAD tag of your page.
<script type="text/javascript" src="http://www.MySite.com/core/components/forum45/app45/jabb-0.3.js"></script>
<script type="text/javascript" src="http://www.MySite.com/core/components/forum45/app45/sforum.js"></script>
<link href="http://www.MySite.com/core/components/forum/app45/front.css" type="text/css" rel="stylesheet" />
Step 3: Copy this code and paste it where you want the forum to appear.
{JKFORUM45_TPL}
Step 4: Copy this code and paste it at the very bottom of your PHP page.
<?php
require_once "/MyRoot/core/components/forum45/gmain.php";
?>
Obviously the script wants me to put this coding into a PHP page. Steps 1 and 4 above are the problem I can implement step 2 and 3 into my current HTML template. My templates serve up HTML pages. I have several other scripts from this same maker and all those have an add to header tag and body tag, they work well with HTML pages. This script seems to want to only work with PHP pages (Given Step 1 and Step 4).
Is there a solution so I can show these PHP template variables directly into my HTML template? I am not real familiar with PHP, but have changed HTML pages to PHP in the past just by renaming. So I wouldn't know how to do this or if it would even work. Any ideas as to how to get these to work together? I am baffled as how to approach this.