Results 1 to 2 of 2
  1. #1
    Donor argh2xxx's Avatar
    Joined
    Jan 2007
    Posts
    376

    RSS onto another site

    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:

    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
      ?>
    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.

    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.

  2. #2
    Constant Pligger P1mpPanther's Avatar
    Joined
    Feb 2007
    Posts
    277
    Thanks for sharing.

    The only caveat with something like this, is as you mentioned, the install and stylizing might be beyond the scope of the avg user.

    Ideally, a snippet of js code or similar I think would be best to use, with the fomatting coming from a stylesheet hosted on your (our) server.

    my 2

Similar Threads

  1. histats.com's site stats code is not working on my site
    By almasiqbal in forum Questions & Comments
    Replies: 1
    Last Post: 07-20-2011, 01:57 PM
  2. common changes in original site to submit site
    By manishwatts in forum Questions & Comments
    Replies: 1
    Last Post: 11-21-2010, 11:01 PM
  3. Image upload+light box add my site.. what code add my site?
    By nellaitamil in forum Questions & Comments
    Replies: 0
    Last Post: 09-21-2009, 08:49 AM
  4. back-up site/hack&slash site question...
    By juicecowboy in forum Questions & Comments
    Replies: 1
    Last Post: 06-22-2006, 12:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting