RSS-Einstellungen
RSS-Feed-Adresse:
get($index, "text"); if (stre($url)) return; //no address $url = absolute_path(CMS_ROOT_URL, $url); //load library cms_load("rss_parser"); //create parser $rss_parser = new rss_parser(); //options $rss_parser->show_channel = TRUE; $rss_parser->show_channel_title = TRUE; $rss_parser->show_channel_link = TRUE; $rss_parser->show_channel_description = TRUE; $rss_parser->show_channel_copyright = TRUE; $rss_parser->show_channel_managing_editor = TRUE; $rss_parser->show_channel_web_master = TRUE; $rss_parser->show_channel_pub_date = TRUE; $rss_parser->show_channel_last_build_date = TRUE; $rss_parser->show_channel_category = TRUE; $rss_parser->show_channel_generator = TRUE; $rss_parser->show_channel_cloud = TRUE; $rss_parser->show_channel_image = TRUE; $rss_parser->show_channel_text_input = TRUE; $rss_parser->show_item = TRUE; $rss_parser->show_item_title = TRUE; $rss_parser->show_item_link = TRUE; $rss_parser->show_item_description = TRUE; $rss_parser->show_item_author = TRUE; $rss_parser->show_item_category = TRUE; $rss_parser->show_item_comments = TRUE; $rss_parser->show_item_enclosure = TRUE; $rss_parser->show_item_guid = TRUE; $rss_parser->show_item_pub_date = TRUE; $rss_parser->show_item_source = TRUE; $rss_parser->channel_image_default_width = 120; $rss_parser->channel_image_default_height = NULL; //auto $rss_parser->enable_html_filter = FALSE; $rss_parser->max_text_length = 75; $rss_parser->max_description_length = 400; //html filter only $rss_parser->max_item_number = 20; //parse if (! $rss_parser->parse($url)) { $code = xml_get_error_code($rss_parser->parser); echo("

" . "" . "RSS-Fehler: " . x(xml_error_string($code)) . "" . "

"); return; }; //display $rss_parser->display(); ?>