RSS Bug Fixed (PubDate)


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: [Download] [Hide]
  1. 'RFC_POST_DATE' => create_date_ip('r', $article['post_time'], $timezone, true), 


Replace with
Code: [Download] [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: [Download] [Hide]
  1. <lastBuildDate>{LAST_BUILD}</lastBuildDate> 


Replace with
Code: [Download] [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!!

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

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!!!!

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


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1007s (PHP: 21% SQL: 79%)
SQL queries: 10 - Debug Off - GZIP Enabled