Can any one teach me how to make custom recent blog rss file

Discussion in 'XML & RSS' started by ads2help, Mar 20, 2009.

  1. #1
    I need someone to teach me how to make a custom rss file to show any link I want at my Recent Blog.

    I know how to link to my blog feed. What I want here is a different thing.

    Let's say I have a file on my server called dpfeed.xml and this is an example of it:

    <?xml version="1.0"?>
    <rss version="2.0">
      <channel>
        <title>Example</title>
        <link>http://forums.digitalpoint.com/</link>
        <description>Example</description>
        <language>en-us</language>
    
        <item>
          <title>Example</title>
          <link>http://forums.digitalpoint.com/</link>
          <description>Example</description>
          <pubDate>Thu, 19 Mac 2009 12:02:12 GMT</pubDate>
        </item>
    	
      </channel>
    </rss>
    PHP:
    There problem is: it doesn't work, although it is a valid RSS (validated by w3).

    I updated my DP blog feed url to mysite.com/dpfeed.xml but my profile doesn't have a recent blog link at all.

    Thank you.

    - ads2help
     
    ads2help, Mar 20, 2009 IP
  2. ClassHelper.org

    ClassHelper.org Guest

    Messages:
    273
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What blogging software are you using? I use WordPress, personally, but I also create custom RSS feeds of content from my primary site through a set of Perl scripts I wrote for that purpose.
     
    ClassHelper.org, Mar 20, 2009 IP
    ads2help likes this.
  3. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #3
    As I said, I know how to link to my blog feed. What I want here is a different thing.

    What I want here is a custom one that is only for use at DP. I don't want to post a blog post at my blog to have the link shown at my recent blog.

    I want to be able to directly edit the script I provided above to work (to display a link in "my recent blog")

    Can give me the sample of the RSS feeds?

    Thank you. +rep for fast response
     
    ads2help, Mar 20, 2009 IP
  4. ClassHelper.org

    ClassHelper.org Guest

    Messages:
    273
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Really, what you need to do is pick your favorite scripting langauge and write a script that pulls content from your database (I presume the desired blog posts are housed in a db) and writes it out in RSS format. The file format itself is very simple; it's just XML. If you want your script to run at specified times throughout the day, you can set up a cron job through your shell or control panel to run it whenever you like (I run my RSS generator scripts via cron twice a day).

    You can find a lot of information on RSS, including examples of how files are structured, in the Wikipedia RSS entry. If you're not very familiar with any particular programming language, I can send you an example script in Perl to serve as a starting point.
     
    ClassHelper.org, Mar 20, 2009 IP
  5. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #5
    Lol. I think you don't get me.

    I don't want to pull anything from db. I know I can do that using WordPress(it auto generate it for me) but I just don't want that.

    I want the rss codes I posted above to work in my DP Recent Blog. I don't know what is wrong with it. It doesn't work currently.

    I tried a lot of times but failed.

    Again, thanks for your help!!

    - ads2help
     
    ads2help, Mar 20, 2009 IP