jasonc Posted December 18, 2007 Share Posted December 18, 2007 i have been told that RSS can not be changed that there is just one format of displaying the links and the info and only in that order. i am trying to get the link to show like a normal link would <a target="_blank" href="http://website.com">this is my site</a> at the moment it shows the link then the description two lines after it. which is a little confusing. is it possible to do this ? this is what code i currently have... <? echo("<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n"); ?> <rss version="2.0"> <channel> <ttl>0</ttl> <title>Welcome to our RSS Feed</title> <link>http://website.com</link> <description>RSS Feed</description> <language>en-us</language> <pubDate><?=gmdate("D, d M Y H:i:s \G\M\T");?></pubDate> <lastBuildDate><?=gmdate("D, d M Y H:i:s \G\M\T");?></lastBuildDate> <generator>OnTheFly</generator> <image> <title><?=$sitename;?></title> <url>http://<?=$siteurl;?>/images/sitelogo.png</url> <link>http://<?=$siteurl;?>?s=rssimg</link> <width>88</width> <height>31</height> </image> <?php while ($result = mysql_fetch_assoc($resultset)) { echo(" <item>\n"); echo(" <title><![CDATA[$result]]></title>\n"); echo(" <link>http://$siteurl/?v=$result[id]&h=r</link>\n"); //echo(" <pubDate>$result[submitgmtdatetime]</pubDate>\n"); echo(" <description>$result[desc]</description>\n"); echo(" </item>\n\n"); } ?> </channel> </rss> Link to comment https://forums.phpfreaks.com/topic/82111-rss-change-the-way-links-are-shown/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.