Announcement

Collapse
No announcement yet.

Latest post on non vbulletin page?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Latest post on non vbulletin page?

    How do I get the latest posts in a specific forum on a non vbulletin page? I know It has to do with the RSS news feed but I can't get hold of some pre programmed code....

    Anyone?
    Please ReadThe****ingManual


  • #2
    Code:
    <script type="text/javascript" src="http://www.site.com/forum/external.php?type=js"></script> 
    <script type="text/javascript">
    <!--
    for (i = 0; i < 15; i++)
    {
    document.writeln("<b><a href=\"http://www.site.com/forum/showthread.php?threadid="+threads[i].threadid+"\">"+threads[i].title+"</a></b>&nbsp;&nbsp;By: <i>"+threads[i].poster+"</i><br />");
    }
    //-->
    </script>
    Scott MacVicar

    My Blog | Twitter

    Comment


    • #3
      Empty page....

      I get an empty page....
      I did change the settings in the admincp as you can see from the attachment...
      What do I do wrong?
      Attached Files
      Last edited by Duke of Lions; Tue 9 Sep '03, 4:32am.
      Please ReadThe****ingManual

      Comment


      • #4
        Put the call to external.php above the script Scott posted in the document flow.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment


        • #5
          Still nothing...

          I did, this is the code I am using but still nothing...
          Code:
          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
          <html>
          <head>
          <title>Test vBulletin 2</title>
          <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
          </head>
          <body>
          <script language="" src="[url="http://somesite.com/external.php?type=js"]http://somesite.com/external.php?type=js[/url]" type="text/javascript">
          </script>
          <script language="" type="text/javascript">
          <!--
          for (i = 0; i < 15; i++)
          {
          document.writeln("<tr><td colspan=2 height=18><span class=smallfont><b><a href=\"[url="http://somesite.com/showthread.php?threadid="]http://somesite.com/showthread.php?threadid="+threads[i].threadid+"\">"+threads[i].title+"</a></b>&nbsp;&nbsp;By[/url]: <i>"+threads[i].poster+"</i><br /></span></td></tr>");
          }
          //-->
          </script>
          </body>
          </html>
          Here's the page .... http://www.somesite.net/test.htm
          Last edited by Duke of Lions; Tue 9 Sep '03, 4:34am.
          Please ReadThe****ingManual

          Comment


          • #6
            I cant access the forums on that URL specified.
            Scott MacVicar

            My Blog | Twitter

            Comment


            • #7
              the forum is located at:
              http://www.somesite.net/forum
              or
              http://forum.somesite.net
              Last edited by Duke of Lions; Tue 9 Sep '03, 4:35am.
              Please ReadThe****ingManual

              Comment


              • #8
                you have .com in your code above
                Scott MacVicar

                My Blog | Twitter

                Comment


                • #9
                  Man, I am really sorry for the stupid question....
                  I had it on .com now it's on .net
                  Verry sorry for this all....
                  Please ReadThe****ingManual

                  Comment


                  • #10
                    How do i go about to add a full post on our main page ?
                    Like a news thing.
                    I had vbindex before.
                    I got it working with latest topics splitted up in our forum and our hosted forum "WERY WERY cool by the way". http://www.dab-online.net/xml.php

                    Now i would want to add news in the center table.
                    Im guessing it has something to do with this code ?
                    PHP Code:
                    <!--
                    for (
                    03i++)
                    {
                    document.writeln("<a  target=\"_blank\" href=\"http://www.dab-online.net/forum/showthread.php?threadid="+threads[i].threadid+"\">"+threads[i].title+"</a><br>("+threads[i].poster+")<br />");
                    }
                    //--> 
                    Or am i totaly wrong ?
                    Pimp Daddy Croft Magazine

                    Comment


                    • #11
                      This is great, it worked for me on the first shot.

                      Is there a way to limit the number of characters when it displays? Like let's say I'll be putting this information in a table but I dont want the characters to go to the next line or anything...? Just limit it to about 15 characters max and then display a "..." at the end. These were seen on most of the vbindex/vbhome hacks.

                      Thanks! I was looking all over for this.
                      Last edited by b00tsauce; Mon 8 Sep '03, 12:16am. Reason: Forgot something.

                      Comment


                      • #12
                        Originally posted by Scott MacVicar
                        Code:
                        <script type="text/javascript" src="http://www.site.com/forum/external.php?type=js"></script> 
                        <script type="text/javascript">
                        <!--
                        for (i = 0; i < 15; i++)
                        {
                        document.writeln("<b><a href=\"http://www.site.com/forum/showthread.php?threadid="+threads[i].threadid+"\">"+threads[i].title+"</a></b>&nbsp;&nbsp;By: <i>"+threads[i].poster+"</i><br />");
                        }
                        //-->
                        </script>
                        Actually what this does is put new THREADS on the top of the links with Javascript. What I was looking for was a script that puts the latest posts on the top of the list. Like the feature of the former vbHome portal "Latest Forum Discussion..." Is this possible already?
                        Please ReadThe****ingManual

                        Comment


                        • #13
                          Yeah, I was wondering the same thing. THis is kind of cool...but latest posts would be the way to go I think.
                          V1 Bad Bunny Emoticons > (For Dark BGs)
                          Squarehead V1 Emoticons -
                          Let Users select postbit style!

                          Comment


                          • #14
                            Croft, this functionality does not seem to currently exist. All the external.php file seems to draw out is the threadid, thread title, thread starter, post date and time.
                            V1 Bad Bunny Emoticons > (For Dark BGs)
                            Squarehead V1 Emoticons -
                            Let Users select postbit style!

                            Comment


                            • #15
                              ok maybe there's a php script?

                              Originally posted by Duke of Lions
                              Actually what this does is put new THREADS on the top of the links with Javascript. What I was looking for was a script that puts the latest posts on the top of the list. Like the feature of the former vbHome portal "Latest Forum Discussion..." Is this possible already?
                              Is there maybe a php script what does this "Latest Forum Discussion" thing?
                              And is there already a manual vor vb3b6 which describes these things?
                              Anyone?
                              Please ReadThe****ingManual

                              Comment

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