Hi, I'm trying to get the a headline feed on another HTML site from my forum. I'm using the code from this thread. I've edited the url on the first part of the Java to reflect the location of the forums I want headlines from.
However, the code is not displaying the HTML on the page at the external site. I think I need to alter the java code for the thread's URL also, but I'm not sure how (I'm not a coder).
Can someone tell me what's going wrong. I tried the Java code in the manual and it worked, it pulled the thread titles, but without the thread URLs. I know the first url with the forum IDs is fine in the javascript, but I'm lost with the more complicated Java syntax below it. I can see the Href but aren't sure how to customise to work - I've tried a couple of variations. Any help welcomed.
However, the code is not displaying the HTML on the page at the external site. I think I need to alter the java code for the thread's URL also, but I'm not sure how (I'm not a coder).
Can someone tell me what's going wrong. I tried the Java code in the manual and it worked, it pulled the thread titles, but without the thread URLs. I know the first url with the forum IDs is fine in the javascript, but I'm lost with the more complicated Java syntax below it. I can see the Href but aren't sure how to customise to work - I've tried a couple of variations. Any help welcomed.
Code:
<script type="text/javascript" src="http://weirdnations.com/external.php?type=js&forumids=25,28,31,34"></script> <script language="" type="text/javascript"> <!-- for (x = 0; x < 10; x++) { document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Posted By: "+threads[x].poster+")<br />"); } //--> </script>
Comment