*warning* javascript/php noob here. I'm in the process of learning, but would *HIGHLY* appreciate some help on this. The bolded code is what I'm editing:
(note I'm using
wz_tooltip.js, a javascript tooltip and the
how to display active threads on forum home
Code:
<script type="text/javascript" src="/js/tooltips/wz_tooltip.js"></script>
<if condition="$vbulletin->options['externaljs']">
<!-- show latest active threads -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"
align="center">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_external')"><img
id="collapseimg_forumhome_external"
src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_external].gif" alt="" border="0" /></a>
<a href="search.php?$session[sessionurl]do=getnew">Latest Active Threads</a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_external" style="$vbcollapse[collapseobj_forumhome_external]">
<tr>
<td class="alt1" width="100%">
<div class="smallfont">
<script type="text/javascript" src="external.php?type=js"></script>
<script language="" type="text/javascript">
<!--
for (var x in threads)
{
document.writeln("<img class=\"inlineimg\" src=\"$stylevar[imgdir_button]/lastpost.gif\" alt=\"\" border=\"0\" />
<a onmouseover=\"Tip('<b>Thread Title:</b> $threadinfo[title]<br/>
<b>Last Post Time:</b> $gnpdate<br/>
<b>Username of Last Poster:</b>$threadinfo[musername]<br/>
<b>Preview of Thread:</b>$threadinfo[preview]')\" onmouseout=\"UnTip()\" href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br />");
}
//-->
</script></div>
</td>
</tr>
</tbody>
<!-- show latest active threads -->
</table>
<br />
</if>
As it is, nothing shows up in the tooltip.
What's wrong with my variables? Thank you very much in advance!