Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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!!
 




____________
Icy Phoenix Latest 2.0 (working pending)
Style: Aphrodite and MG_Themes
Site: Spanish Stephen King fan forum
Mods: Medal System Mod. BBAntispam 1.2. Several own BBcodes.
 
XusquiSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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
 




____________
Out of Order
 
spydieSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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!!!!
 




____________
Icy Phoenix Latest 2.0 (working pending)
Style: Aphrodite and MG_Themes
Site: Spanish Stephen King fan forum
Mods: Medal System Mod. BBAntispam 1.2. Several own BBcodes.
 
XusquiSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 




____________

Play Games at GamesCampus!
 
KugeLSichASend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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