Okay, it's been quite some time since I worked on this concept, but I've just finished a working version of the template.
Basically, it's quite easy to implement:
overall_header.php, Line 1:
- Code: Select all
<!-- PHP -->
//Load the Joomla page
$file = file_get_contents("http://localhost/exordium/joomla/index.php?option=com_content&task=view&id=13&Itemid=27");
<!-- ENDPHP -->
That page you see there is just a blank page. It does not matter where it is because you can replace the Joomla breadcrumb with the phpbb breadcrumb.
overall_header.php, where you want to replace a joomla tag (eg the breadcrumb):
- Code: Select all
<!-- PHP -->
//Breadcrumb
$startc = strpos($file, "<!-- Start Crumb -->");
$part = substr($file,0,$startc);
//Print our part out
echo $part;
<!-- ENDPHP -->
<!-- PhpBB Crumb Start -->
<!-- INCLUDE breadcrumbs.html -->
<!-- PhpBB Crumb End-->
<!-- PHP -->
$endc = strpos($file, "<!-- End Crumb -->");
$len = strlen($file);
$file = substr($file,$endc,$len-$endc);
<!-- ENDPHP -->
overall_footer.php, end of file:
- Code: Select all
<!-- PHP -->
$endc = strpos($file, "<!-- End Other Footer -->");
$len = strlen($file);
$file = substr($file,$endc,$len-$endc);
echo $file;
<!-- ENDPHP -->
Basically, it just replaces things in the Joomla template (for me, it was <!-- Start Section --> through to <!-- End Section -->) with stuff you define in the phpbb template.
Does anyone see any major issues with this, appart from relying on Joomla to be up the whole time? (Specifically performance related)