Zen Cart Logo
Forums / All Other Contributions/Addons / Chemo's Ultimate URL's

Chemo's Ultimate URL's

Views: 493,242

Results 241 to 260 of 1,407
9 Oct 2006, 6:00 PM
#241
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Chemo's Ultimate URL's

Ok, I just added a new product type and this is how I did it (product type is gemring)

Go to the file: includes/classes/seo.url.php

Find this section:

$seo_pages = array(
FILENAME_DEFAULT,
FILENAME_PRODUCT_INFO,
FILENAME_POPUP_IMAGE,
FILENAME_PRODUCT_REVIEWS,
FILENAME_PRODUCT_REVIEWS_INFO,
);

Add in your product type like this (this is mine: gemring):

$seo_pages = array(
'product_gemring_info',
FILENAME_DEFAULT,
FILENAME_PRODUCT_INFO,
FILENAME_POPUP_IMAGE,
FILENAME_PRODUCT_REVIEWS,
FILENAME_PRODUCT_REVIEWS_INFO,
);

Find this section:

'products_id_review_info' => '-pri-',
	'products_id_review' => '-pr-',
	'products_id_review_info' => '-pri-',
	'products_id_review' => '-pr-',
	'products_id_review_info' => '-pri-',

Add your product type:

'products_id_review_info' => '-pri-',
	'products_id_review' => '-pr-',
	'products_id_review_info' => '-pri-',
	'products_id_review' => '-pr-',
	'products_id_review_info' => '-pri-',
	'products_gemring_info' => '-pgr-',

Notice that I added a new suffix - pgr (product gem ring), you can choose what you want. Notice that there is an 's' at the end of product.

Find this section:

case ($page == FILENAME_PRODUCT_REVIEWS_INFO):
$url = $this->make_url($page, $this->get_product_name($p2[1]), 'products_id_review_info', $p2[1], '.html', $separator);
break;

Add your product type below like this:

case ($page == FILENAME_PRODUCT_REVIEWS_INFO):
$url = $this->make_url($page, $this->get_product_name($p2[1]), 'products_id_review_info', $p2[1], '.html', $separator);
break;
case ($page == 'product_gemring_info'):	
$url = $this->make_url($page, $this->get_product_name($p2[1]), 'products_gemring_info', $p2[1], '.html', $separator);
break;

Now go the htaccess and find this section:

RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]

Add your code on the line below this:

RewriteRule ^(.*)-pgr-([0-9]+).html$ index\.php?main_page=product_gemring_info&products_id=$2&%{QUERY_STRING} [L]

There you go! Just substitute the name of your product type and the correct suffix.

Here is the end product of mine:

http://www.moissaniteco.com/7x5mm-octagonal-cultured-gemstone-moissanite-ring-14k-wy-pgr-3131.html

10 Oct 2006, 7:24 PM
#242
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Chemo's Ultimate URL's

Hi BlessIsaacola,
I experienced a similar issue today. Customer was not able to login, but it wouldn't take them to the home page, it was just refreshing the login page (no errors or anything). My master password failed as well. I went into the admin and turned off Ultimate SEO, reset the SEO cache, and turned it back on and it appears that it solved the problem.

BlessIsaacola:

Dreamscape, any idea on what's causing the period issues with the login problem.

Basically, what happens is the customer clicks on long and after they entered their credential they are returned to the home page but they are not logged in and the url enter something like url/?sid id instead of including the file.htm before the sid id. This only happens with this mod enabled.

Thanks for any insight you might have.

11 Oct 2006, 3:25 AM
#243
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

i need this to work with my easy pages.

it is not. i have heard there is a fix for this. does anyone know the solution?

here is the link it is not working on

http://www.oldwestgames.com/page.html?chapter=0&id=1

please help

11 Oct 2006, 3:44 AM
#244
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Chemo's Ultimate URL's

How do I properly set up a redirect for single pages? I had a page: gemstone_sizes.html which is now guide_carat.html. I used this in my htacces:

