How to use External Data Feed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hardwaregeeks
    Senior Member
    • Sep 2002
    • 106

    How to use External Data Feed

    I have them enabled. How do I use em?
  • daemon
    Senior Member
    • Jun 2003
    • 2351
    • 3.5.x

    #2
    You use it like this:

    www.yourforums.com/external.php?type=[type]&forumids=[ids]

    Where [type] is either: (if you don't specify a type, it defaults to RSS)

    JS => Java Script
    XML => XML
    RSS => RSS

    And [forumids] are the list of forum id's you want out-putted. If you want basically the forum index, don't use this part, so:

    www.yourforums.com/external.php?type=[type]
    Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

    Comment

    • firenuts
      New Member
      • Nov 2002
      • 26

      #3
      Can you use external.php to export post content as well?

      thanks!

      Comment

      • daemon
        Senior Member
        • Jun 2003
        • 2351
        • 3.5.x

        #4
        If you specify the [forumids] (see my first post) then you can get thread titles and thread URLs, but I don't think you can get post content.
        Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

        Comment

        • Hardwaregeeks
          Senior Member
          • Sep 2002
          • 106

          #5
          Thanks

          Comment

          • Anders P
            Senior Member
            • Feb 2002
            • 512

            #6
            Step by step

            Excuse a complete beginner on this.

            If I want say the last couple thread titles on an external page, exactly what do I put in the page's code and where?

            If I have www.mydomain.com/index.html as the start page and have the forum at www.mydomain.com/forum/

            TIA

            /Anders
            Anders Pettersson
            Don't send me requests by PM to email you the Swedish language file that I have done. My translation is only available here at vbulletin.com to licensed users.
            If you want updates on when a new version of the Swedish language packs (forum & suite) are available, subscribe to this discussion.
            Don't PM me for support on how to install language files etc. please post in the appropriate forum, that will most likely give you help quicker.

            Comment

            • cyburbia
              Senior Member
              • Aug 2001
              • 441
              • 3.7.x

              #7
              I'd like to use RSS/XML/whatever, but have links to the threads. Possible?
              Cyburbia Forums - a third place for urban planners
              http://www.cyburbia.org/forums

              Comment

              • daemon
                Senior Member
                • Jun 2003
                • 2351
                • 3.5.x

                #8
                Originally posted by cyburbia
                I'd like to use RSS/XML/whatever, but have links to the threads. Possible?
                If you specify the [forumids] attribute, this is what you get as the RSS feed:

                PHP Code:
                <item>
                        <
                title><![CDATA[How Do You Find Music?]]></title>
                    <
                link>http://www.iris-studios.com/gkwc/showthread.php?t=916&amp;goto=newpost</link>
                        
                <description><![CDATA[ForumFalling Through The Surface
                Posted By
                daemon
                Post Time
                01-14-2004 at 01:46 AM]]></description>
                    </
                item
                So, yes; just specify the [forumids] tag. If you don't, you don't, you'll get the link to the last post for every forum (like the forum homepage).

                Anders, this would have to be done in PHP. You'd have to use the preg_replace() function to parse the data, and handle it that way.
                Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

                Comment

                • firenuts
                  New Member
                  • Nov 2002
                  • 26

                  #9
                  Would I get anything if I change forumids to threadids?

                  Comment

                  • daemon
                    Senior Member
                    • Jun 2003
                    • 2351
                    • 3.5.x

                    #10
                    Originally posted by firenuts
                    Would I get anything if I change forumids to threadids?
                    Nope... only forumids.
                    Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

                    Comment

                    • Tannerman
                      Member
                      • Sep 2000
                      • 51
                      • 3.6.x

                      #11
                      Is the feed system enabled for the vBulletin.com forums at this present time?

                      Comment

                      • cka
                        Senior Member
                        • Jun 2000
                        • 256
                        • 3.6.x

                        #12
                        Originally posted by Tannerman
                        Is the feed system enabled for the vBulletin.com forums at this present time?
                        Looks like they are. I just pulled the announcements forum into a RSS/XML document in IE.
                        To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson

                        Comment

                        Related Topics

                        Collapse

                        Working...