Menu

#185 Backend.php RSS hack for valid feeds

open
nobody
None
5
2014-08-25
2008-04-01
No

http://www.xoops.org/modules/newbb/viewtopic.php?post_id=286047

I added this code to the template "system_rss.html" to make RSS feeds 100% compatible with all aggregators:

Line 2 - after xml version:

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">

Line 14 - after channel language:

<atom:link href="&lt;{$xoops_url}&gt;&lt;{$smarty.server.REQUEST_URI}&gt;" rel="self" type="application/rss+xml" &gt;<="" p="">

I use the above smarty code because hardcoding the self-address of your rss feed (eg. "http://mydomain.org/backend.php") will break your feed in other modules that use backend.php to generate RSS feeds (namely wf-downloads).

Can these changes be added to a following release?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.