Go Back   X-Cart SEO Forum > eCommerce and X-Cart > X-Cart Mods

X-Cart Mods Discuss and troubleshoot x-cart modifications provided by X-Cart Mods, X-Cart Addons - WebsiteCM.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old June 4th, 2009, 09:06 AM
Junior Member
 
Join Date: Jun 2009
Location: Calgary, AB
Posts: 5
Default Move from X-Cart 4.1.9 to 4.1.12 with CDSEO

I am running a version of CDSEO from prior to the release of CDSEO Pro. I'm currently upgrading my cart from X-Cart Gold 4.1.9 to 4.1.12.

In merging the auth.php file, I'm having a bit of trouble with one spot of CDSEO code as I think there has been a bit of a change in the original X-Cart code.

Here is the 4.1.9 snippet (CDSEO code already in) from the auth.php file:

Code:
if ($js_enabled == "Y") {
	$qry_string = ereg_replace("(&*)js=y", "", $QUERY_STRING);
     if ($cat != "" || $productid != "") {
	$js_update_link = $PHP_SELF."?".($qry_string?"$qry_string&":"")."js=n";
     } else {
          // WebsiteCM - CDSEO Compatible
          $wcm_qs = "?" . $QUERY_STRING;
          $wcm_url = str_replace($wcm_qs,"",$_SERVER['REQUEST_URI']);
          $js_update_link = $wcm_url."?".($qry_string?"$qry_string&":"")."js=n";
     }
}
else {
	$qry_string = ereg_replace("(&*)js=n", "", $QUERY_STRING);
     if ($cat != "" || $productid != "") {
	$js_update_link = $PHP_SELF."?".($qry_string?"$qry_string&":"")."js=y";
     } else {
          // WebsiteCM - CDSEO Compatible
          $wcm_qs = "?" . $QUERY_STRING;
          $wcm_url = str_replace($wcm_qs,"",$_SERVER['REQUEST_URI']);
          $js_update_link = $wcm_url."?".($qry_string?"$qry_string&":"")."js=y";
     }
}
Here is the snippet of stock code from the 4.1.12 auth.php file:

Code:
$qry_string = func_qs_remove($QUERY_STRING, "js");
if ($qry_string)
	$qry_string .= "&";

$js_update_link = basename($PHP_SELF) . "?" . $qry_string . "js=" . ($js_enabled == "Y" ? "n" : "y");
unset($qry_string);
Can anyone give me some guidance or post the snippet from their modified 4.1.12 auth.php file?

Thanks,
Jason
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 06:22 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.