| ![]() ![]() ![]() ![]() | Join Date: Jul 2006 | Posts: 11,228 | Location: Topeka, KS | iTrader: (0) | Sponsor our Next Contest! |
Display your active threads on any html page
This will put your latest X threads on any html page as long as you have your external RSS on for JavaScript.. You should have this enabled anyways if you care about SEO.
This is how you enabled or check your settings if you are unsure.
Admin Control Panel > vBulletin Options > vBulletin Options > Admin Control Panel Options > Use External Data Provider:
YES - type = JavaScript
Add this code to any html page you want. I've added it in our sidecolumn.
This code will show who posted and the time and a little icon. I've edited this code some to cleans things up.
This is what I've used on the side panel.
if you would like to limit the # of threads
find:
and change to
change the 10 to w/e you want.
to limit this to selected forums
look for:
and change to:
change the 95,96,97.. to the forumID's that you want.
Enjoy
This is how you enabled or check your settings if you are unsure.
Admin Control Panel > vBulletin Options > vBulletin Options > Admin Control Panel Options > Use External Data Provider:
YES - type = JavaScript
Add this code to any html page you want. I've added it in our sidecolumn.
This code will show who posted and the time and a little icon. I've edited this code some to cleans things up.
PHP Code:
<!-- show latest active threads -->
<table cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tbody>
<tr>
<td colspan="2">
<a href="search.php?do=getnew">Latest Active Threads</a>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td width="100%">
<div>
<script type="text/javascript" src="external.php?type=js"></script>
<script language="" type="text/javascript">
<!--
for (var x in threads)
{
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Posted By: "+threads[x].poster+")<br />");
}
//-->
</script></div>
</td>
</tr>
</tbody>
<!-- show latest active threads -->
</table>
<br />
if you would like to limit the # of threads
find:
PHP Code:
for (var x in threads)
PHP Code:
for (x = 0; x < 10; x++)
to limit this to selected forums
look for:
PHP Code:
<script type="text/javascript" src="external.php?type=js"></script>
PHP Code:
<script type="text/javascript" src="external.php?forumids=95,96,97,98&type=js"></script>
Enjoy
--------------------
Add our Facebook Blog, Group and LinkedIn group.. Thanks
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Add our Facebook Blog, Group and LinkedIn group.. Thanks
Stay up to date by installing our Tool Bar











Linear Mode

