Show latest posts on HTML page

Ellie

Member
Hi,

When we used VB we displayed the latest posts from a specific forum on our html website using the following:

Code:
 <script type="text/javascript" src="http://www.soapchat.net/external.php?type=js&forumids=229"> </script>
      <script language="" type="text/javascript">

var name1 = new String();
var title1 = new String();
for (x = 0; x < 5; x++){
name1 = threads[x].poster;
if (name1.length > 15){
name1 = name1.slice(0,15) + "..";
}
title1 = threads[x].title;
if (title1.length > 35){
title1 = title1.slice(0,35) + "..";
}
document.writeln("<img class=\"inlineimg\"src=\"http://images.findicons.com/files/icons/1581/silk/16/bullet_star.png\" alt=\"\" border=\"0\" /> <a href=\"http://www.soapchat.net/showthread.php?t="+threads[x].threadid+"\">"+title1+"</a><span class=\"time\"><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Posted by "+name1+"</span><br>");}
        </script>

Is it possible to use this for Xenforo? If so is it a matter of changing external.php to some other file name?
 
There's no option to do anything like that built in to XF. The RSS feeds would be the closest but that'd need a more extensive system.
 
Top Bottom