I saw a mod in this forum about getting the content in our pligg's rss and let others post the rss on their websites. I found another way to do so.
You can use the rss_fetch.php from this website NeoProgrammers.Com Free Software and basically it does the same thing.
Install was a breeze. Download the zip called RSS Fetch on the website link above. Unzip the download. Upload the rss_fetch.php to your pligg's root folder. Go to rss_fetch.php and change 2 things in there. You need to read the README text file in the download to know which 2 things you need to be changing. Then whomever want to use your rss feeds from your pligg, instruct them to use the code below:
As you can see that you need to instruct the user to change the $url = to your pligg site rss. The user can change the number of feeds to be shown by changing the $show= to number.Code:<?php include "rss_fetch.php"; //include class code from the current directory $url = "http://site.com/rss/feed.rss"; //RSS Feed to parse $show = 10; //Show the latest 10 headlines $html = "<a href='#{link}' target='_new'>#{title}</a><br />"; //HTML code $update = 0; //Dont update if its older $rss = new rss_parser($url, $show, $html, $update); //Fetch and display ?>
You worry about the looks of the output feeds? No worry... though you need to know that the looks of the output feeds will conform to the css or the html layout that presents on the using website. You can always inline css the php code above. Instruct your users to do that. Also it's good to know that only users with php server enable will able to run the code above. It's not like javascript you know!
Have fun with this.



Reply With Quote