Redirect 301 /gemstone_sizes.html http://www.moissaniteco.com/guide_carat.html

But it just redirects to:
htp://www.moissaniteco.com/guide_carat.html?main_page=gemstone_sizes

11 Oct 2006, 6:17 AM
#245
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Chemo's Ultimate URL's

voltage:

Hi BlessIsaacola,
I experienced a similar issue today. Customer was not able to login, but it wouldn't take them to the home page, it was just refreshing the login page (no errors or anything). My master password failed as well. I went into the admin and turned off Ultimate SEO, reset the SEO cache, and turned it back on and it appears that it solved the problem.

Thank you so much for posting this Voltage. Yes! That work around works, the only problem is it's temporary solution. It will still happens again and you probably won't know until the customer contacts you again. It's really bizzarre because it only affects previous customer trying to login, it doesn't affect account creation.

Please let me know if you find a permanent solution. Right now, I have turned off Ultimate SEO URL because we get enough customers that this happens to and we actually get email from some of them. Right now, the benefit of this mod is not worth the customer issues.

Thanks for posting your experience. At least now, I know I am not crazy :)

11 Oct 2006, 10:18 AM
#247
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

dreamscape:

What is not working? That page comes up fine.

I know the page comes up but...

is that a valid page name for the mod to write? is that google safe - it is after all my link exchange page and needs to be read and searched and safe for google and other search engines.

i thought google had a problem with the question marks and that was one of the reasons for this mod. all my other pages have nice html addresses. this one doesn't seem to fit the mold.

11 Oct 2006, 12:18 PM
#248
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

mafiasam:

I know the page comes up but...

is that a valid page name for the mod to write? is that google safe - it is after all my link exchange page and needs to be read and searched and safe for google and other search engines.

i thought google had a problem with the question marks and that was one of the reasons for this mod. all my other pages have nice html addresses. this one doesn't seem to fit the mold.

forget it...i just added this information to the "defined pages" - that gives it a nice clean html address...

http://www.oldwestgames.com/link_exchange.html

which is what I was trying to get for the ez pages. i'll just stay away from ez pages.

11 Oct 2006, 1:20 PM
#249
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Chemo's Ultimate URL's

Well, one option is to turn off the caching of URL's completely. Since clearing the SEO cache solved the problem, maybe keeping the caching of them off will solve it.

Dreamscape, what is the purpose of the caching of the SEO urls? Does it speed up the site? What would happen if it is turned off?

BlessIsaacola:

Thank you so much for posting this Voltage. Yes! That work around works, the only problem is it's temporary solution. It will still happens again and you probably won't know until the customer contacts you again. It's really bizzarre because it only affects previous customer trying to login, it doesn't affect account creation.

Please let me know if you find a permanent solution. Right now, I have turned off Ultimate SEO URL because we get enough customers that this happens to and we actually get email from some of them. Right now, the benefit of this mod is not worth the customer issues.

Thanks for posting your experience. At least now, I know I am not crazy :)

11 Oct 2006, 5:16 PM
#250
dreamscape avatar

dreamscape

Totally Zenned

Join Date:
Nov 2003
Posts:
721
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

voltage:

Well, one option is to turn off the caching of URL's completely. Since clearing the SEO cache solved the problem, maybe keeping the caching of them off will solve it.

Dreamscape, what is the purpose of the caching of the SEO urls? Does it speed up the site? What would happen if it is turned off?

The urls themselves are not cached, but queries to get the url name for items are.

For example, on a product listing page, if you are listing 15 products, then that is 15 queries to create the product URLs, one per product. With the cache on, those are saved and there is just 1 query to restore the cache. Regardless of on or off though, a query for the same item is always cached on each request, so if those 15 products each had 3 links on the page, it would still only be 15 queries with the cache off.

I'm not sure why the login URL would be affected by the cache since there is nothing to lookup in the database for it. The cache should have no affect on URLs like that. It should only affect URLs that query the database to build the URL.

