Hi,
I found this nice idea in the 2.0 mod forums:
https://efiction.org/forums/index.php?topic=2676.0
Would it be possible to update this mod to work with eFiction 3.0?
Steffen
Hello!
I am very interested by this MOD as well.
I tried to use the 2.0 one but it doesn't seem to work.
If someone could find a way, it would be perfect.
Thanks by advance.
Sorry for the double post but I finally found a way so I thought I could share!
Just go to: http://itde.vccs.edu/rss2js/build.php
Indicate your rss URL:
http://yoursite/efictionfolder/rss.php
Choose if you want to display title, how many stories do you want to display, the numbers of characters...etc and generate your code.
Copy and paste where you want your recent stories to display!
Bookmarking that page. That worked great, no modding of efiction was necessary and you pasted in the code wherever or however you like.
Thanks for the link.
barb
******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3
Yea, without doubt it's great for people with no or less php knowledge. The only disadvantage of this tool is that it is hosted on another server and not on the own web host.
My solution for displaying RSS feeds is The Magpie RSS library and a simple script like this:
<?php
//where the magpie files are located, relative from script file
define('MAGPIE_DIR', './lib/magpie/');
//include the magpie
require_once(MAGPIE_DIR.'rss_fetch.inc');
//change this to be your feed url
$url=' http://www.domain.com/rss.php';
//gets the feed
$rss = fetch_rss( $url );
//content related, change to your needs
echo "<p><h2>Feed title here</h2></p>";
//this example shows the items as an unordered list
echo "<ul>";
//begin the loop
foreach ($rss->items as $item) {
$href = $item['link']; //item hyperlink
$title = $item['title']; //item title
$date = $item['pubdate']; //date published
$description = $item['description']; //item description, not used in this example
//and here we go!
echo "<li><a href="$href>$title</a>," $date</li>";
}
//close the ul
echo "</ul>";
?>
HTH
Steffen
BTW: request solved, don't need it anymore as you can see above. π
