![]() |
free SEO mod - XC SEO -> needs testing & feedback
XC SEO Lite v 1.0.0 Released
Thread is available at the following url: XC SEO Lite Released Quote:
|
Patching X-Cart for the SEO mod:
open config.php: Find Code:
@include_once($xcart_dir."/config.local.php"); After, Add Code:
Open auth.php: Find Code:
include_once $xcart_dir."/config.php"; After, Add Code:
open smarty.php: Find Code:
$smarty->debug_tpl="file:debug_templates.tpl"; After, Add Code:
############################################################ Open skin1_original/meta.tpl: Find Code:
{assign var="_meta_keywords" value="$_meta_keywords`$config.SEO.meta_keywords`"} After, Add Code:
{if $is_robot and $lofi_mode} Froogle SEO mod - this modification is optional: open modules/Froogle/froogle.php: Find Code:
if ( !defined('XCART_SESSION_START') ) { header("Location: ../../"); die("Access denied"); } After, Add Code:
############################################################ Find Code:
# Define product category path After, Add Code:
$seo->forceProductsArr($product['productid'], $product['product'], end($catids)); Find Code:
$tmbn = $http_location."/image.php?productid=".$product['productid']; Replace With Code:
$tmbn = $seo->createProductUrl($product['productid'],$http_location); Find Code:
$post = $http_location.constant("DIR_CUSTOMER")."/product.php?productid=".$product['productid']."\t". Replace With Code:
$product_uri = $seo->createProductUrl($product['productid'],$http_location.constant("DIR_CUSTOMER")); Save and Close all files. ############################ IMPORTANT: if you already have a .htaccess file on your server, you need to (selectively) add in the changes, from the provided .htaccess file. Download the zip file linked in the first post, extract the contents to your harddrive, and upload: .htaccess -> xcart root seo.php -> xcart root include/class.xcart_seo.php -> include/ include/templater/plugins/outputfilter.seo.php -> include/templater/plugins/ Done |
ToDo:
|
Can you add to the "to do" list.
Intergrate with froogle feed generator. Its a must for any type of mod like this. I know the mod is generally for your client and i've got no right to ask but it would be cool |
sure, that was actually one of my intentions, but I had forgotten :o
thanks for reminding me ;-) (btw, this is an in-house project for my corporate employer, but any improvements that are suggested are welcome, because they will benefit us as much as you :-) ) I'll edit the post above with the ToDo. just a note, I've now fixed relative urls, and the mod is working VERY nicely in testing (also had to fix any FORM urls, since they are all relative as well). i'll post the updated files soon |
SEO MOD UPDATED - to version 0.2
Note: the .htaccess file that I use is now included in the zip archive. Do not upload blindly. If you already have a .htaccess file, you'll need to merge in my changes. |
Quote:
Just a note, old urls are directed to the new url location, so this mod wouldn't break .php links. So, you won't lose any froogle compatibility, per se. Anywho, I'm working on implementing Froogle-module urls right now :-) |
SEO MOD UPDATED - to version 0.3
EDIT: Once you install the SEO mod, you must Export the Froogle txt file for the SEO urls to be created in the export. The install instructions have been updated, please read! (2nd post) Cheers! |
I'm trying to apply this mod to default 4.1 install.
I'm getting there. The category urls are working, just redirecting is not working actually. I just get kicked back to home.php. Product urls are fubar, which is strange because the url system was not updated between 4.0.18 and 4.1 (To my knowledge). I'll see what I can make of it. |
keep in mind, the project is still not recommended for a live website, i found a bug the other day that requires a rewrite of some of the url-matching code.
i haven't tested on 4.1 yet, i'll have to test it to see what's going wrong |
I have to commend you on what you're doing. I think this is a great mod, though I haven't tried it yet. Good job! and I think the community is really going to appreciate this too!
Thanks |
thanks, I appreciate it ;-)
it'll be nice to get the code stable and tested. We're starting up a domain with this code soon and will submit it to google, to see how the shop will rank. It'll have the same products as a well-established shop that we have, running X-Cart 3.4, so that'll provide a decent benchmark. |
Please keep us posted how your new site ranks....
|
I also appreciate all your hard work, intel352! :D
I'm really looking forward to your mod and hope you succeed in getting the code stable and bug free. |
Thanks guys, I'll be sure to keep this thread updated with any and all progress regarding the mod and live-environment testing :-)
OKAY - time for a new release: SEO MOD UPDATED - to version 0.5
The install instructions have been updated, please read! (2nd post) Cheers! |
Quote:
I've just tried to install 4.1, it gets to step 9 and hangs. I can't test 4.1.0 if I can't install it, so I recommend you stick to 4.0.x when using this mod |
can you just clarify something for me before i start having a go with this mod.
Quote:
in the install instructions, does this section mean i can just turn it on and off from here so that if something goes wrong - one change will revert it back to normal? |
that's correct, that one setting will completely disable the mod :-)
|
What also might be handy is to add lynx browser to one of the recognised engines so we can see whats getting stripped out on the lo fi version.
or for those who don't use lynx http://www.delorie.com/web/lynxview.html |
Quote:
The mod depends on X-Cart's definition of what a bot is. you can edit the include/bots.php file to add Lynx Try the following: open include/bots.php Find Code:
if(!empty($HTTP_USER_AGENT) && !defined("IS_ROBOT") && empty($is_robot)) { After, Add Code:
"Lynx" => array("Lynx"), EDIT: just a note, that change worked for me, using the url you provided. Another note, the lo-fi mode is not meant to be pretty, and is not meant to be viewed by a regular browser. This is just an attempt to strip down to bare HTML + Content, if you have any recommendations regarding this mode, let me know. In my own testing, only product images are left (as is intended), as they are the only images that have alt values (again, on my install). It's possible for you to alter what is stripped out in Lo-Fi mode (requires editing of the outputfilter.seo.php file, if I remember correctly) |
One note about the 0.5 release:
404 Errors that are kicked out by the SEO mod are currently just a blank white screen with a short message saying the page does not exist. This will be changed in the next release to a setting that you can point to your own 404 error page of choice (and will default to a prettier error message). |
I apologize, somewhere in the process I failed to add this step to the install instructions (I'll update the install instructions after I post this step here):
Open auth.php: Find Code:
include_once $xcart_dir."/config.php"; After, Add Code:
|
I found out what was preventing me from installing 4.1.0, so I've now got a working copy of 4.1.0 installed on my server, and I've successfully installed XC SEO (with minor modifications).
I'm still testing though. I'm working on adding products to the installation so that I can verify product urls are being parsed correctly. |
How well is this working on 4.0 now? I'm getting a little anxious. :lol: I changed over from an html store to XCart about a month ago and my rankings are suffering.
Thank you Intel for your efforts! |
Well, it looks like this might not be compatible with PHP 5.0.x
Quote:
|
telafirma, read through the install instructions once more to make sure you've done everything as detailed. there was a step that had been missing from the install details, that i added in yesterday. seems like the class object isn't being created
or if you'd like me to look at it, i could try to get it working for you. i don't have a php5 dev environment at the moment, so i can't verify whether or not it works under php5 until later |
Works now - was missing the part in the auth.php file.
Something that might need to be addresses is the variables that are added after the .html extention or directory names: designing-web-usability_p67.html?cat=23&page=1 lord-of-the-rings-board-game_p93.html?cat=0&bestseller books/internet/?sort=price&sort_direction=0 still very indicative of dynamically generated pages and will still create the situation of two URIs pointing to the same content. |
Hi all,
Can't seem to get this mod working on X-Cart 4.0.13? any help appreciated, cheers. |
Quote:
Read the first post, the first 2 lines may explain your problems. |
Quote:
do you have any suggestions regarding how the variables could be hidden? I could easily strip them from the url, but there are some situations where the variables would be needed, such as sorting. one note, the sort directives actually return pages with different content, since they sort the results in a different manner, so there's no content duplication there. the product pages definitely need the variables handled though... hmm... |
Quote:
if you would like me to attempt to troubleshoot the install problem, PM me your FTP login information. otherwise, I would recommend upgrading to 4.0.18 I'll be releasing another update within the next week, fixes a few more possible issues, and adds support for 4.1.0 :-) |
Cool,
yes upgrading is something I am looking to do. I am currently in a transition between a web agency who did some work et al NOT A LOT THEY DONE WAS RIGHT! so I have to pick it up and get the rest of the development done. I am missing a massive portion of menus in the administration site as well but that's another matter. Many thanks for the reply, unfortunately due to the nature of the security on-site I can't give out ftp details etc :( but i will be able to post our SRC if that is appropriate? Cheers, Mark Jackel International Limited |
Security limitations understandable, I don't post FTP info for my employer's sites either.
Tell me this, is your installation highly customized? Did you have any trouble applying the modifications required to install the XC SEO mod? (from the 2nd post of this thread) |
Quote:
You can also install Lynx on Win2k/XP http://csant.info/downloads/lynx_setup-2.8.5rel-1.zip That download comes from this page (but isn't obvious, so I posted the direct file link): http://csant.info/lynx.htm |
Yeah I looked at that download, could never work out how to use it though :D
|
Quote:
install, doublclick the icon on desktop, hit "g" to get a URL prompt, type a url, press enter to go ;-) use arrows to navigate (left = back, right = forward/go, up = up, down = down, enter = go) |
LOL!!! errr ok so im a dimwit :D
|
intel.... basically it looks to be X-Cart 4.0.13 and no massive mods, however the company involved in the development are keeping quite quiet about changes and additions made.
I have noticed in the Admin section many of the options such as patch / upgrade , modules are all missing. Can anyone provide any reasons as to what may cause the admin panels to be messed up, I've also re-uploaded fresh (original) files for the administration area and it has made no difference, even as far as to run the cleanup.php to remove cached template files. |
that's quite unusual... hmm...
I'd either open a new thread about that issue or send a support request to the X-Cart devs |
I finally got the chance to install this mod and I'm very happy with it. The installation was very easy by following the 2nd post on this thread, and I had no problems at all.
The category links were very clean, and the mod even took care of all those "&" special characters by replacing them with "and" --That made me smile =) The product links were a little long, and towards the end started looking funny, but I can live with that. Lastly, I also liked the fact that the links used "-" instead of "_". I have a couple of questions though: 1) I saw mentioned in this thread an issue about duplicate content, and I'm wondering if this mod addresses that issue, or if it will sometime down the road. 2) I'm not sure if this has anything to do with the mod, but it almost feels as if the site slows down by a second or so. -- I don't know if others are having this issue, or it's just me, but I just wanted to throw it out there. 3) I haven't played around with froogle yet because I'm afraid I'll screw up something, but is the froogle option on this mod working properly? 4) Is it safe to go live with this mod? I'm probably going live this monday and it'll be a big plus if I can safely implement this. Overall, this is a great mod intel --Thanks! |
All times are GMT -8. The time now is 01:23 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.