I'm really not sure what is going on because it has been awhile since I abandoned Chemo's code in favor of a more flexible system built from scratch. If only I could find the time to complete it :wacko:

11 Oct 2006, 5:43 PM
#251
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Chemo's Ultimate URL's

Dreamscape, Will donations from people really interested in a mod like this speed up the process?

11 Oct 2006, 6:00 PM
#252
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Chemo's Ultimate URL's

Yes, I would be interested too.

BlessIsaacola:

Dreamscape, Will donations from people really interested in a mod like this speed up the process?

11 Oct 2006, 6:16 PM
#253
dreamscape avatar

dreamscape

Totally Zenned

Join Date:
Nov 2003
Posts:
721
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

BlessIsaacola:

Dreamscape, Will donations from people really interested in a mod like this speed up the process?

voltage:

Yes, I would be interested too.

Yes absolutely. Lack of funding is what is holding it up. I'm not independently wealthy (yet), so most of my programming time goes to earning income, and the rest of my time I really don't feel like programming or burning myself out ;-)

The new version is about 80%-85% of the way completed, and I probably need about 10 - 15 dedicated hours to complete it.

If there are enough people interested in donating to fund completion, I can set up something at fundable.org

11 Oct 2006, 6:31 PM
#254
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Chemo's Ultimate URL's

Hey Dreamscape,
How much are we looking at for 10 - 15 hours?

dreamscape:

Yes absolutely. Lack of funding is what is holding it up. I'm not independently wealthy (yet), so most of my programming time goes to earning income, and the rest of my time I really don't feel like programming or burning myself out ;-)

The new version is about 80%-85% of the way completed, and I probably need about 10 - 15 dedicated hours to complete it.

If there are enough people interested in donating to fund completion, I can set up something at fundable.org

11 Oct 2006, 6:54 PM
#255
dreamscape avatar

dreamscape

Totally Zenned

Join Date:
Nov 2003
Posts:
721
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

Ok, I started a fund drive over at fundable.org for completing development of version 3 of this module:

https://www.fundable.org/groupactions/zencart-seo-urls

Note: The fundraiser is open for only 25 days.

Note: You don't pay upfront. You make a pledge now for whatever amount you want to give, and you only pay if and when the fund goal is reached.

11 Oct 2006, 10:50 PM
#256
realforever avatar

realforever

New Zenner

Join Date:
Jul 2006
Posts:
58
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

Hey Dreamscape,

I've put in my contribution and my comment. I hope you could extend longer time for the funding -- more zenners need to see this and act on. :bangin:

In case the total funding doesn't get to your target, can I pay you direct support to get that anyway? :cheers:

Again, with my 3 years of seo experience, I hoestly say this is well worth to contribute with. :clap:

11 Oct 2006, 10:54 PM
#257
realforever avatar

realforever

New Zenner

Join Date:
Jul 2006
Posts:
58
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

If there are updates for News & Article Management • DHL Shipping • Global Qty Discounts, notify me too!
I believe you're really working on the total ecommerce package for zen cart.

What's MZMT Shipping for?

Thank you.

12 Oct 2006, 7:47 AM
#258
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

i just signed up for adwards and was wondering about the auto-tagging option and whether quick updates will cause problems with it?

anyone know?

maifasam

12 Oct 2006, 8:03 AM
#259
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

mafiasam:

i just signed up for adwards and was wondering about the auto-tagging option and whether quick updates will cause problems with it?

anyone know?

maifasam

here's the page that explains auto-tagging

http://www.google.com/support/analytics/bin/answer.py?answer=31216

12 Oct 2006, 12:54 PM
#260
magicpants avatar

magicpants

Zen Follower

Join Date:
Aug 2005
Posts:
314
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

Dreamscape,

In this new "3rd version", if it ever arrives, will you include the ability to replace certain non-url friendly characters with other ones? This is a problem for foreign based sites. As an example, we can't use Chemo's because there's no way to replace the æ, å, ø characters with normal letters.