Ok guys, I have an assignment that I have to finish by monday preferably. I need to have a RSS feed page that would display RSS feeds from like 8-10 sources and then I have to randomly pick like 3 of them and place them on home page or sth else.
to name a few, and also been trying to figure out some modules like SS_RSS_Feed_Manager and RSS connector.
I am trying to make some sense out of this, but could use some help.
Since I'm kinda new to SS and PHP I would bee grateful if you could assist me in a best way to do this.
I have precious little time to complete this so I can't try out all the options before me, so mby if you could point me in right direction, if not provide me with a solution
I am sorry for not answering you sooner. Haven't rly looked at this post in a while, but seems like it may be just what I'm looking for.
I guess I would have to dl silverpie and another thing, the source is somehow connected with $feed = new SimplePie("http://www.yourdomain.com/rss.xml", TEMP_FOLDER); line, I just didn't figure out what is TEMP_FOLDER?
Actually I didn't do anything specially about temp_folder when I used this code. It just worked.
But I think it points to tmp folder in the file system. Silverstripe uses this folder for cache and other purposes, unless you create a folder named silverstripe-cache. Maybe tmp folder is not writable because of security issues. You can try to create a folder in the root of your web site and name it silverstripe-cache. (in the same level with mysite, assets etc.) And make this folder writable.
Yeah, it is working perfectly, I actually did a lot of work with this today and it has helped me a lot.
The problem wasn't with TEMP_FOLDER but I just copy-pasted ur code when trying it out and forgot to put <?php at the begining of .php file so that is the reason it didn't work.
Kinda noobish mistake from me, but then again I am a noob with silverstripe, php and html :D But I think I'm a fast learner.
Anyways it is working for me, but I have other issues with it. I am pulling feed from numerous sources and each has it's own RSS feed format. Let me explain: under 'description' (this->get_description) there is all sorts of things - long texts, short texts; links; icons; "SPONSORED BY..." parts etc. Example:
http://rss.packetstormsecurity.org/files/ - the way I want it to be displayed
http://isc.sans.edu/rssfeed_full.xml - to much text - mby only show first paragraph
http://www.darkreading.com/rss/all.xml - perfect - the way I want it to be displayed
http://feeds.wired.com/wired/politics/security?format=xml - I don't want icons and blue links/text
http://feeds.feedburner.com/itsecurity?format=xml - would like not to display On-Demand Webinar > Watch Now!>>SPONSORED BY: Juniper Networks part (and simmilar)
Is there a way to show just the dirst paragraph of actual description? the "On-Demand Webinar > Watch Now!>>SPONSORED BY: Juniper Networks" on IT security would be ok if it is left there if all other feeds from other sources display nicely - how do you think would be the best way to dispay them?