Results 1 to 3 of 3

Thread: HowTo Display Latest Active Threads on ANY normal HTML page

  1. #1
    Senior Member Floris has disabled reputation
    Join Date
    Dec 2001
    Posts
    37,860
    Blog Entries
    13

    HowTo Display Latest Active Threads on ANY normal HTML page

    ############# Install Instructions
    ## THIS WILL DISPLAY THE LATEST 10 ACTIVE THREADS ON ANY NON VBULLETIN HTML PAGE

    ## Requires vBulletin version 3.5.0 stable.

    ## Admin Control Panel > vBulletin Options > vBulletin Options > Admin Control Panel Options > Use External Data Provider:
    YES - type = JavaScript

    ## At any location in your custom .html page, add this code:
    HTML Code:
    <!-- 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 />
    ## Save the html file, upload it, and you're done.

    Note: Don't forget to turn on the External Feed options here:

    Admin CP -> vBulletin Options -> External Data Provider
    Attached Images

  2. #2

  3. #3
    vBulletin Team Colin F will become famous soon enough Colin F will become famous soon enough Colin F's Avatar
    Join Date
    May 2004
    Location
    Switzerland
    Posts
    17,721
    To limit the amount of threads shown

    In the code above, exchange:
    Code:
    for (var x in threads)
    with
    Code:
    for (x = 0; x < 10; x++)
    exchanging 10 with the amount of threads you want displayed.


    To limit the output to the latest threads in one or more specific forums

    In the code above, exchange this:
    Code:
    <script type="text/javascript" src="external.php?type=js"></script>
    with this:
    Code:
    <script type="text/javascript" src="external.php?forumids=95,96,97,98&type=js"></script>
    The bold part is added, and the blue numbers, seperated by commas, are the forumid numbers of the forums you want to fetch the latest threads from.

    The forumid number of a forum can be found by editing a forum in the AdminCP. It's listed at the top, next to the forum name.
    In the example attached below, the forumid is 2:forumid.png


    Thanks to RaZor Edge
    Last edited by Colin F; Tue 30th May '06 at 10:41am.
    Best Regards
    Colin Frei

    Please don't contact me per PM.

Similar Threads

  1. Display latest threads externally
    By ssivagna in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 8
    Last Post: Mon 1st Feb '10, 2:35pm
  2. [3.5] Add 'Latest Active Threads' on the What's Going On - box
    By Floris in forum vBulletin Templates, Graphics & Styles
    Replies: 18
    Last Post: Thu 1st Mar '07, 3:50am
  3. HowTo Display Latest Active Threads on Forumhome
    By Floris in forum vBulletin 3.5 Quick Tips and Customizations
    Replies: 2
    Last Post: Tue 30th May '06, 10:40am
  4. Best way to display latest xx threads on vbhome ?
    By Sharg in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 1
    Last Post: Sat 4th Sep '04, 2:30pm
  5. Latest Posts from a Specific Non Active Forum on a non-vB page
    By adguru in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 2
    Last Post: Sat 24th Jul '04, 8:37pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts