Jump to content

Recommended Posts

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.