FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Topic syndication doesn't work
Show: Today's Messages :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Topic syndication doesn't work [message #40024] Sat, 05 January 2008 08:30 Go to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Syndication with mode=t doesn't work.

Example: http://fudforum.org/forum/rdf.php?mode=t&l=1&basic=1&frm=1& n=25
Re: Topic syndication doesn't work [message #40033 is a reply to message #40024] Sun, 06 January 2008 12:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
if you do "view source" the data is definitely there and there are entries corresponding to the topics in the forum.

FUDforum Core Developer
Re: Topic syndication doesn't work [message #40035 is a reply to message #40033] Sun, 06 January 2008 14:07 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
The thread feed is invalid.

Mode=m produces a valid RSS feed:
http://feedvalidator.org/check.cgi?url=http%3A%2F%2Ffudforum.org%2Fforum%2F rdf.php%3Fmode%3Dm%26l%3D1%26basic%3D1%26frm%3D1%26n%3D25

However, mode=t does not validate: http://feedvalidator.org/check.cgi?url=http%3A%2F%2Ffudforum.org%2Fforum%2F rdf.php%3Fmode%3Dt%26l%3D1%26basic%3D1%26frm%3D1%26n%3D25



Re: Topic syndication doesn't work [message #40039 is a reply to message #40035] Mon, 07 January 2008 16:33 Go to previous messageGo to next message
Ilia is currently offline  Ilia   United States
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Fixed in CVS

FUDforum Core Developer
Re: Topic syndication doesn't work [message #40041 is a reply to message #40039] Tue, 08 January 2008 00:28 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Thanks Ilia! Can you please also apply this patch:

--- rdf.php.t.orig      2008-01-07 23:06:47.000000000 -0600
+++ rdf.php.t   2008-01-07 23:25:48.000000000 -0600
@@ -407,12 +407,12 @@
                                }

                                if ($basic) {
-                                       echo '<rdf:li rdf:resource="'.$WWW_ROOT.'index.php?t=rview&amp;th='.$r->thread_id.'" />';
+                                       echo '<rdf:li rdf:resource="'.$WWW_ROOT.'index.php?t=rview&amp;th='.$r->id.'" />';
                                        $data .= '
-<item rdf:about="'.$WWW_ROOT.'index.php?t=rview&amp;th='.$r->thread_id.'">
+<item rdf:about="'.$WWW_ROOT.'index.php?t=rview&amp;th='.$r->id.'">
        <title>'.htmlspecialchars($r->subject).'</title>
-       <link>'.$WWW_ROOT.'index.php?t=rview&amp;th='.$r->thread_id.'</link>
-       <description>'.sp($body).'</description>
+       <link>'.$WWW_ROOT.'index.php?t=rview&amp;th='.$r->id.'</link>
+       <description>'.sp($r->tdescr).'</description>
        <dc:subject>'.sp($r->frm_name).'</dc:subject>
        <dc:creator>'.sp($r->alias).'</dc:creator>
        <dc:date>'.gmdate('Y-m-d\TH:i:s', $r->post_stamp).'-00:00</dc:date>
Re: Topic syndication doesn't work [message #40054 is a reply to message #40041] Tue, 08 January 2008 14:01 Go to previous messageGo to next message
Ilia is currently offline  Ilia   United States
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
I am not sure topic description is a better option then a topic title, because the former may not always be present.

FUDforum Core Developer
Re: Topic syndication doesn't work [message #40056 is a reply to message #40054] Tue, 08 January 2008 14:23 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
I don't really care either way. I've changed $body to $r->tdescr because $body is not instantiated in the mode=t code. So, $body has always been empty. You are welcome to add it in though.
Re: Topic syndication doesn't work [message #40067 is a reply to message #40056] Wed, 09 January 2008 20:08 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
I've changed body to message subject now.

FUDforum Core Developer
Re: Topic syndication doesn't work [message #40068 is a reply to message #40067] Wed, 09 January 2008 23:57 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Great - thanks Ilia!
Re: Topic syndication doesn't work [message #40070 is a reply to message #40068] Thu, 10 January 2008 01:18 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Just some feedback: this doesn't look right - the title is repeated in the description (same info twice for each thread).

Please change the description to either the message body or $r->tdescr.
Re: Topic syndication doesn't work [message #40072 is a reply to message #40070] Thu, 10 January 2008 19:36 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Done.

FUDforum Core Developer
Re: Topic syndication doesn't work [message #40075 is a reply to message #40072] Fri, 11 January 2008 00:34 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Perfect - thank you very much!
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: rss feed for last messages in the forum contains very old items
Next Topic: Move Topic: "Moved:" link not always shown
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Oct 11 19:50:17 EDT 2024

Total time taken to generate the page: 0.05940 seconds