Sitemap SEO by Jack_MCS oscommerce-solution.com INSTALLATION: (only for oscommerce version 2.3 or above) =============================================================== 1) Make the database changes. To do that, upload the sitemap_seo_install.php file to the root directory of your shop (where your index.php file is located). Then, in a web browser, go to http://PUT_YOUR_DOMAIN_NAME_HERE/sitemap_seo_install.php and press enter. It will show continue if successful. Be sure to delete that file from the server once this has been done. =============================================================== 2 ) Upload the files. There are two directories in the package: catalog and catalog_Only_New_Files - catalog contains the files in your shop that need to be edited. If you have a new shop where the files have not been edited (it doesn't matter if the database has been changed), these files can be uploaded over your existing files to complete the installation. Otherwise, you will need to make the changes by comparing the files or by following the instructions below. - catalog_Only_New_Files - these are files specific to this contribution. They can all be safely uploaded to your site. =============================================================== 3) In admin/includes/languages/english.php, before the last ?>, (do the same for any other language file your shop uses). ADD: /***** Begin Sitemap_SEO *****/ define('BOX_HEADING_SITEMAP_SEO', 'Sitemap SEO'); define('BOX_SITEMAP_SEO_BOX_CONTROL', 'Box Control'); define('BOX_SITEMAP_SEO_PAGE_CONTROL', 'Page Control'); define('BOX_SITEMAP_SEO_SETTINGS_CONTROL', 'Settings Control'); /***** End Sitemap_SEO *****/ =============================================================== 4) In admin/includes/column_left.php, before the last ?>, FIND: include(DIR_WS_BOXES . 'tools.php'); ADD BENEATH: include(DIR_WS_BOXES . 'sitemap_seo.php'); =============================================================== 5) In admin/includes/database_tables.php, before the last ?>, ADD: /***** Begin Sitemap_SEO *****/ define('TABLE_SITEMAP_SEO_BOX_LINKS', 'sitemap_seo_box_links'); define('TABLE_SITEMAP_SEO_BOXES', 'sitemap_seo_boxes'); define('TABLE_SITEMAP_SEO_PAGES', 'sitemap_seo_pages'); define('TABLE_SITEMAP_SEO_SETTINGS', 'sitemap_seo_settings'); /***** End Sitemap_SEO *****/ =============================================================== 6) In admin/includes/filenames.php, before the last ?>, ADD: /***** Begin Sitemap_SEO *****/ define('FILENAME_SITEMAP_SEO', 'sitemap.php'); define('FILENAME_SITEMAP_SEO_BOX_CONTROL', 'sitemap_seo_box_control.php'); define('FILENAME_SITEMAP_SEO_PAGE_CONTROL', 'sitemap_seo_page_control.php'); define('FILENAME_SITEMAP_SEO_SETTINGS_CONTROL', 'sitemap_seo_settings_control.php'); /***** End Sitemap_SEO *****/ =============================================================== 7) In includes/modules/boxes/bm_information.php, only if the contact_us line is the last one. Otherwise, you have to edit the code., REPLACE: ' ' . MODULE_BOXES_INFORMATION_BOX_CONTACT . '' . WITH: ' ' . MODULE_BOXES_INFORMATION_BOX_CONTACT . '
' . ' ' . MODULE_BOXES_INFORMATION_SITEMAP_SEO . '' . =============================================================== 8) In includes/languages/english.php, (and any other language you want to use) before the last ?>, ADD: /***** Begin Sitemap_SEO *****/ define('BOX_INFORMATION_SITEMAP_SEO', 'Sitemap'); /***** End Sitemap_SEO *****/ =============================================================== 9) In includes/database_tables.php, before the last ?>, ADD: /***** Begin Sitemap_SEO *****/ define('TABLE_SITEMAP_SEO_BOX_LINKS', 'sitemap_seo_box_links'); define('TABLE_SITEMAP_SEO_BOXES', 'sitemap_seo_boxes'); define('TABLE_SITEMAP_SEO_PAGES', 'sitemap_seo_pages'); define('TABLE_SITEMAP_SEO_SETTINGS', 'sitemap_seo_settings'); /***** End Sitemap_SEO *****/ =============================================================== 10) In includes/filenames.php, before the last ?>, ADD: /***** Begin Sitemap_SEO *****/ define('FILENAME_SITEMAP_SEO', 'sitemap.php'); define('FILENAME_SITEMAP_SEO_CATEGORY', 'sitemap_category.php'); define('FILENAME_SITEMAP_SEO_PRODUCT', 'sitemap_product.php'); define('FILENAME_SITEMAP_SEO_MANUFACTURERS', 'sitemap_manufacturers.php'); /***** End Sitemap_SEO *****/ =============================================================== 11) In index.php, FIND (around line 88): ADD BENEATH: FIND (aroundline 244): include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?> ADD AFTER: =============================================================== 12) In product_info.php, FIND (around line 209): ADD AFTER: =============================================================== 13) In stylesheet.css, at the end of the file, ADD: (Note: If an h2 class already exists in the stylesheet, remove it from from this change). /***** Begin Sitemap_SEO *****/ ul.sitemap { color: #ff0000; } .sitemap { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #0000ff; font-weight : normal; } .sitemapHeading { font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #0000ff; font-weight : normal; } .sitemapProducts { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #f000ff; font-weight : normal; } A.sitemap { color: #009900; } A.sitemap:hover { color: #ff0000; } .sitemap_indvidual_hdg { font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #0000ff; font-weight : normal; } A.sitemap_indvidual_hdg { color: #009900; } A.sitemap_indvidual_hdg:hover { color: #ff0000; } .sitemap_indvidual { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #f000ff; font-weight : normal; } A.sitemap_indvidual { color: #009900; } A.sitemap_indvidual:hover { color: #ff0000; } h2 { font-family: Verdana, Arial, sans-serif; font-size: 14px; font-weight: normal; margin-bottom: 0; padding-bottom: 0; color: #000; } /***** End Sitemap_SEO *****/ =============================================================== 14) OPTIONAL: In includes/languages/english/sitemap.php, change the text in the TEXT_INFORMATION to suit your needs. Remove the text if you don't want to use this option. =============================================================== That completes the installation. You should now do the following: - Go to admin->Sitemap SEO->Page Control - no other action is needed. - Go to admin->Sitemap SEO->Box Control, select a box from the dropdown menu in the "Boxes Individual Control" secion and then click Update. This will only work for boxes with hard coded links, like the information box. If you don't use such a box, skip this step. - Change the stylesheet to match your site and taste. - Change the settings in admin->Configuration->Sitemap SEO so the sitemap displays as you want. - Change the settings in admin->Sitemap SEO->Settings Control. =============================================================== The support thread is located at: http://forums.oscommerce.com/index.php?showtopic=324829