PirateTinman
05-03-2009, 08:34 PM
Hi
I have been playing allot arround with this whole vBulletin, and I have just figured out how to use the External Data Provider option to write data to the external.php file, I also figured out how to collect that information with a JavaScript so that I can display that on any website.
The thing I wanted to know is if it is possible to get the text from the first message in a post?
Right now the code on my website looks like this:
<script type="text/javascript" src="http://www.my-site.com/forums/external.php?forumids=2&fulldesc=1&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 1; x++)
{
document.writeln("<a href=\"http://www.my-site.com/forums/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Posted By: "+threads[x].poster+" "+threads[x].threaddate+" "+threads[x].threadtime+")<br />");
}
//-->
</script>
That displays a text like this on my website:
News (Posted By: User 01-01-1970 00:00 AM)
What I would like then is the rest of the post displaying under it (right here) and not only the title and who and when posted it.
I guess there can be a way to querry that as it knows the link to the page where the post is.
Any response would be very appreciated and if you require any more information I will be happy to help.
Thanks!
I have been playing allot arround with this whole vBulletin, and I have just figured out how to use the External Data Provider option to write data to the external.php file, I also figured out how to collect that information with a JavaScript so that I can display that on any website.
The thing I wanted to know is if it is possible to get the text from the first message in a post?
Right now the code on my website looks like this:
<script type="text/javascript" src="http://www.my-site.com/forums/external.php?forumids=2&fulldesc=1&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 1; x++)
{
document.writeln("<a href=\"http://www.my-site.com/forums/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Posted By: "+threads[x].poster+" "+threads[x].threaddate+" "+threads[x].threadtime+")<br />");
}
//-->
</script>
That displays a text like this on my website:
News (Posted By: User 01-01-1970 00:00 AM)
What I would like then is the rest of the post displaying under it (right here) and not only the title and who and when posted it.
I guess there can be a way to querry that as it knows the link to the page where the post is.
Any response would be very appreciated and if you require any more information I will be happy to help.
Thanks!