How to let Javascript feeds include post body?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ThorstenA
    Senior Member
    • Nov 2004
    • 3082
    • 4.0.x

    How to let Javascript feeds include post body?

    I want to have a javascript feed, that shows title and post. This is code from official documentation :
    Code:
    <script src="http://www.yourdomain.com/forumpath/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>
    Is there a threads[i].description variable? Where do I find variables I can used from vbulletin that I can use within javascript? Thanks.
  • Andy Huang
    Senior Member
    • Feb 2004
    • 4602

    #2
    Javascript output does not provide any information aside from thread information. If you want anything resembling to the post content, you will need to use RSS and parse the description of it (RSS offers first n characters of the post depending on preview length).
    Best Regards,
    Andy Huang

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...