Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetFeed - displaying RSS feeds [beta]
#1
I have made a rudimentary plugin to display RSS feeds in GetSimple (to use it myself, until some decent PHP coder makes a better one) ;-)

GetFeed v0.4.1 beta - GetSimple Feed Reader/Fecther
Download: http://www.cyberiada.org/cnb/getsimple-plugin-getfeed/

Setup:
- Create a 'getfeed' directory in your plugins folder. Create another directory inside of this one, named 'magpierss'.
- Download MagpieRSS libraries (not included in the plugin) from http://sourceforge.net/projects/magpierss/files/ and uncompress it inside the 'magpierss' folder.
- Unzip the GetFeed plugin in your GetSimple plugins folder.

(Once the getfeed functions are first called, a 'getfeedcache' directory will be created in your GetSimple's data folder, to store feed cache files.)

Demos: http://webs.org.es/getfeed/

Usage
Insert calls to GetFeed functions in your template or components (e.g. sidebar)

Available functions:

getfeed_list_titles( FEEDURL [ , NUMPOSTS] )
sample function to display a list titles linking to source post.

getfeed_echo_posts( FEEDURL [ , NUMPOSTS] )
sample function, displays full posts. Customizable with CSS styles.

getfeed_output( FEEDURL , HTMLSTRING [ , NUMPOSTS ] )
customize feed output (this function is called by the first two)

Parameters:

FEEDURL is a string, the URL of the feed.

NUMPOSTS is optional: the maximum number of items to be displayed. Default is 0 = no maximum (all items)

In getfeed_output, HTMLSTRING must be a string containing HTML code, with the following keywords:

{{title}} - the post title
{{link}} - URL of the post
{{description}} - post body contents
{{date}} - date and time (if the script can get it)
{{pid}} - post ID. 1=first, etc. Maybe be useful for e.g. different styles (as used in sample function getfeed_echo_posts)

These keys/shortcodes that will be replaced by their correspondent values for each feed item.
Reply


Messages In This Thread
GetFeed - displaying RSS feeds [beta] - by Carlos - 2010-04-03, 05:44:44
GetFeed - displaying RSS feeds [beta] - by Carlos - 2010-04-03, 23:49:34
GetFeed - displaying RSS feeds [beta] - by Carlos - 2010-04-03, 23:53:16
GetFeed - displaying RSS feeds [beta] - by Carlos - 2010-04-04, 00:23:28
GetFeed - displaying RSS feeds [beta] - by daguy - 2010-08-13, 03:01:22
GetFeed - displaying RSS feeds [beta] - by Oleg06 - 2010-08-13, 05:34:08
GetFeed - displaying RSS feeds [beta] - by Carlos - 2010-08-13, 05:39:05
GetFeed - displaying RSS feeds [beta] - by Carlos - 2010-08-13, 05:45:34
GetFeed - displaying RSS feeds [beta] - by Carlos - 2010-09-01, 06:38:15
GetFeed - displaying RSS feeds [beta] - by Oleg06 - 2010-09-01, 16:32:57
GetFeed - displaying RSS feeds [beta] - by Carlos - 2010-09-02, 08:14:41
GetFeed - displaying RSS feeds [beta] - by Oleg06 - 2010-09-02, 16:21:42
GetFeed - displaying RSS feeds [beta] - by Rene - 2010-09-17, 21:08:35
GetFeed - displaying RSS feeds [beta] - by Carlos - 2010-09-18, 00:48:54
GetFeed - displaying RSS feeds [beta] - by Carlos - 2010-09-18, 00:54:47
GetFeed - displaying RSS feeds [beta] - by Rene - 2010-09-19, 00:57:50
GetFeed - displaying RSS feeds [beta] - by Carlos - 2010-09-19, 01:09:33
GetFeed - displaying RSS feeds [beta] - by Oleg06 - 2011-02-16, 06:17:35
GetFeed - displaying RSS feeds [beta] - by Carlos - 2011-02-16, 07:51:06
GetFeed - displaying RSS feeds [beta] - by Oleg06 - 2011-02-16, 18:39:34
GetFeed - displaying RSS feeds [beta] - by Carlos - 2011-06-12, 00:59:04
GetFeed - displaying RSS feeds [beta] - by Carlos - 2011-06-21, 05:41:23
GetFeed - displaying RSS feeds [beta] - by Connie - 2011-06-21, 09:03:45
GetFeed - displaying RSS feeds [beta] - by gerold - 2011-06-23, 22:25:36
GetFeed - displaying RSS feeds [beta] - by Carlos - 2011-06-23, 22:46:56
GetFeed - displaying RSS feeds [beta] - by gerold - 2011-06-24, 00:03:21
GetFeed - displaying RSS feeds [beta] - by Carlos - 2012-03-18, 19:23:23



Users browsing this thread: 1 Guest(s)