[RC2]RSS Feed

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Suggested Hosts
Locked
User avatar
Muad''Dib
Registered User
Posts: 311
Joined: Tue Jun 12, 2007 6:20 pm
Contact:

Re: [RC1]RSS Feed

Post by Muad''Dib »

JirkaX wrote:I tried IE7 and also FF3.0b5 and it happends in both browsers.
Same here .. here is my page:

http://www.jeepstrokers.com/forum/forumrss.php

but im also using the advanced version if it makes a difference.
User avatar
joeroberts
Registered User
Posts: 272
Joined: Fri Jun 22, 2007 7:19 pm
Contact:

Re: [RC1]RSS Feed

Post by joeroberts »

fixed this please retreave updated post 1
mikesharp
Registered User
Posts: 5
Joined: Wed Feb 20, 2008 11:03 am

Re: [RC1]RSS Feed

Post by mikesharp »

Thanks for this, I have installed it ok and it seems fine, the only odd thing seems to be the order that it is pulling posts out

Also is it possible to get the latest post from the the latest thread, rather than the first post from each
User avatar
joeroberts
Registered User
Posts: 272
Joined: Fri Jun 22, 2007 7:19 pm
Contact:

Re: [RC1]RSS Feed

Post by joeroberts »

they are order by time of post so the last post should show first.
mikesharp
Registered User
Posts: 5
Joined: Wed Feb 20, 2008 11:03 am

Re: [RC1]RSS Feed

Post by mikesharp »

Are you not setting the pub date as the date the thread was started, rather than the last update,

I think that is the issue,

any ideas on how to pull the latest post content rather than the first one?
User avatar
Muad''Dib
Registered User
Posts: 311
Joined: Tue Jun 12, 2007 6:20 pm
Contact:

Re: [RC1]RSS Feed

Post by Muad''Dib »

joeroberts wrote:fixed this please retreave updated post 1
Joeroberts, how can i apply this fix to the advanced version??

http://www.phpbb.com/community/viewtopi ... 0&t=918825

Thanks
User avatar
joeroberts
Registered User
Posts: 272
Joined: Fri Jun 22, 2007 7:19 pm
Contact:

Re: [RC1]RSS Feed

Post by joeroberts »

open forumrss.php and replace lines 1098-1102 with this

Code: Select all

          <title>'.htmlspecialchars($names).'</title>
          <link>'.$url_link.'f='.$fids.'&t='.$ids.'&p=' .$row['post_id'] .'</link>
           <description><![CDATA['. $descrption .'<hr>]]></description>
         <dc:creator>' . $row['username'] . '</dc:creator>
		 <pubDate>' . date("D, d M Y H:i:s T",$row['post_time']) . '</pubDate>
User avatar
joeroberts
Registered User
Posts: 272
Joined: Fri Jun 22, 2007 7:19 pm
Contact:

Re: [RC1]RSS Feed

Post by joeroberts »

mikesharp wrote:Are you not setting the pub date as the date the thread was started, rather than the last update,

I think that is the issue,

any ideas on how to pull the latest post content rather than the first one?
what are you using to view your posts? you may want to watch how some viewers list post because you can set them to view by date. Also bear in mind that there is a 1 hour wait for update when using google, feedreader,yahoo,msn and a few more.
mikesharp
Registered User
Posts: 5
Joined: Wed Feb 20, 2008 11:03 am

Re: [RC1]RSS Feed

Post by mikesharp »

Im just looking at it in firefox and IE at the moment.

I have changed my implementation of this so that the pub date is....

Code: Select all

<pubDate>' . $user->format_date($last_poster_time) . '</pubDate>
rather than

Code: Select all

 <pubDate>' . date("D, d M Y H:i:s T",$row['post_time']) . '</pubDate>
and it displays the feed in the right order.

What I would like to do now if possible is to change the main part of the descrtiption so that instead of showing the original, first post of a thread it shows the latest one. I dont see the point in serving up the first post, its effectively old news :)

