Skip to content
WJunction - Webmaster Forum

IPB3 External Page Template

Status
Not open for further replies.
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.

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.
 
Status
Not open for further replies.

About the author

D
Active Member · Joined
1,399
Messages
64
Reactions
48
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom