Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

abbaso

Archived
  • Posts

    19
  • Joined

  • Last visited

Profile Information

  • Real Name
    Abbas

abbaso's Achievements

  1. I am also having problems with my link url. example. http://www.mysite.com/product_info?product_id=222 but it should show like this http://www.mysite.com/product_info/product_id/222 which means i should set true to safe urls in admin, but when i do that links on website stop working and every page it says no product found. can some one please help. I am stuck here.
  2. Hey guys I am using the same version 1.5 but the image errors are still comming <g:image_link>http%3A%2F%2Fwww.khunbetta.com%2Fimages%2FS4010087.jpg</g:image_link> What to please help as i am not too good in php
  3. here is my link http://www.khunbetta.com/dynamic_sitemap.php <?php /* $Id: dynamic_sitemap.php,v 1.0 2005/06/29 written by Jack_mcs at www.osocmmerce-solution.com osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require DIR_WS_FUNCTIONS . 'dynamic_sitemap.php'; $path = DIR_WS_BOXES; $pathFileName = DIR_WS_INCLUDES . 'filenames.php'; $pathLanguage = DIR_WS_LANGUAGES . $language . '.php'; $boxText = array(); /********************* Find the infoboxes to add ***********************/ if ($handle = opendir($path)) { $found = false; $ctr = 0; while (false !== ($file = readdir($handle))) { if (substr($file, -4, 4) !== ".php") continue; else if (strpos($file, 'best_sellers') !== FALSE || //ignore these since strpos($file, 'affiliate') !== FALSE || strpos($file, 'card') !== FALSE || strpos($file, 'loginbox') !== FALSE || strpos($file, 'resources') !== FALSE || strpos($file, 'categories') !== FALSE || //they don't use a strpos($file, 'currencies') !== FALSE || //standard format strpos($file, 'languages') !== FALSE || strpos($file, 'manufacturer_info') !== FALSE || strpos($file, 'shopping_cart') !== FALSE || strpos($file, 'manufacturer') !== FALSE || strpos($file, 'order_history') !== FALSE || strpos($file, 'product_notifications') !== FALSE || strpos($file, 'reviews') !== FALSE || strpos($file, 'search') !== FALSE || strpos($file, 'shopping_cart') !== FALSE || strpos($file, 'specials') !== FALSE || strpos($file, 'tell_a_friend') !== FALSE || strpos($file, 'whats_new') !== FALSE ) continue; $file = $path . '/' . $file; $fp = file($file); for ($idx = 0; $idx < count($fp); ++$idx) { if ($posStart = strpos($fp[$idx], "BOX_HEADING") !== FALSE) { $parts = explode(" ", $fp[$idx]); for ($i = 0; $i < count($parts); ++$i) { if (strpos($parts[$i], "BOX_HEADING") === FALSE) continue; $parts = explode(")", $parts[$i]); //$parts has full box heading text $name = explode("_", $parts[0]); //ignore the BOX_HEADING part for ($x = 3; $x < count($name); ++$x) //name may be more than one word { if (tep_not_null($name[$x])) $name[2] .= ' ' . $name[$x]; } $name[2] = strtolower($name[2]); $name[2] = ucfirst($name[2]); $boxHeading[$ctr]['heading'][$ctr] = $name[2]; } } else if ($posStart = strpos($fp[$idx], "FILENAME") !== FALSE) { $str = str_replace("'<a href=\"' . tep_href_link(", "", $fp[$idx]); $str = str_replace("\$info_box_contents[] = array('text' => ", "", $str); $parts = explode(")", $str); $parts[0] = trim($parts[0]); $boxParts = explode(".", $parts[1]); $boxParts[2] = trim($boxParts[2]); if (tep_not_null($boxParts[2])) { $boxHeading[$ctr]['filename'][] = getFileName($pathFileName, $parts[0]); $boxHeading[$ctr]['boxtext'][] = getBoxText($pathLanguage, $boxParts[2]); } else { if (tep_not_null($box_heading)) { echo 'Invalid code for this module found in the following infobox: '.$boxHeading[$ctr]['heading'][$ctr].'<br>'; array_pop($boxHeading); $ctr--; } } } } $ctr++; } closedir($handle); } /********************* Find the pages to add ***********************/ $ctr = 0; ($dir = opendir('.')) || die("Failed to open dir"); $files = array(); while(false !== ($file = readdir($dir))) { if(! is_dir($file) && substr($file, -4, 4) === ".php") //only look at php files { $engFile = DIR_WS_LANGUAGES . $language . '/' . $file; if (file_exists($engFile) && IsViewable($file)) { if (strpos($file, "product_info.php") !== FALSE || strpos($file, "create_account_success.php") !== FALSE || strpos($file, "links_submit_success.php") !== FALSE || strpos($file, "checkout_process.php") !== FALSE ) continue; $fp = file($engFile); for ($idx = 0; $idx < count($fp); ++$idx) { if (strpos($fp[$idx], "define('HEADING_TITLE") !== FALSE) { $fp[$idx] = stripslashes($fp[$idx]); $p_start = strpos($fp[$idx], ","); $p_start = strpos($fp[$idx], "'", $p_start); $p_stop = strpos($fp[$idx], "'", $p_start + 2); $files['name'][] = ucfirst(substr($fp[$idx], $p_start + 1, $p_stop - $p_start - 1)); $files['path'][] = $file; break; } } } } } ?>
  4. I have put the (What) word the mouse over it and got shopping_cart.php so I pu tit in the exclude i think is in catalog/include/module/dynamic_sitemap.php strpos($file, 'shopping_cart') !== FALSE || but it doesnt work what should i do now ??? please help
  5. well some are repeating them selves like "My Account Information My Account Information" some words like " What " and then words like " I " " %s Reviews " and the left colon is also long can you help me with this ??
  6. Hi jack, I am no php guru and i need your help http://www.khunbetta.com/dynamic_sitemap.php I think it doesnt look right I have tried every thing but i am not able to fix it Can you give me some tips please thank you
×
×
  • Create New...