View Single Post
  #1   IP: 222.184.47.203
Old 2009-07-29, 07:04 AM
topvip topvip is offline
超级版主
 
Join Date: 2006-01-04
Posts: 1206
topvip 正向着好的方向发展
Default Show latest threads on showthread

Do you ever wanted to show latest threads on showthread ? You can do that without products. All you need is to use build-in RSS feed. Here you will be presented all topics within this forum and all subforums. It's working great.


############# Install Instructions

## Admin Control Panel > vBulletin Options > vBulletin Options > External Data Provider > Use External Data Provider:
YES - type = JavaScript

## Place this code into template ad_showthread_beforeqr
Code:
<!-- show latest active threads -->
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
<tbody><tr><td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_external')"><img 
id="collapseimg_forumhome_external" 
src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_external].gif" alt="" border="0" /></a>
<a href="forumdisplay.php?f=$foruminfo[forumid]">New topics in $foruminfo[title]</a>
</td></tr></tbody>

<tbody id="collapseobj_forumhome_external" style="$vbcollapse[collapseobj_forumhome_external]">

<tr><td class="alt1" width="100%" valign="top">
 
<div class="smallfont">

<script type="text/javascript" src="external.php?forumids=$foruminfo[childlist]&type=js"></script>
<script language="" type="text/javascript">
<!--
for (var x in threads)
{
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"&goto=newpost\"><img class=\"inlineimg\" src=\"$stylevar[imgdir_button]/firstnew.gif\" alt=\"\" border=\"0\" /></a> <a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> <br />");
}
//-->
</script>

</div>
 
</td>



</tr></tbody>
</table>

<!-- / show latest active threads -->
Reply With Quote