Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetFeed - displaying RSS feeds [beta]
#26
Sorry, this is something they have on the site is not working Smile
I translate by Google
Reply
#27
0.3.1 (beta) release: fixes problems with "<" characters in post titles.
Download here: http://www.cyberiada.org/cnb/getsimple-plugin-getfeed/
Reply
#28
(from another thread)
Connie Wrote:
Carlos Wrote:A quick tip to avoid dates in English: edit getfeed.php and replace:
Code:
define('GETFEED_DATE_FORMAT', 'M jS, Y'); // default date format
by e.g.:
Code:
define('GETFEED_DATE_FORMAT', 'd.m.Y');

Dates will then be in DD.MM.YYYY format.
wouldn't it be better that the plugin reads the general configuration language constante from gsconfig.php?

No constant for this in gsconfig... Do you mean the admin/lang $i18n["DATE_FORMAT"] ?
If so, I thought that was intended for the backend. I chose 'M jS, Y' as a default because that's what old GetSimple default theme used for get_page_date() (though I now see each theme choses its own format...)

Anyway I'll add a parameter to some of this plugin's functions so that you can specify your custom date format -- that way you'll be able to display several feeds with different formats.

Connie Wrote:just my 5 pesetas Wink

Heh, that was a "duro"! I still may have one of those... :-)
Thanks for your comments.
Reply
#29
Carlos Wrote:No constant for this in gsconfig... Do you mean the admin/lang $i18n["DATE_FORMAT"] ?
Connie Wrote:just my 5 pesetas Wink

Heh, that was a "duro"! I still may have one of those... :-)

yes I meant that date format , or the date format of the admin, maybe...

I remember: 1 duro was one session at the flipper automat in the Bar dels Pescadors in Roses, in 1972 and later (spent long rainy october evenings in that place )

adeu,

Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#30
Hi Carlos,
is it possible to call the function whenever i like to? (Browser refresh doesn't do it, right?)

Background: When i made a new post externaly it is not immediately called by the function getfeed_echo_posts. In other words: The new post is there in the extern ../rss.xml but does not show up in the GS-page.
How long does it take for getfeed_echo_posts to "look up" the rss-feed?

Thanks
Gerold
Reply
#31
@gerold

Edit getfeed.php and somewhere at the beginning insert this:
Code:
define('MAGPIE_CACHE_AGE',3600); // How long to store cached RSS objects? In seconds.

Change 3600 to your preferred number of seconds (0 to always refresh, but use it with care if the fetched feed is not in your own server)
Reply
#32
@Carlos.

now i understand. 3600 = every hour; that is good for me. Thank you.
Reply
#33
0.4.1 (beta) release: support for dates in RSS 2.0 and Atom feeds.
Download here: http://www.cyberiada.org/cnb/getsimple-plugin-getfeed/
Reply
#34
Ciao Carlos, Amazing Plugin. I installed it out of curiosity to bring RSS feeds to a Website made with GetSimple, and it works greatly. =D
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply
#35
Hi Carlos,
Your great plugin works even with Facebook feeds (Rss02 and Atom01)
I tried so and it works perfectly :-)
PHP Code:
<?php
getfeed_output
('http://www.facebook.com/feeds/page.php?format=atom10&id=HERE_YOUR_FB_ID',
'<p style="font-weight:bold; padding:0; margin:0;"><a href="{{link}}" target="_blank">{{title}}</a></p>'0);
?>

The only problem is that it prints a empty space when it reads a image from Facebook.

Then, I used it to read feeds from joomla sites and it works very well. It's gonna be very interesting!
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply
#36
(2014-03-28, 19:06:57)D.O. Wrote:
PHP Code:
<?php
getfeed_output
('http://www.facebook.com/feeds/page.php?format=atom10&id=HERE_YOUR_FB_ID',
'<p style="font-weight:bold; padding:0; margin:0;"><a href="{{link}}" target="_blank">{{title}}</a></p>'0);
?>

The only problem is that it prints a empty space when it reads a image from Facebook.

Try changing atom10 by rss20 in the feed URL.
Reply
#37
Hola Hermano!
YES, in this way it works. Thanks

PHP Code:
<?php
getfeed_output 
('http://www.facebook.com/feeds/page.php?format=rss20&id=HERE_YOUR_FB_ID',
'<p><a href="{{link}}" target="_blank">{{title}}</a><br>{{description}}</p>'0);
?>
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply




Users browsing this thread: 1 Guest(s)