How to change the RSS output depending on the domain it comes from....?

Discussion in 'Programming' started by xInd, Feb 18, 2010.

  1. #1
    I'd like to make this work through wordpress so I can just have a private category that is not visible to the public, but has an RSS feed that I can call from pages I have on lots of other sites. I want one small HTML page that's the same, to call the RSS feed but parse it differently so it doesn't come up as identical content when I host it on a couple hundred different domains... Does anyone know how I we could setup a script of some kind that would run off my server. It would have either an RSS feed, or something similar. On a page on a different site, the page would call this RSS feed and display the intended content. The trick comes when the next same page hosted on a totally different domain tries to pull the feed, it displays something slightly different, to ensure that we don't have the exact same content displaying on all these identical pages. ?


    So I need an normal HTML page to call a script from my server. My server and the script should return data from our database. It should not return the same data twice, it should spin the text and select a new picture to display.
    Can this be done without having access to anything server side on the client page?
     
    Last edited: Feb 18, 2010
    xInd, Feb 18, 2010 IP
  2. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    According to what I have understood you need to transform the RSS feed coming from one server to the other. This can be done by replacing the links in the xml file I think. It would be easier if you get the flexibility of a server side processing for this. But it must be possible with Java script as well.
     
    NeoCambell, Feb 21, 2010 IP
  3. xInd

    xInd Notable Member

    Messages:
    2,025
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    225
    Digital Goods:
    2
    #3
    Thank you. I have managed to get the ok to use PHP, so I won't have any problems now. Thanks.
     
    xInd, Feb 21, 2010 IP