Im creating a custom Post-Registration Application system for our use.
On submit all the info is stored in custom profile fields, A post is made with the information in our application review forum.
However Im having a problem with the Template in this system.
If I render the template before the post the post doesnt happen.
If I render the template after the post, the render doesnt happen. IE Blank white page
PHP Code:
$threaddm = new vB_DataManager_Thread_FirstPost($vbulletin, ERRTYPE_STANDARD);
$threaddm->set_info('forum',$foruminfo);
$threaddm->set_info('user', $vbulletin->userinfo);
$threaddm->set('forumid', $forumid);
$threaddm->set('userid', 197);
$threaddm->set('title', $threadtitle);
$threaddm->set('pagetext', $formoutput);
$threaddm->set('open', TRUE);
$threaddm->set('allowsmilie', TRUE);
$threaddm->set('visible', TRUE);
$threaddm->pre_save();
$threadid = $threaddm->save();
unset($threaddm);
build_thread_counters($threadid);
build_forum_counters($forumid);
PHP Code:
$navbits = construct_navbits($navbits);
$navbar = render_navbar_template($navbits);
$templater = vB_Template::create('ets_tester_application_submit');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
foreach($userdata as $key=>$value){
$templater->register($key,$value);
}
print_output($templater->render());
Anyone have any ideas on this?