any ideas?
User avatar
joeroberts
Registered User
Posts: 272
Joined: Fri Jun 22, 2007 7:19 pm
Contact:

Re: [RC1]RSS Feed

Post by joeroberts »

Code: Select all

<pubDate>' . $user->format_date($last_poster_time) . '</pubDate>
is not RSS acceptable that out puts
Wed May 07, 2008 10:16 am
as RSS standers should be
Wed, 07 May 2008 10:16:39 EDT
you are only causing it to over look the pundate.
FEED Validator wrote:<pubDate> sub-element of <item>
<pubDate> is an optional sub-element of <item>.

Its value is a date, indicating when the item was published. If it's a date in the future, aggregators may choose to not display the item until that date.

<pubDate>Sun, 19 May 2002 15:21:36 GMT</pubDate>
you may want to check your server date it its time is ahead of you this could be your problem. In order to fix that you would want to go to your personal settings in the board and change My date format: to custom and set it to (D, d M Y H:i:s T)
mikesharp wrote:What I would like to do now if possible is to change the main part of the descrtiption so that instead of showing the original, first post of a thread it shows the latest one. I dont see the point in serving up the first post, its effectively old news
you lost me here it should show you the last post first.
User avatar
joeroberts
Registered User
Posts: 272
Joined: Fri Jun 22, 2007 7:19 pm
Contact:

Re: [RC1]RSS Feed

Post by joeroberts »

upon further testing I found that if you change

Code: Select all

<pubDate>' . $user->format_date($last_poster_time) . '</pubDate>
to

Code: Select all

<pubDate>' . $user->format_date($last_poster_time,"D, d M Y H:i:s T") . '</pubDate>
that well work
proterra
Registered User
Posts: 11
Joined: Fri May 13, 2005 4:57 pm

Re: [RC1]RSS Feed

Post by proterra »

Is it possible to choose differents subforums to show with the feed.

I´m want only show the latest topics of my news-subforums, but not the topics of the others subforums of my board.

Thanks
User avatar
joeroberts
Registered User
Posts: 272
Joined: Fri Jun 22, 2007 7:19 pm
Contact:

Re: [RC1]RSS Feed

Post by joeroberts »

find

Code: Select all

            FROM " . POSTS_TABLE . " p JOIN " . USERS_TABLE . " u on p.poster_id = u.user_id JOIN " . TOPICS_TABLE . " t on p.topic_id = t.topic_id JOIN ". FORUMS_TABLE ." f on p.forum_id = f.forum_id
and add after

Code: Select all

			AND f.forum_id = '{your formid}'
User avatar
Muad''Dib
Registered User
Posts: 311
Joined: Tue Jun 12, 2007 6:20 pm
Contact:

Re: [RC1]RSS Feed

Post by Muad''Dib »

joeroberts wrote:open forumrss.php and replace lines 1098-1102 with this

Code: Select all

          <title>'.htmlspecialchars($names).'</title>
          <link>'.$url_link.'f='.$fids.'&t='.$ids.'&p=' .$row['post_id'] .'</link>
           <description><![CDATA['. $descrption .'<hr>]]></description>
         <dc:creator>' . $row['username'] . '</dc:creator>
		 <pubDate>' . date("D, d M Y H:i:s T",$row['post_time']) . '</pubDate>
Thanks
proterra
Registered User
Posts: 11
Joined: Fri May 13, 2005 4:57 pm

Re: [RC1]RSS Feed

Post by proterra »

joeroberts wrote:find

Code: Select all

            FROM " . POSTS_TABLE . " p JOIN " . USERS_TABLE . " u on p.poster_id = u.user_id JOIN " . TOPICS_TABLE . " t on p.topic_id = t.topic_id JOIN ". FORUMS_TABLE ." f on p.forum_id = f.forum_id
and add after

Code: Select all

			AND f.forum_id = '{your formid}'
That´s didn´t run. Now I see no topics
Locked

Return to “[3.0.x] MODs in Development”