You have a few typos in there. Try this:
Code:
if ($vbulletin->options['enable'] AND (THIS_SCRIPT=='newthread'))
{
if (in_array($forumid, explode(",", $vbulletin->options['enable_forumid'])))
{
$getinfos = $vbulletin->db->query_read("
SELECT postuserid, threadid, postdate
FROM " . TABLE_PREFIX . "testting
WHERE postuserid = " . $vbulletin->userinfo['userid'] . "
GROUP BY threadid
ORDER BY threadid ASC
");
$count = $vbulletin->db->num_rows($getinfos);
if ($count > 0)
{
$mytest = '<option value="0" selected="selected">0</option>';
while ($getinfo = $vbulletin->db->fetch_array($get_infos))
{
$mytest = '<option value="' . $getinfo[threadid] . '">'. $getinfo[threadid] . '</option>';
}
}
$templater = vB_Template::create('test_newthread');
$templater->register('mytest', $mytest);
$out .= $templater->render();
$vbulletin->templatecache['newthread'] = str_replace('\'' . $messagearea . '\'', '<div class="blockrow">' . $out . '</div>\'' . $messagearea . '\'', $vbulletin->templatecache['newthread']);
}
}