Embed XML RSS Feed

Discussion in 'HTML & Website Design' started by USPB, Nov 9, 2007.

  1. #1
    Is there a way to embed rss feed using html or PHP. I would like to embed it in wordpress posts.


    thanks
     
    USPB, Nov 9, 2007 IP
  2. QiSoftware

    QiSoftware Well-Known Member

    Messages:
    805
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    158
    #2
    I use server side java to embed rss feeds [even in blog posts]. One could also use PHP or any server side scripting or program function. AJAX can also be used but is not always compatable with older browsers.

    Q...
     
    QiSoftware, Nov 9, 2007 IP
  3. USPB

    USPB Peon

    Messages:
    887
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks man
     
    USPB, Nov 9, 2007 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yeah you can do it, but I'm not aware of a WordPress plugin that will do it (I've been looking). Deathshadow did write an RSS parser in PHP though, if you'd like to try it. You'll probably have to create a customized template page and then run it through there if you were to try and include it.

    You can find the parser he wrote (with a couple minor modifications by me) at the Web site I'm building (the link is below, but is plain text since I will be taking it down once the site goes live).

    minimalmarkup.com/temp/rss/
     
    Dan Schulz, Nov 10, 2007 IP
  5. USPB

    USPB Peon

    Messages:
    887
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #5
    great dan. thanks so much. I am just curious. what your site?
     
    USPB, Nov 10, 2007 IP
  6. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I don't quite understand what you're asking. Could you clarify your earlier question for me please?
     
    Dan Schulz, Nov 10, 2007 IP
  7. USPB

    USPB Peon

    Messages:
    887
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I just want to know if you have a website? I think you helped me in the past
     
    USPB, Nov 10, 2007 IP
  8. frantichippie

    frantichippie Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    The new SimpleXML functions in PHP5 sure make working with XML much easier. If you can dabble a bit in PHP, you should be able to write the code for this yourself. I did it, so it can't be too hard :)
     
    frantichippie, Nov 10, 2007 IP
  9. USPB

    USPB Peon

    Messages:
    887
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Sorry but I am a newbie, just learned everything in DP after joining
     
    USPB, Nov 10, 2007 IP
  10. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I have a couple I'm working on at the moment (finally taking some time off to get MY sites finished). If you want to know what they are, feel free to PM me as I'm not favorable to self promotion on the boards themselves unelss I'm posting a link to a page that I believe that people will find useful (like a tutorial on how to use negative margins and floats to create source-ordered column layouts for example).
     
    Dan Schulz, Nov 10, 2007 IP
  11. Ronster

    Ronster Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    What's wrong with self-promotion in your opinion?

    Not giving a hard time, just interested in others viewpoints.

    Tks
     
    Ronster, Nov 10, 2007 IP
  12. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #12
    Uhm, Dan - just one thing. There's another advantage to using cache instead - and it's the real reason I did it which has nothing to do with the site sending the feed.

    Waiting for the other sites to respond leaves your own server hanging waiting on requests - often longer than the timeout limit so the user gets a 502 or worse, your logs fill up with 408 errors. This is where most other 'fancier' implementations actually fail miserably.

    Because there's nothing worse than having multiple connects sitting open for one user request.

    The original is here:
    http://battletech.hopto.org/for_others/rss/

    with some nice pretty .phps files in there. (I still need to rewrite my phps template to remove the acid trip color coding or at least make it easier to read... and make the bloody thing use two space tabs)
     
    deathshadow, Nov 10, 2007 IP
  13. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I just try not to step on other peoples' toes. Even then it doesn't always work (one of my favorites was being reprimanded for "thread jacking" because I posted a link to someone else's SEO guide in a thread about SEO help - and for the record, I'm active on multiple forums; heck, I'm a Mentor over at SitePoint, if that even means anything here - that reminds me, SitePoint needs to update that thread AND put some real text there by my name...).
     
    Dan Schulz, Nov 10, 2007 IP
  14. Plutonic

    Plutonic Peon

    Messages:
    2,964
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I have a WP plugin that you just paste in the RSS feed and it automatically posts entries from that feed when they are updated.

    PM me if you want it... for free of course...
     
    Plutonic, Nov 11, 2007 IP