set_feed_url($parameters[0]); $show_items_num = $parameters[1]; // Show how many items per feed? $show_chars_num = $parameters[2]; // Show how many characters per item? $feed->set_cache_location($RSS_Cache); $feed->set_cache_duration($Cache_Duration); $feed->set_timeout(5); $feed->enable_order_by_date('$Order_By_Date'); $feed->strip_htmltags(array_merge($feed->strip_htmltags, array('img', 'pre'))); $feed->remove_div(true); $feed->force_feed(true); $feed->set_useragent('Mozilla/4.0 '.SIMPLEPIE_USERAGENT); $feed->init(); $feed->handle_content_type(); foreach ($feed->get_items(0, $show_items_num) as $item): $title = $item->get_title(); $url = ltrim($item->get_permalink()); $date = $item->get_date('j F Y'); $time = $item->get_date('g:i a'); $description = trim($item->get_description()); $description = substr($description, 0, $show_chars_num); $description = rtrim($description, '

'); $output .= "" .$title. "\\\\\n"; if ($date != '') $output .= "Posted: " .$date. "  |  " .$time. "\\\\\n"; if ($description == '') $output .= "[[ " .$url. " | more...]]\\\\\n"; else $output .= "" .$description. "   [[ " .$url. " | more...]]\\\\\n"; $output .= "\\\\\n"; endforeach; } // if (($action == 'browse') error_reporting($OriginalError_reportingLevel); } // if ($regex) return $output; } // function ?>