[SOLVED] Embedding RSS Feeds

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
emilyshimell
Forum Members
Forum Members
Posts: 17
Joined: Fri Sep 30, 2011 3:05 pm

[SOLVED] Embedding RSS Feeds

Post by emilyshimell »

Hi All

Thanks for reading :)

I am quite new to CMSMS although I am starting to get to grips with it a bit more now. I am having a problem though with RSS feeds.

I have spent a while now searching around online for help on how to do what I think should be very simple - to integrate a number of others (partners/manufacturers) RSS news feeds and press releases into a single page on our website.

I found a forum page earlier http://forum.cmsmadesimple.org/viewtopi ... view=print which I thought would solve my problem so I created a UDT with the code in the forum, and downloaded a php file at http://lastrss.oslab.net/ I went to file manager and uploaded this .php file into the exact folder/file as in the given code to ensure this was all correct

I then created a new page in my website and put in the tag {getfeed url="http://newsroom.cisco.com/c/journal/get ... ss-release"}

The page remained blank. i tried with a few different RSS feed links and also checked that I had copied the code correctly and uploaded the php file.

Few things: when I clicked on the php file in the file manager, a blank page shows and nothing else... should this be the case?

No errors come up including no smarty errors or similar.

I have searched in the forum for the search term "rss" and returned "no results found". I'm sure this can't be the case - could this just be an error at the time of me searching?

I also searched for cmsms rss embed and various other things in google although I could only really find rss modules and ways to create my own rss feeds - this is not what I want to do, I want to display other feeds on my site.

I don't want to use javascript because of indexing/spider crawls/SEO etc.

This has frustrated me all day because I really think I should have been able to work this out and do this without posting on here but this doesn't seem to be the case! I'd appreciate any help I can get - I must say I don't fully yet understand php files and modules yet (although i have managed to get the hang of the news module now!) although I think I am getting to grips with user defined tags etc.

I look forward to hearing from you! I hope I have posted in the right place and explained as much as possible to not get shouted at by fellow forum posters ;D
Last edited by emilyshimell on Mon Oct 17, 2011 4:25 pm, edited 1 time in total.
uniqu3

Re: Embedding RSS Feeds

Post by uniqu3 »

Look at modules like RSS2HTML or XMLMadeSimple
User avatar
DADOCTOR
Forum Members
Forum Members
Posts: 51
Joined: Sat Apr 02, 2011 5:39 am
Location: Australia

Re: Embedding RSS Feeds

Post by DADOCTOR »

I too, have tried to do the same with adding other website feeds
to my website.

I have not been able to get it working properly.

This is what I used

simplepie module
http://dev.cmsmadesimple.org/projects/simplepie

but I found it hard to get information from the actual simplepie website as it looks like it is no longer supported.

I did find this website http://www.webcodepro.net/cmsms-news-feeds.php/ that has examples of simplepie feeds.

This is some information that I received from site owner.
CGExtensions (Needed for CG FeedMaker)
http://dev.cmsmadesimple.org/project/fi ... ackage-357

CG FeedMaker
http://dev.cmsmadesimple.org/project/fi ... ackage-630

