PDA

View Full Version : How to use External Data Provider


chriske
05-19-2010, 06:49 PM
Hi,

Are you using the External Data Provider?
can anyone give me an example of how you used this on your website?

I found a script to display the lastest posts on a html page.
So far so good, but how do you control the content that is displayed? (with css)

For instance I want the text displaying the poster to be smaller:
(Posted by: "+threads[x].poster+")

I hope someone can give me more information,

<!-- 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 />

Script from: link (http://forum.vbulletinsetup.com/f18/display-your-active-threads-any-html-2628.html)