Ok I tried without a function and purely tried on the else statement:
PHP Code:
if (isset($_GET['submit'])) {
if (empty($_GET["username"]) || empty($_GET["when"]) || empty($_GET["where"]) || empty($_GET["offence"])) {
$formErr = "<br>You have not completed the entire form - everything must be completed! (*)";
} else {
$username = $_GET["username"];
$when = $_GET["when"];
$where = $_GET["where"];
$forumid = "33";
$threadinfo = array();
$foruminfo = fetch_foruminfo($forumid);
$threaddm =& datamanager_init('Thread_FirstPost', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
$threaddm->set('forumid', $forumid);
$threaddm->set('userid', "1");
$threaddm->set('pagetext', 'textul meu');
$threaddm->set('title', 'titlul meu');
$threaddm->set('allowsmilie', '1');
$threaddm->set('visible', '1');
$threaddm->set_info('forum', $foruminfo);
$threadid = $threaddm->save();
build_forum_counters($forumid);
}
}
And still receiving a blank page (assuming error).