[SOLVED] Adding RSS Feed to themes.cmsmadesimple.org/

Talk about new features for CMSMS and modules.
Locked
Sonya

[SOLVED] Adding RSS Feed to themes.cmsmadesimple.org/

Post by Sonya »

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.
Last edited by Sonya on Sat Jan 01, 2011 12:01 pm, edited 1 time in total.
ajprogramming
Forum Members
Forum Members
Posts: 24
Joined: Sat Jan 09, 2010 4:38 pm

Re: Adding RSS Feed to themes.cmsmadesimple.org/

Post by ajprogramming »

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
uniqu3

Re: Adding RSS Feed to themes.cmsmadesimple.org/

Post by uniqu3 »

@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  :)
Sonya

Re: Adding RSS Feed to themes.cmsmadesimple.org/

Post by Sonya »

uniqu3 wrote: 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 :)
ajprogramming
Forum Members
Forum Members
Posts: 24
Joined: Sat Jan 09, 2010 4:38 pm

Re: Adding RSS Feed to themes.cmsmadesimple.org/

Post by ajprogramming »

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

Re: Adding RSS Feed to themes.cmsmadesimple.org/

Post by uniqu3 »

@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.

Code: Select all

<?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.
Sonya

Re: Adding RSS Feed to themes.cmsmadesimple.org/

Post by Sonya »

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

Re: Adding RSS Feed to themes.cmsmadesimple.org/

Post by uniqu3 »

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.
ajprogramming
Forum Members
Forum Members
Posts: 24
Joined: Sat Jan 09, 2010 4:38 pm

Re: Adding RSS Feed to themes.cmsmadesimple.org/

Post by ajprogramming »

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

Re: Adding RSS Feed to themes.cmsmadesimple.org/

Post by uniqu3 »

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

Re: Adding RSS Feed to themes.cmsmadesimple.org/

Post by Sonya »

uniqu3 wrote: 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
Locked

Return to “Feature ideas”