This script will allow you to make pages external to ipb that are wrapped in the forum skin, i have not tested this and am posting it for someone here, so if it does nopt work post your errors/problems.
EDIT: obviously paths and stuff will need changing.
Code:
<?php
require_once( 'arbre_temp/forums/'.'initdata.php' );
require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );
require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );
$registry = ipsRegistry::instance();
$registry->init();
$registry->output->setTitle('Title');
ob_clean();
ob_start();
include('my_script.php');
echo 'some text';
$tampon = ob_get_contents();
ob_clean();
$registry->output->addContent($tampon);
$registry->output->sendOutput();
?>
EDIT: obviously paths and stuff will need changing.