Log in

View Full Version : Help! How to display latest threads on external site w/links


Mikhailtech
06-20-2007, 03:13 PM
Hi,

I've been searching this forums for a while now but couldn't find the exact thing I'm looking for. I basically want to create a module (technically just content wrapped inside a module I'll be making) that displays the latest X threads in our forums, with links to these threads. I know you have to do it via RSS feeds and I did come across this:

http://www.vbulletin.com/docs/html/main/vboptions_externaldataprovider_implementing

I've integrated the custom code listed there into my website. Go to http://www.mikhailtech.com, view the source code and scroll the bottom. The threads should show up where the module called "latest threads" is. I'm probably doing something wrong. Here's the code that I was told to use:

<script src="http://forum.mikhailtech.com/external.php?type=js" type="text/javascript"></script>
<script type="text/javascript">
<!--
for (i in threads)
{
document.writeln(threads[i].title + " (" + threads[i].poster + ")<br />");
}
//-->
</script>


This doesn't seem to return anything though. Any ideas? Is there any other way to place latest threads with links to the threads on an external site?


EDIT: I'm getting a javascript error that says 'threads' is undefined.

chvlad
06-27-2008, 11:30 PM
...
EDIT: I'm getting a javascript error that says 'threads' is undefined.

I have the same problem - only in IE :(