View Single Post
  #105  
Old 11-06-2006, 05:46 AM
  ShishaPipeUK's Avatar 
ShishaPipeUK ShishaPipeUK is offline
 

Senior Member
  
Join Date: Jul 2005
Location: London, England.
Posts: 118
 

Default Re: XC SEO v1.1.0 Released

Quote:
Originally Posted by ezi designs
Hi Guys

Thanks for all your help and i am getting there, well im there all bar one one error

Parse error: syntax error, unexpected T_IF in /home/ezidesig/public_html/storedzine/include/get_language.php on line 206

Here is what the code looks like in that folder;

Code:
if ( ($current_area == "C" || $current_area == "B") && !empty($HTTP_GET_VARS["sl"]) && !defined('IS_ROBOT') && ############################################################ # X-CART-SEO Mod :: http://code.google.com/p/x-cart-seo/ ############################################################ if (!empty($active_modules["XC_SEO"])) { func_header_location($l_redirect); }else{ if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) { func_header_location($l_redirect); } } # End SEO {

Ezi Designs, you will get this error as it is wrong.

Also the install 4.1.3 instructions are wrong a little bit.

The instructions say:

IV. includes/get_language.php
===================
OPTIONAL:
The change to "get_language.php" is to avoid issues with
sites that have the language selector enabled.
NOTE: This change is for X-Cart 4.1.x series. Owners of 4.0.x, please
verify if this alteration is needed.
-----------
Find Code:
-----------
Code:
if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) { func_header_location($l_redirect); }
------------
Replace With
------------
Code:
############################################################ # X-CART-SEO Mod :: http://code.google.com/p/x-cart-seo/ ############################################################ if (!empty($active_modules["XC_SEO"])) { func_header_location($l_redirect); }else{ if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) { func_header_location($l_redirect); } } # End SEO

Well my virgin 4.1.3 file has at line 199

Code:
if ( ($current_area == "C" || $current_area == "B") && !empty($HTTP_GET_VARS["sl"]) && !defined('IS_ROBOT') && !preg_match('/\.html?($|\?)|\/$/s', $l_redirect) ) { func_header_location($l_redirect); }

The instructions say find code:

Code:
if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) { func_header_location($l_redirect); }

Which does not exist in my x-cart 4.1.3
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24
PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART

Shop carts at
http://www.nightscene.co.uk/shop/home.php
http://www.theshisha.net/shopcart/home.php
http://www.system-maintenance.com/maint/home.php
http://www.tabac4u.com
Reply With Quote