function rpf_feed_page() { $rpf_options = get_option('rpf_options'); if (isset($_POST['rpf_save'])) { $feeds = $_POST['rpf_feed']; foreach ($feeds as $feed) { rpf_update_feed($feed); } echo '<div id="message" class="updated fade"><p>Saved!</p></div>'; } elseif (isset($_POST['rpf_reset'])) { rpf_reinstall(); echo '<div id="message" class="updated fade"><p>You are done reinstalling RSS Poster!</p></div>'; } elseif ($_GET['action'] == 'done') { echo '<div id="message" class="updated fade"><p>Fetch Done! See <a href="admin.php?page=rpf_log_page&s=logs&p=last">log</a> for details.</p></div>'; } ?> <div class="wrapper"> <form method="post"> <h2>RSS Poster - Free Version</h2> <h4>RSS Poster - Free Version will automatically grab FULL articles from up to five RSS Feeds.</h4> <h2>Instruction</h2> <p style='font-size:13px;'>To add a feed, simply fill the Feed Name and Feed URL boxes with related data.Then select the other options as preferred.</p> <p style='font-size:13px;'>To replace a feed, write over the previous options.</p> <p style='font-size:13px;'>To delete a feed, simply leave Feed Name or Feed URL box blank.</p> <p style='font-size:13px;'>When finished hit the UPDATE SETTINGS button below, that's it!</p> <p style='font-size:13px;'><b>Please note: </b>RSS Poster will automatically process all feeds to grab full articles at a specific interval and you don't need to handle with complicated cron job command. That's automated!</p> <p style='font-size:13px;'>Please read the <a href="http://www.wprssposter.com/faq.html">FAQ</a> of RSS Poster.</p> <p style='font-size:13px;'>Leave your feedback <a href="http://www.wprssposter.com/blog/">here</a>.</p> <h4>Popular NEWS Feeds</h4> <p style='font-size:11px;'>http://news.google.com/news?q=your keyword&output=rss</p> <p style='font-size:11px;'>http://news.search.yahoo.com/news/rss?p=your keyword</p> <p style='font-size:11px;'>http://api.bing.com/rss.aspx?Source=News&Market=en-US&Version=2.0&Query=your keyword</p> <img src="<?php echo RPF_URL_ROOT; ?> images/ajax-loader.gif" id="wait" style="display:none;"/> <div id="TBcontent" style="display: none;"> <p>Do you want to see log for details?</p> <input type="submit" id="TByes" value="Yes" /> <input type="submit" id="TBno" value="No" /> </div> <table width="70%" id="rpf_feed"> <?php rpf_print_feeds(rpf_get_feeds()); ?> </table> <p><input type="submit" class="button-primary" value="UPDATE SETTINGS" name="rpf_save"></p> <p><input type="submit" onclick="return confirm('Backup your data before reinstalling!')" class="button" value="Reinstall RSS Poster" name="rpf_reset"></p> </form> <b>Extra Features on RSS Poster PRO Version.</b><br> - <a href="http://www.wprssposter.com/faq.html#rewrite">Rewriter Feature</a>.<br> - Unlimited feeds option. <br> - Feeds Data Export.<br> - Feeds Data Import. <br> - Custom time interval between posts of each feed.<br> - Cache image or not.<br> - Control the frequency that RSS Poster will automatically process and update all feeds.<br> - Optional Cron Job.<br> - Ping.fm Module.<br> - Onlywire.com Module.<br> - Excluding/Including post when fetching.<br> - Remove "Related Posts" or something from original content.<br> - Display article source or not.<br> <a href="http://www.wprssposter.com/purchase.html">Get the PRO Version</a> </div> <?php }
function rpf_get_feed($id) { $feeds = rpf_get_feeds(); foreach ($feeds as $feed) { if ($feed['id'] == $id) { return $feed; } } return false; }