PDA

View Full Version : External Data Question


davepurcell
11-18-2009, 05:11 PM
We're using the External Data to show the last x threads on our homepage.
The code we're using is

<!--
for (x = 0; x < 5; x++)
{
document.writeln("<img src=\"http://www.URL.com/images/icons/icon1.gif\" border=\"0\"> <a href=\"http://www.URL.com/showthread.php?t="+threads[x].threadid+"\"><b>"+threads[x].title+"</b></a> <br><br><br>");
}
//-->

Doing it this way shows http://img257.imageshack.us/img257/3729/icon1s.gif for ALL posts.

We have a news icon for news posts, is there anyway we can use a different bit of code to show the image that a user chooses for their post instead of icon1?