Why Isnt My Rss Showing Images ??

Discussion in 'XML & RSS' started by msk19994, Sep 1, 2011.

  1. #1
    Hey Guys
    My rss is not showing images the rss code is listed below and the url to the feed is
    Streaming Series

    <?php
    @set_time_limit(0);
    @extract($_GET);
    
    require_once("vars.php");
    require_once("includes/show.class.php");
    $show = new Show();
    
    if (@$all){
    	$limit = 10000000;
    } else {
    	$limit = 20;
    }
    
    $episodes = $show->getLastAdditions($limit,@$perma);
    
    if (count($episodes)){
    	$content = '';
    	$content.= '<?xml version="1.0" encoding="UTF-8"?>'."\n";
    	$content.= '<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?>'."\n";
    	$content.= '<?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?>'."\n";
    	$content.= '<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">'."\n";
    	
    	$now = date("D, d M Y H:i:s T");
    	
    	$content.= "<channel>\n";
    	$content.= "	<title>$sitename</title>\n";
    	$content.= "	<link>$baseurl</link>\n";
    	$content.= "	<description>TV show and movie resource</description>\n";
    	$content.= "	<lastBuildDate>$now</lastBuildDate>\n";
    	$content.= "	<language>en</language>\n";
    	$content.= "	<generator>http://tvstreamscript.com</generator>\n";
    
    	foreach($episodes as $key=>$val){
    		extract($val);
    		$pubdate = date("D, d M Y H:i:s T",strtotime($date_added));
    		
    		if (@$all) $description.="\n\nEMBED:\n$embed";
    		
    		$content.= "	<item>\n";
    		if (@$pics){
    			if (@$val['thumbnail']){
    				$thumb = $val['thumbnail'];
    			} else {
    				$thumb = $val['show_thumbnail'];
    			}
    			
    			$thumb = $baseurl."/thumbs/".$thumb;
    			$content.="		<thumbnail>$thumb</thumbnail>\n";
    		}
    		$content.= "		<title>".htmlspecialchars(stripslashes(utf8_encode($showtitle)))." - ".htmlspecialchars(utf8_encode(stripslashes($title)))."</title>\n";
    		$content.= "		<link>$baseurl/$perma/season/$season/episode/$episode</link>\n";
    		$content.= "		<comments>$baseurl/$perma/season/$season/episode/$episode</comments>\n";
    		$content.= "		<pubDate>$pubdate</pubDate>\n";
    		$content.= "		<description><![CDATA[".htmlspecialchars(utf8_encode($description))."]]></description>\n";
    		$content.= "		<content:encoded><![CDATA[".htmlspecialchars(utf8_encode($description))."]]></content:encoded>\n";
    		$content.= "	</item>\n";
    	}
    	
    	$content.="</channel>\n";
    	$content.="</rss>";
    	header ("content-type: text/xml");
    	print($content);
    
    }
    ?>
    Code (markup):
     
    msk19994, Sep 1, 2011 IP