2005-12-05, 03:43 AM
hey guys
i have some code here i'm playing with that works pretty well to make a custom page with the myBB header and footer and session management..
what i want to do is basically insert a thread from the forum in there just before ob_end_clean(); ... i would know the tid and could pass it to whatever code i call at that spot... but the question is what code, hook, plugin do i use to just drop that thread in there without any header/footer "wrapping" on it?
thanks in advance
s
i have some code here i'm playing with that works pretty well to make a custom page with the myBB header and footer and session management..
define("KILL_GLOBALS", 1);
require "./global.php";
require "./inc/functions_post.php";
$newpage = 0;
$templatelist = _blank_page;
$newpage="<html><head><title>Custom page</title>";
eval("\$newpage .= \"".$templates->get("headerinclude")."\";");
eval("\$newpage .= \"".$templates->get("fuoc")."\";");
eval("\$newpage .= \"".$templates->get("header")."\";");
ob_start();
include 'includefile.htm';
$newpage.= ob_get_contents();
ob_end_clean();
eval("\$newpage .= \"".$templates->get("footer")."\";");
outputpage($newpage);
what i want to do is basically insert a thread from the forum in there just before ob_end_clean(); ... i would know the tid and could pass it to whatever code i call at that spot... but the question is what code, hook, plugin do i use to just drop that thread in there without any header/footer "wrapping" on it?
thanks in advance
s