IPB forum integration

Events happening in the community are now at Drupal community events on www.drupal.org.
stefan vaduva's picture

Accessing IPB templates inside a Drupal 7 theme

<?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
Subscribe with RSS Syndicate content