*Download and install SimplePie (https://github.com/simplepie/simplepie) on the main site (for the sites I did, installed SimplePie on the Home Page)

*Make sure URL of the RSS Feed that was created with CG Feedmaker is included in the SimplePie code. (Here's the SimplePie example page: http://simplepie.org/wiki/setup/sample_page)
I hope this may help you,
and if you do I would love to know how to instal it properly

Regards
Ryan
emilyshimell
Forum Members
Forum Members
Posts: 17
Joined: Fri Sep 30, 2011 3:05 pm

Re: Embedding RSS Feeds

Post by emilyshimell »

Thanks for getting back guys

I have actually looked at RSS2HTML and followed instructions but couldnt get it working. I will have a look at the instructions from you Ryan and see what I can do and then let you know what happens! :D

Em
emilyshimell
Forum Members
Forum Members
Posts: 17
Joined: Fri Sep 30, 2011 3:05 pm

Re: Embedding RSS Feeds

Post by emilyshimell »

OK I have worked out doing this now. I think I was making it much harder for myself as I hadn't really understood how modules were installed and worked before having a go at it. So I was getting into uploading php files into the file manager, making folders cacheable...instead I found some other help files and did the following (much more simple!)


Extensions > Module Manager > Available Modules tab
found CMSSimplepie module and downloaded/installed
This also updated CGExtensions at the same time

Content > CMSSimplepie
Add new feed > name and URL
On page where I want feed to be displayed I put in {CMSSimplepie feed="companynewsfeed"} where companynewsfeed is the name you gave the feed in the module.

I also changed the feed template named sample to format the feed better.

Even though this was a pretty simple thing to do that took me quite a long time to work out, i'm pretty chuffed with myself and hopefully some other newbies may be helped with this now! :D

Cheers!
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am
Location: The Netherlands

Re: Embedding RSS Feeds

Post by Gregor »

Hello,

I installed rss2html, created feedname "Hardlopen" and feed url "http://connect.garmin.com/feed/rss/acti ... r=gregor64"

On the page I entered:

Code: Select all

{cms_module module="RSS2HTML" feed="Hardlopen" template="Hardlopen" numitems=5}
Template "Hardlopen" looks like:

Code: Select all

				<table width="100%" border="0" cellspacing="0" cellpadding="0">
				{foreach from=$rss->items item=item}
					<tr style="background: {cycle values="#E5D6CC, #FFFFFF"}">
						<td><h3 style="margin: 0; color: #294B5F; display: inline;"><strong><a href="{$item.link}">{$item.title}</a></h3></strong> - <em>{$item.pubdate}</em>
						<p style="margin: 0;">{$item.summary}</p></td>
					</tr>
				{/foreach}
				</table>
Output can been seen at:
http://www.uisge-beatha.eu/hardlopen/RSS_Hardlopen.html

Hope this helps.

Gregor
User avatar
DADOCTOR
Forum Members
Forum Members
Posts: 51
Joined: Sat Apr 02, 2011 5:39 am
Location: Australia

Re: Embedding RSS Feeds

Post by DADOCTOR »

emilyshimell wrote:OK I have worked out doing this now. I think I was making it much harder for myself as I hadn't really understood how modules were installed and worked before having a go at it. So I was getting into uploading php files into the file manager, making folders cacheable...instead I found some other help files and did the following (much more simple!)


Extensions > Module Manager > Available Modules tab
found CMSSimplepie module and downloaded/installed
This also updated CGExtensions at the same time

Content > CMSSimplepie
Add new feed > name and URL
On page where I want feed to be displayed I put in {CMSSimplepie feed="companynewsfeed"} where companynewsfeed is the name you gave the feed in the module.

I also changed the feed template named sample to format the feed better.

Even though this was a pretty simple thing to do that took me quite a long time to work out, i'm pretty chuffed with myself and hopefully some other newbies may be helped with this now! :D

Cheers!

Thanks for your reply Emily,

After reading your reply I had a look at importing the simplepie xml file.

I have never been able to see the simplepie module when I search for it, but silly me had it set to display only latest version modules, it must be a default setting.

so it goes to show that if your give help you will get it in return.
many thanks.

if you can will you pm or post me a link to check out your feed?

thanks

Regards
Ryan
emilyshimell
Forum Members
Forum Members
Posts: 17
Joined: Fri Sep 30, 2011 3:05 pm

Re: Embedding RSS Feeds

Post by emilyshimell »

Thanks Ryan! I was going to PM you but i think id have to start a new forum post just to try and work out how to pm someone :)

I have embedded RSS here
http://www.videocentric.co.uk/news/partner-news.shtml

and also on various other pages i.e.
http://www.videocentric.co.uk/applicati ... tion.shtml

There is still some work to be done regarding formatting/alignment and the amount of a post that shows (some are showing as 1 line, some as whole essays) but the general idea is working now.

Have you had a go at embedding an RSS now?
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm
Location: the Netherlands

Re: Embedding RSS Feeds

Post by M@rtijn »

emilyshimell wrote:Thanks Ryan! I was going to PM you but i think id have to start a new forum post just to try and work out how to pm someone :)
New users (less then 10 posts) do not have permission to PM ;)
Make your community a better place!
emilyshimell
Forum Members
Forum Members
Posts: 17
Joined: Fri Sep 30, 2011 3:05 pm

Re: Embedding RSS Feeds

Post by emilyshimell »

As this has been solved, please can someone explain how I now change the post to [SOLVED]?! ;D ;D ;D
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm
Location: the Netherlands

Re: Embedding RSS Feeds

Post by M@rtijn »

That's shouldn't be that difficult ;D

Go to the first post, click "Edit" and add [solved] in front of the title
Make your community a better place!
User avatar
DADOCTOR
Forum Members
Forum Members
Posts: 51
Joined: Sat Apr 02, 2011 5:39 am
Location: Australia

Re: Embedding RSS Feeds

Post by DADOCTOR »

Thanks emilyshimell,

I have it working now, thanks for the links

I just have to beautify it now :D
Post Reply

Return to “Modules/Add-Ons”