Accessing IPB templates inside a Drupal 7 theme
Posted by stefan vaduva on November 12, 2010 at 10:15pm
<?php
chdir('/path/to/forum/dir'); //replace this with your forum path
define( 'IPB_THIS_SCRIPT', 'public' );
require_once( './initdata.php' );
require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );
require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );
$reg = ipsRegistry::instance();
$reg->init();
$output = $reg->getClass('output');
$content = render($page['content']); //this adds the Drupal content into the IPB template
$output->addContent($content);
$output->sendOutput();
?>We have 2 problems:
Read more