UBB.Dev
Posted By: Ian_W Ability to use custom headers outside of forum - 06/12/2007 11:42 PM
Hi,

I am trying to find a way (and failing at the moment) to include custom headers and footers on pages outside of UBB.

At the moment I can pull in the default header and footer just fine, and of course forums can have their own custom headers/footers - but I cannot find a way to extend this outside of the forum.

Anyone have any suggestions, or maybe someone wishes to earn a few pennies wink

Many thanks.
I would just cheat. Create a new page for ubb (based on sample.inc.php). in &page_***_run() just include the script, buffer the output and pass the output as the only variable in $smarty_data. [ $smarty_data = array('stuff'=>$output); ] Then create a template that consists soley of
Code
{$stuff}

Upload that, call ?ubb=***
Or you could cheat even more and just include the custom header/footer in the files you want.
Yes - but then it would show both the default header and the custom one, surely - bearing in mind I also wish to keep the side bars smile
Still struggling with this - thought I was onto a method - but it didn't work frown LOL
© UBB.Developers