Announcement

Collapse
No announcement yet.

Script for RSS New Blogs & New Threads to Sites Outside Vb 4

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • [Forum] Script for RSS New Blogs & New Threads to Sites Outside Vb 4

    I have script for posting Newest Threads on my other HTML websites outside of my Vb 4 site. Does anyone have or know where I can get similar scripts for Newest Blog Posts and Newest Articles?

    Thanks!

  • #2
    Here is the script that worked well for Newest Threads on my 3.8 board and is working fine with 4.0.2. What I really need though as I said is a similar script for newest articles. Any suggestions of someone who could write it, even if for a fee?


    <!-- Begin JavaScript Feed Code -->
    <table cellpadding=2 style="font: 10px Verdana, Arial, Helvetica, sans-serif;">
    <br>
    <tr>
    <td><b>Newest Threads</b></td>
    </tr>
    <script type="text/javascript">
    <!--
    // avoid a syntax error from the external file in certain cases
    window.onerror = function () {return true;}
    -->
    </script>
    <script type="text/javascript" src="http://www.petgroomerforums.com/chat...al.php?type=js
    "></script>
    <script type="text/javascript">
    <!--
    var displayThreads = 15; // number of threads to display (maximum is 15)
    var maxTitleLength = 60; // maximum length of the title
    if (typeof(threads) != 'undefined' && threads.length) {
    if (threads.length < displayThreads) displayThreads = threads.length;
    for(i = 0; i < displayThreads; i++) {
    if (threads[i].title.length > maxTitleLength) {
    threads[i].title = threads[i].title.substring(0, maxTitleLength) + '...';
    }
    document.writeln("<tr>");
    document.writeln("<td><a href=\"http://www.petgroomerforums.com/chat/showthread.php?t=" + threads[i].threadid + "\">" + threads[i].title + "</a>");
    document.writeln("</tr>");
    }
    } else {
    document.write("<td colspan=3>There are currently no threads to display.</td>");
    }
    window.onerror = null;
    -->
    </script>
    </table>
    <!-- End JavaScript Feed Code -->

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