RSS Bug Fixed (PubDate) »  Show posts from    to     

Icy Phoenix


Old Support Topics - RSS Bug Fixed (PubDate)



Xusqui [ Thu 10 Feb, 2011 20:36 ]
Post subject: RSS Bug Fixed (PubDate)
Hile, neighbours and friends.

When you use the news_rss.php to view a feed of the posted news, you get a couple of errors.

First One.
PubDate attribute uses the IP date function to create the publication date. Specs of RSS stands that the format for PubDate attribute must be RFC 822, so you get an error when reading the feed with some feed readers (i.e. google feedburner, when trying to post messages in twitter, can't do the right way).

To solve this I did the following modification

Open includes/news.php

Find
Code: [Hide]
  1. 'RFC_POST_DATE' => create_date_ip('r', $article['post_time'], $timezone, true), 


Replace with
Code: [Hide]
  1. 'RFC_POST_DATE' => date ("r", $article['topic_time']),//create_date_ip('r', $article['post_time'], $timezone, true), 



Second one
when you look at the source code of the feed, the attribute LastBuildDate is empty.
Here is what I did to fix that (even it's not a perfect modification)

Open templates/default/news_200_rss_body.tpl

Find
Code: [Hide]
  1. <lastBuildDate>{LAST_BUILD}</lastBuildDate> 


Replace with
Code: [Hide]
  1. <lastBuildDate>{PUB_DATE}</lastBuildDate> 


I did these all because I want the news to be published into a twitter account, and I use Twitterfeed to do that, if dates are not posted as supposed, I can't get my tweets!!

Greetz!!


spydie [ Thu 10 Feb, 2011 21:54 ]
Post subject: Re: RSS Bug Fixed (PubDate)
thank´s a lot Xusqui

never stumbled about this on, cause i don´t use twitter, but i do use googlefeed (Feedburner) ,

never noticed any problem there


Xusqui [ Sat 12 Feb, 2011 08:18 ]
Post subject: Re: RSS Bug Fixed (PubDate)
You are wellcome, Spydie!!!

If you use feedburner, go to Publicize/socialize. If you look at the bottom, you get an error that stands for no time publication is in the feed.

Greetz!!!!


KugeLSichA [ Mon 28 Feb, 2011 10:04 ]
Post subject: Re: RSS Bug Fixed (PubDate)
Hi Xusqui,

Thanks for your suggestions.. i´ve done this...

But i have some other problem...

http://www.blademaniacs.de/rss.php -> with server path
http://www.blademaniacs.de/news_rss.php -> NO server path

also not here in IP.com

But i checked your webpage and the full URL is working on your NEWS_RSS page

Have you done some other modifications?

Thanks so far




EDIT:

Found the solution:

added {FULL_SITE_PATH} before the articles and comments VAR in the template... thx




Powered by Icy Phoenix