- Download the latest magpieRSS version from the Magpie site. You need the following files installed:
- Download the recipe to a file named rssdisplay.php.
Create a cache-directory to avoid having the rss feed fetched a zillion times a day. Ensure the directory is writable for the webserver (chmod 777)
In the top section of the rssdisplay.php file, there are some settings for the caching. You might want to adjust the location of the cache directory or the expiration time. The expiration time is the (minimum) time between fetching a rss-feed.
define('MAGPIE_CACHE_AGE', 2*60*60); #expiration time (seconds). define('MAGPIE_CACHE_DIR', "$FarmD/cache"); # location this is YOURWIKIHOME/cache --->Note: 2*60*60 is two times 60 minutes times 60 seconds, aka 2 hours
add the following lines to your local/config.php (in this order or rssdisplay fails)
Question: Your instructions just above say to add inclusion of rssdisplay.php "or" rss_fetch.inc to config.php. Should that say "and" - should the admin include both files??
Answer:You have to add both to your config.php. I have changed it
- (:RSS http://example.com/rss.xml [long|short] number_of_items>:)
- how: short
- number_of_items: 10
- (:RSS http://example.com/rss.xml:)
To display a long format and a max of 5 items use:
- (:RSS http://example.com/rss.xml long 5:)
Guys it didnt work for me. Can anyone tell me step by step guide to add magpie RSS display to pmwiki
Apache's documentation doesn't say anything on enabling outgoing http requests. Is this something that would be known by a different name? Searching for "outgoing http" on the Apache documentation site yields no relevant information. --Mike Linke