RSS Feed 0.8 README
==============================================

Released under the GNU General Public License
  http://www.gnu.org/copyleft/gpl.html

Original RSS Feed by Patrick Veverka

v0.1
Copyright (c) 2003 Pave Designs (http://www.pavedesigns.com)
  http://www.oscommerce.com/community/contributions,1513

(History and Changelog in the rss.php file)

==============================================

----- ENGLISH -----
Instructions:

1. Modify the RSS file to your own needs.

2. Upload it to the root of your catalog (http://yoursite.com/ or http://yoursite.com/catalog)

3. Upload the icon rss_icon.png to images/icons/rss_icon.png

4. Add to the includes/languages/english.php file:

  // RSS Feed
  define('BOX_INFORMATION_RSS', 'Catalog RSS');

5. Add to the includes/filenames.php file:

  // RSS Feed
  define('FILENAME_RSS', 'rss.php');

6. Add to the HTML header, at least on the index.php file:

  <?php
  if (!isset($lng) || (isset($lng) && !is_object($lng))) {
    include(DIR_WS_CLASSES . 'language.php');
    $lng = new language;
  }  
  
  reset($lng->catalog_languages);
  while (list($key, $value) = each($lng->catalog_languages)) {
    echo '<link rel="alternate" type="application/rss+xml" title="' . STORE_NAME . ' ' . BOX_INFORMATION_RSS . ' ' . $value['name'] . '" href="' . FILENAME_RSS . '?language=' . $key . '" />';
  }
  ?>

7. Then add a link to the RSS file by example by adding this line to the
  includes/boxes/information.php file:

  '<a href="' . tep_href_link(FILENAME_RSS) . '">' . BOX_INFORMATION_RSS . '</a><br />' .

  (note the final dot if you insert this line between others; if not, replace the final "' ." by "');")

  Or add the link in the footer and add this line to the includes/footer.php file:

  <?php echo '      <a href="' . FILENAME_RSS .  '" title="' . BOX_INFORMATION_RSS . '">' .  tep_image(DIR_WS_IMAGES .  "icons/rss_icon.png" , BOX_INFORMATION_RSS) . '</a>'; ?>

8. Thats it! Submit your url (http://yoursite.com/rss.php) to as many rss search engines as you can and watch the bots start coming...

==============================================

----- FRANÇAIS -----
Instructions :

1. Modifier le fichier rss.php selon votre besoin ;

2. L'uploader à la racine du catalogue (http://example.com/ ou
  http://example.com/catalog/) ;

3. Uploader l'icone rss_icon.png dans images/icons/rss_icon.png ;

4. Ajouter au fichier includes/languages/english.php (et french.php) :

  // RSS Feed
  define('BOX_INFORMATION_RSS', 'Catalog RSS');

5. Ajouter au fichier includes/filenames.php :

  // RSS Feed
  define('FILENAME_RSS', 'rss.php');

6. Ajouter aux entêtes HTML, au moins sur le fichier index.php :

  <?php
  if (!isset($lng) || (isset($lng) && !is_object($lng))) {
    include(DIR_WS_CLASSES . 'language.php');
    $lng = new language;
  }  
  
  reset($lng->catalog_languages);
  while (list($key, $value) = each($lng->catalog_languages)) {
    echo '<link rel="alternate" type="application/rss+xml" title="' . STORE_NAME . ' ' . BOX_INFORMATION_RSS . ' ' . $value['name'] . '" href="' . FILENAME_RSS . '?language=' . $key . '" />';
  }
  ?>

7. Enfin, placer un lien vers le fichier RSS par exemple dans la boite « informations » en insérant cette ligne :

  '<a href="' . tep_href_link(FILENAME_RSS) . '">' . BOX_INFORMATION_RSS . '</a><br>' .

  (noter le point final si on insère cette ligne entre d'autres, sinon remplacer le « ' . » final  par « '); »)

  Ou bien dans le bas de page en ajoutant cette ligne dans le fichier includes/footer.php

  <?php echo '      <a href="' . FILENAME_RSS . '" title="' . BOX_INFORMATION_RSS . '">' .  tep_image(DIR_WS_IMAGES .  "icons/rss_icon.png" , BOX_INFORMATION_RSS) . '</a>'; ?>

8. C'est tout.
