CMS Made Simple Forums
https://forum.cmsmadesimple.org/

[SOLVED] Adding RSS Feed to themes.cmsmadesimple.org/
https://forum.cmsmadesimple.org/viewtopic.php?f=21&t=50563
Page 1 of 1

Author:  Sonya [ Thu Dec 30, 2010 4:17 pm ]
Post subject:  [SOLVED] Adding RSS Feed to themes.cmsmadesimple.org/

I would appreciate if it there were a kind of notification about new themes added to http://themes.cmsmadesimple.org/. RSS Feed would be the simplest solution.

Author:  ajprogramming [ Thu Dec 30, 2010 4:48 pm ]
Post subject:  Re: Adding RSS Feed to themes.cmsmadesimple.org/

Sonya,

The theme site uses the upload module. If you create a RSS feed template in CGFeedMaker for the Uploads module, we will add it on the site.

Ajprog

Author:  uniqu3 [ Thu Dec 30, 2010 5:10 pm ]
Post subject:  Re: Adding RSS Feed to themes.cmsmadesimple.org/

@ajprogramming

may i know what version of uploads module and cgfeedmaker is used?
Are there any categories used?
Any extra fields?
Should description, author and so on be included or is a title and date enough?

I am willing to do my homework if i may get the info  :)

Author:  Sonya [ Thu Dec 30, 2010 6:55 pm ]
Post subject:  Re: Adding RSS Feed to themes.cmsmadesimple.org/

uniqu3 \uniqu3:
Should description, author and so on be included or is a title and date enough?

I would like to have author and description as well :)

PS: If I see that you have released a template than I know that I have something new, that I can feature on my CMSMS resources. Your templates are awesome and professional and a guarantee for quality :)

Author:  ajprogramming [ Thu Dec 30, 2010 7:55 pm ]
Post subject:  Re: Adding RSS Feed to themes.cmsmadesimple.org/

Use the last versions for each module, and don't worry about category and custom fields for now.

Author:  uniqu3 [ Thu Dec 30, 2010 9:24 pm ]
Post subject:  Re: Adding RSS Feed to themes.cmsmadesimple.org/

@Sonya
Thank you. I do have a bunch of ideas that i would like to creat, just cant this what to take first and cant find enough time to put the ideas together  :) and i hate starting to work on something and than leaving that work for weeks somewhere in corner because client work has to be done  :D

@ajprogramming
Here is quick template, basically there is all info needed like Author, Images, Date, Description and it vaildates in RSS validator except for the fact that should also contain email address.

\$1:
<?xml version="1.0"?>
<rss version="2.0"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:atom="http://www.w3.org/2005/Atom"
   xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
>
  <channel>
  <atom:link href="{$feed_url}" rel="self" type="application/rss+xml" />
    <title>{$feed.title}</title>
    {if isset($feed.link) && !empty($feed.link)}<link>{$feed.link}</link>{/if}
    {if isset($feed.description) && !empty($feed.description)}<description>{$feed.description}</description>{/if}
    {if isset($feed.copyright) && !empty($feed.copyright)}<copyright>{$feed.copyright}</copyright>{/if}
    {if isset($generator)}<generator>{$generator}</generator>{/if}
    {if isset($feed.managing_editor) && !empty($feed.managing_editor)}<managingEditor>{$feed.managing_editor}</managingEditor>{/if}
    {if isset($admin_email)}<webMaster>{$admin_email} ({$admin_user->firstname} {$admin_user->lastname})</webMaster>{/if}
    {if isset($feed.image) && !empty($feed.image)}
      <image>
   {if isset($feed.description) && !empty($feed.description)}<description>{$feed.description}</description>{/if}
        {if isset($feed.link) && !empty($feed.link)}<link>{$feed.link}</link>{/if}
        <title>{$feed.title}</title>
        <url>{$file_location}/{$feed.image}</url>
      </image>
    {/if}
    {cms_module module='Uploads' category="Full Themes" assign="junk"}
    {foreach from=$items item='entry'}
    <item>
      <title>{$entry->upload_name|cms_html_entity_decode}</title>
      <link>{$entry->detailurl|replace:"&cntnt01assign=junk":""}</link>
      <pubDate>{$entry->date|rfc_date}</pubDate>
      <author>{$entry->author}</author>
      <description><![CDATA[<strong>{$author}:</strong> {$entry->author}<br />
      <img src="{$entry->thumbnail_url}" alt=""><br /> {$entry->description|strip_tags|trim}]]></description>
      <guid>{$entry->detailurl}</guid>
    </item>
    {/foreach}
  </channel>
</rss>


Well anyway here is a link to a demo Feed http://uniqu3.dyndns-server.com/1.9.2/i ... eturnid=57

For some reason on my page rss link returnid is generated as 15 instead of 57, but thats another story as i didn't check if everything is setup as it should be.

Author:  Sonya [ Fri Dec 31, 2010 11:34 am ]
Post subject:  Re: Adding RSS Feed to themes.cmsmadesimple.org/

Wow! It is already there http://themes.cmsmadesimple.org/feeds/Themes.rss :) Thank you, ajprogramming and uniqu3!! Happy New Year!

Author:  uniqu3 [ Fri Dec 31, 2010 11:39 am ]
Post subject:  Re: Adding RSS Feed to themes.cmsmadesimple.org/

Yes it's already there  :) thanks for good ideas and i subscribed  ;)
There is one minor thing, just the same as in my test install, if subscribing from summary page, returnid is 15 so links from Feed lead to blank page, if subscribed from a Template detail page links work fine.

Author:  ajprogramming [ Fri Dec 31, 2010 2:06 pm ]
Post subject:  Re: Adding RSS Feed to themes.cmsmadesimple.org/

It works for me. What is the link you are subscribing to? What browser/reader are you using?

Author:  uniqu3 [ Fri Dec 31, 2010 2:19 pm ]
Post subject:  Re: Adding RSS Feed to themes.cmsmadesimple.org/

It works for me to now, maybe i subscribed to early  ;)

Author:  Sonya [ Fri Dec 31, 2010 3:23 pm ]
Post subject:  Re: Adding RSS Feed to themes.cmsmadesimple.org/

uniqu3 \uniqu3:
There is one minor thing, just the same as in my test install, if subscribing from summary page, returnid is 15 so links from Feed lead to blank page

Confirm, subscribing on the summary page leads to blank page. http://themes.cmsmadesimple.org/index.p ... eturnid=15

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/