Floris
Wed 12th Oct '05, 1:44pm
############# Install Instructions
## THIS WILL DISPLAY THE LATEST 10 ACTIVE THREADS ON THE FORUM'S INDEX PAGE
## For vBulletin version 3.5.0 stable.
## Admin Control Panel > vBulletin Options > vBulletin Options > External Data Provider > Use External Data Provider:
YES - type = JavaScript
## Admin Control Panel > Styles & Templates > Style Manager > Dropdown: 'edit templates' > expand the group 'Forum Home
Templates' > select the template 'FORUMHOME' and click on the [Customize] button.
## Find this code:$navbar
## Below this, on a new line, add this code:
<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 href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> <span class=\"time\">($vbphrase[posted_by]: "+threads[x].poster+")</span><br />");
}
//-->
</script></div>
</td>
</tr>
</tbody>
<!-- show latest active threads -->
</table>
<br />
</if> ## Save the template and you're done.
## THIS WILL DISPLAY THE LATEST 10 ACTIVE THREADS ON THE FORUM'S INDEX PAGE
## For vBulletin version 3.5.0 stable.
## Admin Control Panel > vBulletin Options > vBulletin Options > External Data Provider > Use External Data Provider:
YES - type = JavaScript
## Admin Control Panel > Styles & Templates > Style Manager > Dropdown: 'edit templates' > expand the group 'Forum Home
Templates' > select the template 'FORUMHOME' and click on the [Customize] button.
## Find this code:$navbar
## Below this, on a new line, add this code:
<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 href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> <span class=\"time\">($vbphrase[posted_by]: "+threads[x].poster+")</span><br />");
}
//-->
</script></div>
</td>
</tr>
</tbody>
<!-- show latest active threads -->
</table>
<br />
</if> ## Save the template and you're done.