Jump to content

girolimoni

Members
  • Content count

    72
  • Joined

  • Last visited

  1. girolimoni

    Facebook Connect Support Thread

    hi thanks, for your post, just tried it, but all the page gets messed up hehe :). any other solution? or does one know know what to alter to upate to php 5? Greetings
  2. girolimoni

    Header Tags SEO

    i see, we use that tag only on the product_info page. here how we addeed it. maybe others can use it too. we saw, that having the produc image in the respective facebook page helps a lot. I'm sure we added it not nicely so if someone knows a nicer way would be very appreciated. <head> <?php /*** Begin Header Tags SEO ***/ if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php'); } else { ?> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <?php } /*** End Header Tags SEO ***/ ?> <?php $product_info_query = tep_db_query("select p.products_image from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_info = tep_db_fetch_array($product_info_query); ?> <meta property="og:image" content="<?php print 'http://' . $_SERVER['SERVER_NAME'] . DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES . $product_info['products_image']; ?>" /> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head>
  3. girolimoni

    Header Tags SEO

    Hello :) we just found out that the meta tag og:image is missing in this great contribution. We use it for the i like button for facebook in order to have the right image. Will it implemented in future? Greetings
  4. Hello to all :) We're using the PWA addon and noticed, that the customers got in their oder confirmation email the link to their order. If you ordered as guest there is no sense to get this link. so we managed to avoid to insert the link in checkout_process.php. Unfortunately we didn't manage it with the paypal ipn contribution in the ipn.php file. the following code doesn't work there :(. Any help? Thanks and greetings if ($order->customer['is_dummy_account']){ $email_order .= EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; } else { $email_order .= EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $_POST['invoice'], 'SSL', false) . EMAIL_TEXT_LINK_LANGUAGE . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; }
  5. Great, working now. Really appreciated your help. I know, we really should update, but honetly no idea where to begin :(. One little addtional question: we have a 4 languages store so i modified this string in order to keep search resulst o.k. Do you think its risky for security resons? those letters are really often used. Greetings $cleansed = preg_replace( "/[^\s{}a-z0-9äüöéèê_\.\-]/i", "", urldecode( $get ) );
  6. you mean about the compatiblity? yes, but here the // some code to solve compatibility issues require(DIR_WS_FUNCTIONS . 'compatibility.php'); is after the new security pro code in aplication_top. However i just checked my compatibility.php and it doens't have your code in it. Can you please advise where to add it? Thanks in advance. here my compatibility.php: <?php /* $Id: compatibility.php,v 1.19 2003/04/09 16:12:54 project3000 Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License Modified by Marco Canini, <m.canini@libero.it> - Fixed a bug with arrays in $HTTP_xxx_VARS */ //// // Recursively handle magic_quotes_gpc turned off. // This is due to the possibility of have an array in // $HTTP_xxx_VARS // Ie, products attributes function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; while (list($key, $value) = each($ar)) { if (is_array($value)) { do_magic_quotes_gpc($value); } else { $ar[$key] = addslashes($value); } } } // $HTTP_xxx_VARS are always set on php4 if (!is_array($HTTP_GET_VARS)) $HTTP_GET_VARS = array(); if (!is_array($HTTP_POST_VARS)) $HTTP_POST_VARS = array(); if (!is_array($HTTP_COOKIE_VARS)) $HTTP_COOKIE_VARS = array(); // handle magic_quotes_gpc turned off. if (!get_magic_quotes_gpc()) { do_magic_quotes_gpc($HTTP_GET_VARS); do_magic_quotes_gpc($HTTP_POST_VARS); do_magic_quotes_gpc($HTTP_COOKIE_VARS); } if (!function_exists('array_splice')) { function array_splice(&$array, $maximum) { if (sizeof($array) >= $maximum) { for ($i=0; $i<$maximum; $i++) { $new_array[$i] = $array[$i]; } $array = $new_array; } } } if (!function_exists('in_array')) { function in_array($lookup_value, $lookup_array) { reset($lookup_array); while (list($key, $value) = each($lookup_array)) { if ($value == $lookup_value) return true; } return false; } } if (!function_exists('array_reverse')) { function array_reverse($array) { for ($i=0, $n=sizeof($array); $i<$n; $i++) $array_reversed[$i] = $array[($n-$i-1)]; return $array_reversed; } } if (!function_exists('constant')) { function constant($constant) { eval("\$temp=$constant;"); return $temp; } } if (!function_exists('is_null')) { function is_null($value) { if (is_array($value)) { if (sizeof($value) > 0) { return false; } else { return true; } } else { if (($value != '') && ($value != 'NULL') && (strlen(trim($value)) > 0)) { return false; } else { return true; } } } } if (!function_exists('array_merge')) { function array_merge($array1, $array2, $array3 = '') { if (empty($array3) && !is_array($array3)) $array3 = array(); while (list($key, $val) = each($array1)) $array_merged[$key] = $val; while (list($key, $val) = each($array2)) $array_merged[$key] = $val; if (sizeof($array3) > 0) while (list($key, $val) = each($array3)) $array_merged[$key] = $val; return (array) $array_merged; } } if (!function_exists('is_numeric')) { function is_numeric($param) { return ereg('^[0-9]{1,50}.?[0-9]{0,50}$', $param); } } if (!function_exists('array_slice')) { function array_slice($array, $offset, $length = 0) { if ($offset < 0 ) { $offset = sizeof($array) + $offset; } $length = ((!$length) ? sizeof($array) : (($length < 0) ? sizeof($array) - $length : $length + $offset)); for ($i = $offset; $i<$length; $i++) { $tmp[] = $array[$i]; } return $tmp; } } if (!function_exists('array_map')) { function array_map($callback, $array) { if (is_array($array)) { $_new_array = array(); reset($array); while (list($key, $value) = each($array)) { $_new_array[$key] = array_map($callback, $array[$key]); } return $_new_array; } else { return $callback($array); } } } if (!function_exists('str_repeat')) { function str_repeat($string, $number) { $repeat = ''; for ($i=0; $i<$number; $i++) { $repeat .= $string; } return $repeat; } } if (!function_exists('checkdnsrr')) { function checkdnsrr($host, $type) { if(tep_not_null($host) && tep_not_null($type)) { @exec("nslookup -type=$type $host", $output); while(list($k, $line) = each($output)) { if(eregi("^$host", $line)) { return true; } } } return false; } } ?>
  7. I just updated, meaning installed your lated secuirity pro. but although spent now 2 hours checking why, it'w not working. here what i did: uploaded the new files in the modules folder and inserted the code above the ssl thing (please check code provided below). Then i deleted in application_top the old security pro entry and finally deleted the database entries of the confiration. well its not working. any sugesstions or what shall i provide you with in order to help us? Greetings // define the project version define('PROJECT_VERSION', 'osCommerce 2.2-MS2'); // set the type of request (secure or not) $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; // set php_self in the local scope if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; // Security Pro by FWR Media include_once DIR_WS_MODULES . 'fwr_media_security_pro.php'; $security_pro = new Fwr_Media_Security_Pro; // If you need to exclude a file from cleansing then you can add it like below //$security_pro->addExclusion( 'some_file.php' ); $security_pro->cleanse( $PHP_SELF ); // End - Security Pro by FWR Media if ($request_type == 'NONSSL'){ define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG); } else { define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG); }
  8. girolimoni

    Facebook Connect Support Thread

    Aaaaa shit, my server is running with php4 :( damn. maybe there is a way around... let's hope at least :)
  9. girolimoni

    Facebook Connect Support Thread

    got the same problem here :( please help :)
  10. girolimoni

    Header Tags SEO

    Sorry, just realized that its actually working in the categories but not in the products_new.php page :) Greetings
  11. girolimoni

    Header Tags SEO

    Hello Jack, Thanks for your great contribution. I was just wondering how to filter the paramter view_all in the canonical tag. I tried to add it here but it doesn't work :(. Many thanks. Greetings // Canonical URL add-on if (tep_not_null($cPath) || (isset($_GET['manufacturers_id']) && $category_depth == 'top')) { $args = tep_get_all_get_params(array('action','currency', tep_session_name(),'sort','page','view_all')); $canonical_url = StripSID(tep_href_link(FILENAME_DEFAULT, $args, 'NONSSL', false) ); } WriteCacheHeaderTags($header_tags_array, basename($_SERVER['PHP_SELF']), $language, $id);
  12. girolimoni

    OSC-Affiliate

    Hello, We have just installed this great contribution. One thing i remarked is, that the pop up window affiliate_validproducts php shows all products. Is there a way that it only shows products with active status ? Greetings and thanks in advance :) ooops, solved my self: in the file affiliate_validproducts php find in line 38 $result = mysql_query("SELECT * FROM products, products_description WHERE products.products_id = products_description.products_id and products_description.language_id = '" . $languages_id . "' ORDER BY products_description.products_name"); and change into: $result = mysql_query("SELECT * FROM products, products_description WHERE products.products_id = products_description.products_id and products_status = '1' and products_description.language_id = '" . $languages_id . "' ORDER BY products_description.products_name");
  13. hi didn't work for me. no idea why. chinese guest got still prices 0. so as we have only 2 currencies we added this and its working. :). what do you think about this solution? if ($currency_id != 'CHF') { $currency='EUR'; } else { $currency='CHF'; } $_SESSION['locationset']=$location; $_SESSION['currency']=$currency;
  14. Hello, Problem is, if you don't have USA in your country list its 0. The value default currency_id doesn't seem to work: if not defined in the database it doesn't apply the default currency. Any possibility to alter the code to add this function? Greetings
  15. girolimoni

    Header Tags SEO

    Hello thanks for the answer and sorry for the undetailed description of my problem. i was refering to the option in the box below the Default Tags - English with the title: Meta Tags. The box where you can enable/disable for example Google Language NOODP. I read while doing some searches on google that google doesn't really check the language. apparantely the defintion of the language is often errorous and so google selfdetects the language. We are just having troubles that google is indexing our main language while skipping the other langauges. Greetings
×