X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   XC SEO v1.1.0 Released (https://forum.x-cart.com/showthread.php?t=25297)

intel352 11-12-2007 02:35 PM

Re: XC SEO v1.1.0 Released
 
hey, check your inbox

zeta1600 11-19-2007 07:10 PM

Re: XC SEO v1.1.0 Released
 
I have this mod in products.tpl and i am suppose to add the following code. But, I think because I have XC SEO install it's not resolving. How should I rewrite this code? Or add something to htaccess?

<a href="manufacturers.php/?manufacturerid={$products[product].manufacturerid}">{$products[product].manufacturer}</a>

intel352 11-19-2007 07:12 PM

Re: XC SEO v1.1.0 Released
 
looks like the problem is a slash that you have in your code:
php/?

should be
php?

zeta1600 11-19-2007 07:28 PM

Re: XC SEO v1.1.0 Released
 
That was it exactly! Hey, thanks a lot for the mod!

intel352 11-24-2007 07:09 AM

Re: XC SEO v1.1.0 Released
 
Just a note, I noticed a notification about a user having difficulties with 4.1.9, but he appears to have removed his post. I just want to say, I just now downloaded 4.1.9 fresh, applied all XC SEO modifications without any difficulties, uploaded, installed 4.1.9, ran XC SEO installer, and it's working dandy with no problems.

So, it's been verified to work on 4.1.9, cheers

GTXPC 12-07-2007 02:09 AM

Re: XC SEO v1.1.0 Released
 
can I get help please, how do I install this on X-cart 4.0.16

My shop has to many custom programing but it will be nice to have this module working for 4.0.X

thank you for your Help

cbarnes 12-12-2007 12:51 PM

Re: XC SEO v1.1.0 Released
 
I believe I may have found a small bug with XC SEO v1.2.0

I was checking my client's site to be sure that the xHTML was valid and I was getting a bunch of these errors...

duplicate specification of attribute "title"

So, I dove into the code and there is a function that looks for the "title" attribute and if it is not found, it adds the title attribute to the a href tag.

However, it never finds title attributes that are already there.

So, I changed this function and It appears to be working for me...

In the file outputfilter.seo.php, I changed this...

PHP Code:

function _insert_href_title($found){
    if((
strpos(" title=",$found)===false)){
        
$found substr_replace($found,' title="'.str_replace($this->_name_delim,' ',$this->_cur_name).'">',-1);
    }
    return 
$found;



to this...

PHP Code:

function _insert_href_title($found){
    if((
eregi("title=",$found)===false)){
        
$found substr_replace($found,' title="'.str_replace($this->_name_delim,' ',$this->_cur_name).'">',-1);
    }
    return 
$found;



I hope this helps.

SpaceCadet 12-20-2007 01:25 PM

Re: [MODULE] XC SEO v1.2.0 Released
 
I installed XC SEO 1.2.0 onto my development site (X-Cart 4.1.8, WIndows XP, Apache 2.2.4, PHP 5.2.4) and ran into a problem.

The URLs look all search-engine-friendly like they should, but when I click on them, I get a 404 - Not found. It seems like the REWRITERULES are not being run (??)

Any pointers on where I can look to start to solve this problem??

Thanks.

bebekisses.com 12-20-2007 05:07 PM

Re: XC SEO v1.1.0 Released
 
you need to get the mod_rewrite rules setup in your apache installation.

it would probably save you a lot of headaches to do a small linux VM (128MB/etc) for dev. sooo much cleaner. APache + php on windows is such a PITA.

gkeraunen 12-28-2007 05:23 PM

Re: XC SEO v1.1.0 Released
 
This sounds really nice. Thank you for putting it together.

I installed this with no problems on 4.1.9. (After discovering the documentation!)

-Michael


All times are GMT -8. The time now is 10:40 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.