View Single Post
  #44  
Old 09-19-2008, 12:36 AM
 
tomcoleman tomcoleman is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 77
 

Default Re: [MODULE] XC SEO v1.4.0 Released for X-Cart 4.0 and 4.1

gb2world, how did you hand patch.

I'm not a newbie but i could work out where the code is meant to go.

For example on xcseo_41.patch where do i put the code from xcseo_41.patch ( code shown below for that section) where do i copy paste into https.php

<CODE>
Index: https.php
================================================== =================
--- https.php (revision 259)
+++ https.php (working copy)
@@ -108,10 +108,17 @@
$_location["path"] = func_normalize_path($_location["path"],'/');
$current_script = substr(func_normalize_path($REQUEST_URI,'/'), strlen($_location["path"]));

+################################################# ###########
+# X-CART-SEO Mod :: http://code.google.com/p/x-cart-seo/
+################################################# ###########
+$original_query = parse_url($current_script);
+$original_query = $original_query['query'] ? $original_query['query'] : '';
+# END SEO
+
#
# Generate additional PHPSESSID var
#
-$additional_query = ($QUERY_STRING?"&":"?").(strstr($QUERY_STRING,$XCA RT_SESSION_NAME) ? "" : $XCART_SESSION_NAME."=".$XCARTSESSID);
+$additional_query = ($original_query?"&":"?").(strstr($QUERY_STRING,$X CART_SESSION_NAME) ? "" : $XCART_SESSION_NAME."=".$XCARTSESSID); ## XC SEO
if (!preg_match("/(?:^|&)sl=/", $additional_query) && $xcart_http_host != $xcart_https_host)
$additional_query .= "&sl=".$store_language."&is_https_redirect=Y";
</CODE>
Reply With Quote