SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Level 8 Chinese guy Archbob's Avatar
    Join Date
    Sep 2001
    Location
    Somewhere in this vast universe
    Posts
    3,741
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to get images with an RSS feed

    So I think I followed the guidelines on images with RSS in my RSS feed here:

    http://www.flashgamesnexus.com/nexusrss.php

    I used the following code to generate the RSS:

    Code:
    <?php
      print "<?xml version='1.0' ?>";
    ?> 
    <rss version="2.0">
    <channel>
    <title>Great Flash games</title>
    <description>The best and highest rated flash games every day</description>
    <link>http://www.flashgamesnexus.com</link>
    <?php
    include "connect.php";
    $getgames="SELECT * from gametable order by gameid DESC limit 14";
    $getgames2=mysql_query($getgames) or die("Could not get games");
    while($getgames3=mysql_fetch_array($getgames2))
    {
        print "<item>";
        print "<title>$getgames3[gamename]</title>";
        print "<description>$getgames3[gamedescription]</description>";
        print "<link>http://www.flashgamesnexus.com/flash-games/$getgames3[gameurl].php</link>";
        print "<image>";
        print "<url>$getgames3[imageurl]</url>";
        print "<title>$getgames3[gamename]</title>";
        print "<link>http://www.flashgamesnexus.com/flash-games/$getgames3[gameurl].php</link>";
        print "</image>";
        $content=$getgames3[gamecontent];
        $urlseg=explode('"',$content);
        $swfpath=$urlseg[1];
        print "<url_swf>$swfpath</url_swf>";
        print "</item>";
    
    }
    ?>
    </channel>
    </rss>
    Shows up, but the images don't show, what should I do?

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,226
    Mentioned
    194 Post(s)
    Tagged
    2 Thread(s)
    Did you fix it? It works for me using Firefox


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •