Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Brooks552

Pioneers
  • Posts

    55
  • Joined

  • Last visited

Profile Information

  • Real Name
    Darren
  • Gender
    Male
  • Location
    Hampshire
  • Interests
    Ice Hockey
    Footbal

Brooks552's Achievements

  1. I've been looking at Sams Anti Hacker mod too and have most of it complete but create_account is proving difficult. have you been able to convert this page?
  2. I took a look at Sitemap SEO last night and have some fairly useful initial results with the following code changes: catalog/sitemap.php <?php /* $Id: sitemap_seo.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License OSC to CSS v2.0 http://www.niora.com/css-oscommerce.php */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SITEMAP_SEO); require(DIR_WS_MODULES . FILENAME_SITEMAP_SEO); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SITEMAP_SEO); /****************** DISPLAY ARTICLES MANAGER LINKS *********************/ $showArticlesManager = ''; if (count($articlesManagerLinksArray) > 0) { if (tep_not_null($settings['heading_articles_manager'])) { $showArticlesManager .= '<div class="grid_4 apha"><span class="sitemapHeading" align="' . SITEMAP_SEO_HEADING_ALIGNMENT . '">' . $settings['heading_articles_manager'] . '</span></div>'; } $showArticlesManager .= '<div class="grid_4 alpha"><span class="sitemap"><ul class="sitemap">'; $pageCount = count($articlesManagerLinksArray); for ($i = 0; $i < $pageCount; ++$i) $showArticlesManager .= '<li><a class="sitemap" href="' . tep_href_link(FILENAME_ARTICLE_INFO, 'articles_id=' . $articlesManagerLinksArray[$i]['link']) .'" title="' . $articlesManagerLinksArray[$i]['anchor_text'] . '">' . $articlesManagerLinksArray[$i]['text'] . '</a></li>'; $showArticlesManager .= '</ul></span></div>'; } /****************** DISPLAY CATEGORIES *********************/ $showCategories = ''; if (tep_not_null($settings['heading_categories'])) { $showCategories .= '<div class="grid_4 apha"><span class="sitemapHeading" align="' . SITEMAP_SEO_HEADING_ALIGNMENT . '">' . $settings['heading_categories'] . '</span></div>'; } $showCategories .= '<div class="grid_4 apha"><span class="sitemap">'; $class = (SITEMAP_SEO_DISPLAY_PRODUCTS_CATEGORIES == 'true') ? 'category_tree.php' : 'category_tree_no_products.php'; require DIR_WS_CLASSES . $class; $osC_CategoryTree = new osC_CategoryTree(); $showCategories .= $osC_CategoryTree->buildTree(); $showCategories .= '</span></div>'; /****************** DISPLAY INFOPAGES LINKS *********************/ $showInfoPages = ''; if (count($infoPagesArray) > 0) { if (tep_not_null($settings['heading_infopages'])) { $showInfoPages .= '<div class="grid_4 apha"><span class="sitemapHeading" align="' . SITEMAP_SEO_HEADING_ALIGNMENT . '">' . $settings['heading_infopages'] . '</span></div>'; } $showInfoPages .= '<div class="grid_4 apha"><span class="sitemap"><ul class="sitemap">'; $pageCount = count($infoPagesArray); for ($i = 0; $i < $pageCount; ++$i) $showInfoPages .= '<li><a class="sitemap" href="' . tep_href_link(FILENAME_INFORMATION, 'info_id='. $infoPagesArray[$i]['link']) .'" title="' . $infoPagesArray[$i]['anchor_text'] . '">' . $infoPagesArray[$i]['text'] . '</a></li>'; $showInfoPages .= '</ul></span></div>'; } /****************** DISPLAY MANUFACTURERS *********************/ $showManufacturers = ''; if (count($manufacturersArray) > 0) { if (tep_not_null($settings['heading_manufacturers'])) { $showManufacturers .= '<div class="grid_4 apha"><span class="sitemapHeading" align="' . SITEMAP_SEO_HEADING_ALIGNMENT . '">' . $settings['heading_manufacturers'] . '</span></div>'; } $showManufacturers .= '<div class="grid_4 apha"><span class="sitemap"><ul class="sitemap">'; $pageCount = count($manufacturersArray); for ($i = 0; $i < $pageCount; ++$i) { $showManufacturers .= '<li><a class="sitemap" href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturersArray[$i]['link']) .'" title="' . $manufacturersArray[$i]['anchor_text'] . '">' . $manufacturersArray[$i]['text'] . '</a></li>'; $cnt = count($manufacturersArray[$i]['productArray']); if ($cnt > 0) { $showManufacturers .= '<ul>'; for ($p = 0; $p < $cnt; ++$p) { $pA = $manufacturersArray[$i]['productArray'][$p]; //makes it more readable $showManufacturers .= '<li><a class="sitemapProducts" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $pA['link']) .'" title="' . $pA['anchor_text'] . '">' . $pA['text'] . '</a></li>'; } $showManufacturers .= '</ul>'; } } $showManufacturers .= '</ul></span></div>'; } /****************** DISPLAY PAGEMANAGER LINKS *********************/ $showPageManager = ''; if (count($pageManagerLinksArray) > 0) { if (tep_not_null($settings['heading_page_manager'])) { $showPageManager .= '<div class="grid_4 apha"><span class="sitemapHeading" align="' . SITEMAP_SEO_HEADING_ALIGNMENT . '">' . $settings['heading_page_manager'] . '</span></div>'; } $showPageManager .= '<div class="grid_4 apha"><span class="sitemap"><ul class="sitemap">'; $pageCount = count($pageManagerLinksArray); for ($i = 0; $i < $pageCount; ++$i) $showPageManager .= '<li><a class="sitemap" href="' . tep_href_link(FILENAME_PAGES, 'page=' . $pageManagerLinksArray[$i]['link']) .'" title="' . $pageManagerLinksArray[$i]['anchor_text'] . '">' . $pageManagerLinksArray[$i]['text'] . '</a></li>'; $showPageManager .= '</ul></span></div>'; } /****************** DISPLAY STANDARD INFOBOXES LINKS *********************/ $showInfoBoxes = ''; if (count($boxDataArray) > 0) { if (tep_not_null($settings['heading_standard_boxes'])) { $showInfoBoxes .= '<div class="grid_4 apha"><span class="sitemapHeading" align="' . SITEMAP_SEO_HEADING_ALIGNMENT . '">' . $settings['heading_standard_boxes'] . '</span></div>'; } $showInfoBoxes .= '<div class="grid_4 apha"><span class="sitemap"><ul class="sitemap">'; $showInfoBoxes .= '<li>'.$boxDataArray[0]['heading'].'</li><ul>'; $pageCount = count($boxDataArray); for ($i = 0; $i < $pageCount; ++$i) $showInfoBoxes .= '<li><a class="sitemap" href="' . tep_href_link($boxDataArray[$i]['link']) .'" title="' . $boxDataArray[$i]['anchor_text'] . '">' . $boxDataArray[$i]['text'] . '</a></li>'; $showInfoBoxes .= '</ul></ul></span></div>'; } /****************** DISPLAY STANDARD PAGES *********************/ $showPages = ''; if (count($pagesArray) > 0) { if (tep_not_null($settings['heading_standard_pages'])) { $showPages .= '<div class="grid_4 apha"><span class="sitemapHeading" align="' . SITEMAP_SEO_HEADING_ALIGNMENT . '">' . $settings['heading_standard_pages'] . '</span></div>'; } $showPages .= '<div class="grid_4 apha"><span class="sitemap"><ul class="sitemap">'; $pageCount = count($pagesArray); if ($pageCount > 0) for ($b = 0; $b < $pageCount; ++$B) $showPages .= '<li><a class="sitemap" title="'. $pagesArray[$b]['anchor_text'] .'" href="' . tep_href_link($pagesArray[$b]['link']) . '">' . $pagesArray[$b]['text'] . '</a></li>'; $showPages .= '</ul></span></div>'; } /****************** BUILT THE DISPLAY *********************/ $leftColDisplay = array(); $rightColDisplay = array(); $sortOrderArray = array(array('placement' => SITEMAP_SEO_MODULE_PLACEMENT_ARTICLES_MANAGER, 'sortkey' => SITEMAP_SEO_SORTORDER_ARTICLES_MANAGER, 'module' => $showArticlesManager), array('placement' => SITEMAP_SEO_MODULE_PLACEMENT_CATEGORIES, 'sortkey' => SITEMAP_SEO_SORTORDER_CATEGORIES, 'module' => $showCategories), array('placement' => SITEMAP_SEO_MODULE_PLACEMENT_INFOPAGES, 'sortkey' => SITEMAP_SEO_SORTORDER_INFOPAGES, 'module' => $showInfoPages), array('placement' => SITEMAP_SEO_MODULE_PLACEMENT_MANUFACTURERS, 'sortkey' => SITEMAP_SEO_SORTORDER_MANUFACTURERS, 'module' => $showManufacturers), array('placement' => SITEMAP_SEO_MODULE_PLACEMENT_PAGE_MANAGER, 'sortkey' => SITEMAP_SEO_SORTORDER_PAGE_MANAGER, 'module' => $showPageManager), array('placement' => SITEMAP_SEO_MODULE_PLACEMENT_STANDARD_BOXES, 'sortkey' => SITEMAP_SEO_SORTORDER_STANDARD_BOXES, 'module' => $showInfoBoxes), array('placement' => SITEMAP_SEO_MODULE_PLACEMENT_STANDARD_PAGES, 'sortkey' => SITEMAP_SEO_SORTORDER_STANDARD_PAGES, 'module' => $showPages)); foreach($sortOrderArray as $key) { if (tep_not_null($key['module'])) { if ($key['placement'] == 'left') $leftColDisplay[] = $key; else $rightColDisplay[] = $key; } } usort($leftColDisplay, "SortOnKeys"); usort($rightColDisplay, "SortOnKeys"); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SITEMAP_SEO)); echo $doctype; ?> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <?php echo $stylesheet; ?> <?php require(DIR_WS_INCLUDES . 'template-top.php'); ?> <div class="grid_8 alpha"> <div class="grid_4 alpha"><h1><?php echo HEADING_TITLE; ?></h1></div> <div class="grid_4 alpha"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT,'','stock-image'); ?></div><p> </div> <div class="clear"></div> <div class="grid_8 alpha"> <div class="grid_4 alpha"> <!-- DISPALY THE LEFT COLUMN --> <?php for ($i = 0; $i < count($leftColDisplay); ++$i) echo $leftColDisplay[$i]['module']; ?> </div> <div class="grid_4 alpha"> <!-- DISPALY THE RIGHT COLUMN --> <?php for ($i = 0; $i < count($rightColDisplay); ++$i) echo $rightColDisplay[$i]['module']; ?> </div> </div> <div class="clear spacer-tall"></div> <div class="grid_8 alpha"> <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?> </div> <!--close grid_8--> <div class="clear spacer-tall"></div> <?php require(DIR_WS_INCLUDES . 'template-bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> includes/modules/sitemap_category.php <?php /* $Id: sitemap_seo.php,v 1.0 2008/12/29 written by Jack_mcs at www.osocmmerce-solution.com osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2008 osocmmerce-solution.com Portions Copyright 2009 oscommerce-solution.com Released under the GNU General Public License */ require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SITEMAP_SEO); $registeredOnly = tep_session_is_registered('customer_id') ? 1 : 0; $settings_query = tep_db_query("select * from " . TABLE_SITEMAP_SEO_SETTINGS . " where language_id = '" . (int)$languages_id . "' LIMIT 1"); $settings = tep_db_fetch_array($settings_query); if (basename($_SERVER['PHP_SELF']) == FILENAME_PRODUCT_INFO) $cpPath = tep_get_product_path($_GET['products_id']); else $cpPath = $cPath; if (strpos($cpPath, "_") !== FALSE) { $parts = explode("_", $cpPath); $cID = $parts[0]; } else $cID = $cpPath; $catname_query = tep_db_query("select categories_name as cname from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cID . "' and language_id = '" . (int)$languages_id . "' limit 1"); $catname = tep_db_fetch_array($catname_query); $showCategories = ''; $showCategories .= '<div class="grid_4 alpha"><span class="sitemap">'; $class = (SITEMAP_SEO_DISPLAY_PRODUCTS_CATEGORIES == 'true') ? 'category_tree.php' : 'category_tree_no_products.php'; require DIR_WS_CLASSES . $class; $osC_CategoryTree = new osC_CategoryTree($cID); $showCategories .= $osC_CategoryTree->buildTree(); $showCategories .= '</span></div>'; ?> <div class="clear"></div> <span class="sitemap_indvidual"><?php echo $catname['cname']; ?></span> </div> <?php echo $showCategories; ?> includes/modules/sitemap_products.php <?php /* $Id: sitemap_seo.php,v 1.0 2008/12/29 written by Jack_mcs at www.osocmmerce-solution.com osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2008 osocmmerce-solution.com Portions Copyright 2009 oscommerce-solution.com Released under the GNU General Public License */ require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SITEMAP_SEO); $pPath = tep_get_product_path($_GET['products_id']); if (strpos($pPath, "_") !== FALSE) { $parts = explode("_", $pPath); $cID = $parts[count($parts) - 1]; } else $cID = $pPath; $category_query = tep_db_query("select c.categories_id, cd.categories_name from " . TABLE_CATEGORIES . " c inner join " . TABLE_CATEGORIES_DESCRIPTION . " cd on c.categories_id = cd.categories_id where c.categories_id = '" . (int)$cID . "' and cd.language_id = '" . (int)$languages_id . "' LIMIT 1"); $category = tep_db_fetch_array($category_query); $products_query = tep_db_query("select p.products_id, pd.products_name from " . TABLE_PRODUCTS . " p inner join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = p2c.products_id and p.products_id != '" . $_GET['products_id'] . "' and p2c.categories_id = '" . (int)$cID . "' and pd.language_id = '" . (int)$languages_id . "'"); if (tep_db_num_rows($products_query)) { $catLink = '<a class="sitemap_indvidual_hdg" href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $category['categories_id']) . '">' . $category['categories_name'] . '</a>'; echo '<div class="grid_4 alpha"> <span> <div class="grid_4 alpha">'; echo '<div class="grid_4 alpha"><span class="sitemap_indvidual_hdg">'.sprintf(TEXT_CATEGORY_NAME, $catLink) . '</span></div>'; while ($prods = tep_db_fetch_array($products_query)) { echo '<div class="grid_4 alpha"><div class="clear spacer-tall"></div><span class="sitemap_indvidual"><a class="sitemap_indvidual" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $prods['products_id']) . '">' . $prods['products_name'] . '</a></span></div>'; } echo '</div></span></div>'; } ?> I'm sure there are some erroneous div's in there somewhere, so if anyone can simplify :) but it works thus far
  3. I'm looking to convert my existing site with this conversion but have so many mods installed it's a daunting task. It's mention in the install instructions that the conversion has been tested with a number of mods, cheeky I know, but do you have any instructions covering the conversion of these mods to fit with this? Also, I've been trying to convert SEO Sitemap to fit with this without much success. Anyone else tried this one yet?
  4. Hi there, I want to remove column_right and although I can remove the column_right references in template_bottom, I'm struggling with the 960.css to enlarge the centre grid to fill the space column_right leaves. If you would be able to point me in the right direction it would be appreciated. Thanks in advance.
  5. I'm etting the following error showing up on on error reporting, has anyone come across this and know how to fix? Error Type: [E_NOTICE] Undefined variable: config_values On line 26 File includes/classes/oscthumb.php
  6. I get this same error showing up on Kiss error reporting, I'd be interested to know if anyone gas come across a solution
  7. I'm more confused now, I currently use Ultimate SEO v2.2d. The product urls look like this: .....shop/accessories-bronze-fabric-cord-p-70.html but the xml file links look like this: ......shop/product_info.php?products_id=70 So when google checks the links it's hitting a redirect and doesn't seem to like it.
  8. Apologies if this has already been covered in the thread, I can't see for looking sometimes...I'm using Google XML Sitemap SEO and Ultimate SEO URL's and the XML files are generating standard links for the product_info.php files i.e. something like: ...shop/product_info.php?products_id=23 The problem is that google is ignoring these links saying they redirect to other pages, presumably because Ultimate SEO URLs is redirecting the link when it arives at the site. Is there any way I can ensure that the XML file links are the same as those produced by USU? Thanks in advance
  9. Thanks Jack. One last problem I'm having is that I cannot get Box Control to work fully. Group Control section works fine, but anytime I select a box file from the 'Individual Control' or 'Additional Links' sections I get a 500 error. Looking at the underlying error logs it says Do you have any ideas why this might be?
  10. Jack, I know early in this thread you referred someone to find the supported add ons in the contributions area, but would it be possible for you to provide the links to the exact add ons Sitemap SEO supports please. I ask because I have Infopages installed but when I switch this on in Sitemap Controls I get the following error on my site: I'm assuming that this is either because I have a different mod installed than the one Sitemap SEO supports or the table name has changed. I have this infopages add on installed Infopages_v0.1
  11. Hi there, I'm hoping for a little help with an issue I currently have. I have SEO urls installed have also recently added Sam's Remove & Prevent duplicate content with the canonical tag mod, now having both installed and with SEO urls switched on I seem to get a redirect loop i.e. when I select a product or product category in the shop it always redirects back to index.php. Also if I select a known product from my bestsellers box I get a message that says the product doesn't exist. Funny thing is, if I switch SEO urls off the problem goes away but I'm then back to standard urls. The odder thing is if I remove Sams mod, the problem still exists. :( Has anyone come across a similar issue or have any idea what the issue might be? Any help would be greatly appreciated.
  12. RewriteCond %{THE_REQUEST} !^POST RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.php(.*)\ HTTP/ [NC] RewriteRule ^index\.php(.*)$ http:\/\/www.my-domain.com/ [R=301,L] Should be $1 in there not £0.68...don't know where that came from!
  13. Hi Sam, I'm hoping you might be able to help with a problem I have after installing this mod. I have header_tags seo installed so added this code in the includes/header_tags.php file CanonicalLink( $xhtml = false, 'SSL' ); and the code in the includes/functions/html-output.php. Lastly I added the the following in my .htacces file RewriteCond %{THE_REQUEST} !^POST RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.php(.*)\ HTTP/ [NC] RewriteRule ^index\.php(.*)$ http:\/\/www.my-domain.com/$1 [R=301,L] for some reason since the install every category redirects me back to my home page (index.php) I replaced all of the files from the backups I took but for some reason I still have the problem even after de-caching my laptops. I'm seriously confused, if you have any thoughts on what's occurring it would be much appreciated.
  14. Hi Sam, I need to allow the clients to pass a + (plus) sign through into their account details and I'm sure I simply need to add it in this code somewhere return preg_replace("/[^\p{L}\p{M}\w\r@ :{}_.-]/i", "", urldecode($vars)); but I can't get it to accept the addition no matter where I place it. If you could help it would be appreciated
  15. Apologies if this has been answered already...can't see for looking...in your instructions you mention that Is that an instruction for this mod that we should do when manually updating our files or are you just stating that you've done this in your files? Thus far the only issue I seem to be getting is that a customer whos created their own password (alpha numeric only) seems to be having their log in attempt rejected and are forced to reset the password. Checking install again, but has anyone come across this?
×
×
  • Create New...