Simple RSS help

Discussion in 'XML & RSS' started by epic1231, Jan 1, 2008.

  1. #1
    hey guys, looked over the thread on here about rss and spent the last god knows how long trying to figure out how to get goddamn images to show up in my rss feed.

    Here is what I have there

    
    <?php
    include_once("config.php");
    
    header("Content-type: text/xml");
    print "<?xml version=\"1.0\" encoding=\"windows-1252\"?>
    <rss version=\"0.91\">
      <channel>
        <title>Hilili Hosted Videos</title>
        <link>http://www.hilili.com/?cat=Hosted</link>
        <description>Hosted Videos Updated Daily</description>
        <language>en-us</language>
        <generator>Hilili Hosted Videos</generator>
    ";
    
    $result=mysql_query("SELECT * FROM babeloggerv3 WHERE approved='yes' ORDER BY id DESC LIMIT $rss_feeds");
    while($row=mysql_fetch_array($result))
    {
    	$title=stripslashes(htmlspecialchars($row[title]));
    	print "<item>
                <title>$title</title>
                <link>$script_url/index.php?gal=$row[id]</link>
                <description>$row[description]</description>
    		<image>$script_url/babelogger_images/$row[imgname]</image>
    		<category>$row[Hosted]</category>
                </item>";
    }
    	print "
        </channel>
        </rss>
    	";
    ?>
    
    Code (markup):
    I think I have it setup right although it's not showing the images, everything else shows
     
    epic1231, Jan 1, 2008 IP
  2. akram

    akram Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    What is the aggregator you are using?

    Some aggregators ignore the image tag.
     
    akram, Jan 5, 2008 IP
  3. xpose

    xpose Peon

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If your image link isnt coming up then your field name (imgname) is spelled incorrectly. If you want the image to show up like html, then you have to encode it to show up as html and not plain text.
     
    xpose, Jan 16, 2008 IP