You can do it, but you need to create two plugins.
First, using hook external_query and code
Code:
$hook_query_fields .= " , forum.title AS forumname ";
Second, using hook external_complete and code
Code:
if ($vbulletin->GPC['type'] == 'JS')
{ // javascript output
$output .= "
function forum(forumname, forumid)
{
this.forumname = forumname;
this.forumid = forumid;
}
";
$output .= "var forums = new Array(" . sizeof ($threadcache) . ");\r\n";
if (!empty($threadcache))
{
foreach ($threadcache AS $threadnum => $thread)
{
$thread['forumname'] = addslashes_js(htmlspecialchars_uni($thread['forumname']));
$output .= "\tforums[$threadnum] = new forum('$thread[forumname]', $thread[forumid]);\r\n";
}
}
}
Then you also need to edit the FORUMHOME template, find the code you added, and replace the line that starts with document.write with
Code:
document.writeln("<img class=\"inlineimg\" src=\"$stylevar[imgdir_button]/lastpost.gif\" alt=\"\" border=\"0\" /> <a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> <span class=\"time\">($vbphrase[posted_by]: "+threads[x].poster+")</span> in <a href=\"forumdisplay.php?f="+forums[x].forumid+"\">"+forums[x].forumname+"</a><br />");