Archive for the ‘LinkBidScript Modifications’ Category

Updating LinkBidScript RSS feed for your site

Sunday, November 18th, 2007

With LinkBidScript powered directory you have an option to provide RSS feed to subscribers and search engines. Feed files have been configured to lead to internal “Listings Details” pages on your directory so I would highly recommend updating them as soon as possible.

Unfortunately in the current script version to work properly RSS feed files have to be updated manually. The changes are minimal - just follow simple instructions below.

There are 5 XML.php files that need to be updated:

- categxml.php (provides feeds from categories pages)

- listxml.php (provides feed from alphabetic categories pages)

- linksxml.php (provides complete feed of listings sorted by high bid)

- newlinksxml.php ( provides complete feed of listings sorted by date submitted)

- linkstopxml.php (provides feed of top listings from the home page)

In all 5 files you are looking for the same section near very end:


<rss version="2.0">
<channel>
<title><?php echo("$sitetitle");?> - Alphabetic Listings Feed</title>
<description>Alphabetic listings in Your Directory</description>
<link>http://Your_Site.com/list.php</link>
<copyright>Your Company</copyright>
<?php do { ?>
<item>
<title><?php echo $row_lista['title']; ?></title>
<description><?php echo $row_lista['descr1']; ?>. <?php echo $row_lista['descr2']; ?></description>
<link><?php $wsn = $row_lista['title']; include(’template/Your_Template_Name/page_name.php’); ?>http://Your_Domain.com/<?php echo $row_lista['dtu'];?>/<?php echo(”$wsseoname”); ?>.html</link>
</item>
<?php } while ($row_lista = mysql_fetch_assoc($lista)); ?>
</channel>
</rss>

Remove parts of code marked in BLUE

Instead of parts marked in RED insert actual data for your site. Save all files and you are done.

To make sure RSS feed is working just click on XML icon on one of the pages.

One more thing that may cause feed not to work - make sure none of your listings using symbols like “$” or “&” that can be interpreted as a part of code and break the feed.