options['rss_view_col']; $count = 0; $code2 = ""; function render_news($feed_url, $showdetail, $headlinestyle, $detailstyle) { global $show_detail, $headline_style, $detail_style, $max, $count, $insideitem, $insideimage, $code2; $insideitem=false; $insideimage=false; $count = 0; $show_detail = $showdetail; $headline_style = $headlinestyle; $detail_style = $detailstyle; $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, "startElement", "endElement"); xml_set_character_data_handler($xml_parser, "characterData"); $fp = @fopen($feed_url,"r"); // or die("Error reading RSS data."); if ($fp) { while ($data = fread($fp, 4096)) xml_parse($xml_parser, $data, feof($fp)) or die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); fclose($fp); } else { $code2 .= "Syndicated content not available"; } // Free up memory used by the XML parser xml_parser_free($xml_parser); } function startElement($parser, $name, $attrs) { global $insideitem, $tag, $title, $description, $link, $image, $insideimage, $code2; if ($insideitem || $insideimage) { $tag = $name; } if ($name == "ITEM" ) { $insideitem = true; } if ($name == "IMAGE") { $insideimage = true; } } function endElement($parser, $name) { global $insideitem, $tag, $title, $description, $link, $image, $insideimage, $show_detail, $headline_style, $detail_style, $count, $max, $code2; if ($name == "URL") { $code2 .= "

"; $insideimage=false; $image=""; } else if ($name == "ITEM" && $count < $max) { $count++; eval('$satir1 .= "' . fetch_template('Newsview_col') . '";'); // $code2 .= "$title
"; $code2 .= "$satir1"; if ($show_detail) { eval('$satir2 .= "' . fetch_template('Newsview_description') . '";'); // $code2 .= "$description

"; $code2 .= "$satir2"; } else { $code2 .= "
"; } $title = ""; $description = ""; $link = ""; $insideitem = false; } else if ($count >= $max) { $title = ""; $description = ""; $link = ""; $insideitem = false; } } function characterData($parser, $data) { global $insideitem, $tag, $title, $description, $link, $image, $insideimage, $code2; if ($insideimage) { switch ($tag) { case "URL": $image .= $data; break; } } if ($insideitem ) { switch ($tag) { case "TITLE": $title .= $data; break; case "DESCRIPTION": $description .= $data; break; case "LINK": if (!is_string($link)) $link=""; $link .= $data; break; } } } ?> Sat Universe

Go Back   Sat Universe

Note: Visitors from certain countries might see in-text advertising(underlind words in posts) or slide-in ads.
It is only shown to unregistered visitors or members that haven't made any posts. So you can easily get rid of it.

Atakan RSS View Feeds




Double Click or select the feed and press Fetch It button

All times are GMT +2. The time now is 05:51.


Powered by vBulletin
Copyright ©2006-2016 - Sat Universe