Zen Cart Logo
Forums / All Other Contributions/Addons / Simple SEO URL (OLD version) [support thread]

Simple SEO URL (OLD version) [support thread]

Views: 1,113,776

Results 1,501 to 1,520 of 5,058
29 Nov 2008, 7:51 PM
#1501
ttco avatar

ttco

New Zenner

Join Date:
Nov 2008
Posts:
6
Plugin Contributions:
0

Simple SEO URL (OLD version) [support thread]

Yes. Here's the entire file:

<?php // note: we can later move part of this function into sub-functions, which we can store in the base class. require('language.php'); class SSULanguage extends SSULanguageBase{ var $registry; function parse_name($name, $params){ $this->registerArray($params); // Remove short words first if(($word_length = $this->registry('minimum_word_length')) > 0){ $name_parts = explode(' ', $name); foreach($name_parts as $key => $value) if(strlen($value) < $word_length) unset($name_parts[$key]); $name = implode($this->registry('name_delimiter'), $name_parts); } // trim the sentence if ($this->registry('max_name_length') > 0 && (strlen($name) > $this->registry('max_name_length'))){ preg_match('/(.{' . $this->registry('max_name_length') . '}.*?)\b/', $name, $matches); $name = rtrim($matches[1]); } // we replace any non alpha numeric characters by the name delimiter $name = str_replace(array(' ', '\'', '/', '\\', '"', '.', ':', '@', '_', '-', '?', '&', '='), $this->registry('name_delimiter'), $name); // remove excess $this->registry('name_delimiter') $name = $this->removeDelimiter($name); // remove trailing _ $name = strtolower(trim($name, $this->registry('name_delimiter'))); return urlencode($name); } }
29 Nov 2008, 7:53 PM
#1502
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Interesting. Can you please post the content of your language.php as well? And the above fatal error is the only one you current have, right?

29 Nov 2008, 7:55 PM
#1503
ttco avatar

ttco

New Zenner

Join Date:
Nov 2008
Posts:
6
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Yes, that's the only one.

Here's language.php:

<?php class SSULanguageBase{ var $registry; function register($name, $value){ $this->registry[$name] = $value; } function registry($name){ if(isset($this->registry[$name])) return $this->registry[$name]; return null; } function registerArray($params){ foreach ($params as $key => $value) $this->register($key, $value); } function removeDelimiter($name){ // remove excess $this->registry('name_delimiter') $name = preg_replace('/'.$this->registry('name_delimiter').$this->registry('name_delimiter').'+/', $this->registry('name_delimiter'), $name); // remove anything that looks like our identifiers in the name $name = str_replace(array( $this->registry('category_identifier'), $this->registry('manufacturer_identifier'), $this->registry('page_identifier')) , '', $name); foreach($this->registry('products_identifiers') as $products_identifier) $name = str_replace($products_identifier, '', $name); return $name; } }
29 Nov 2008, 7:59 PM
#1504
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

This is a bug for some very old php4 versions (things not working well with mixcase class-name).

What is your php version?

Regards

Link to bug: http://bugs.php.net/bug.php?id=27227

29 Nov 2008, 8:02 PM
#1505
ttco avatar

ttco

New Zenner

Join Date:
Nov 2008
Posts:
6
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

It's 4.3.11

29 Nov 2008, 8:16 PM
#1506
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

4.3.11 is released 3-4 years ago, perhaps it's now time for your host to upgrade to a newer version?

Each new version released come with bug fixes and performance improvement, so it will benefit your whole site over all.

In the mean time, please do this: please turn off ssu via admin, this should return your links back to normal. Please pm me if you need more help.

Regards

29 Nov 2008, 8:18 PM
#1507
ttco avatar

ttco

New Zenner

Join Date:
Nov 2008
Posts:
6
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

I'll take it up with my host. Thanks for your help!

29 Nov 2008, 8:20 PM
#1508
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

ttco:

I'll take it up with my host. Thanks for your help!
And dont forget zen 1.4 coming out soon will require php5 to run.

However, if you are still on older version of zen (older than 1.3.8), then it's safer to stay on php4 for now.

If you dont know which php version works best for your zencart, post a new topic in the appropriate forum and someone in the dev team will help you with that.

1 Dec 2008, 9:07 PM
#1509
micmed avatar

micmed

Zen Follower

Join Date:
Mar 2008
Location:
The Free South
Posts:
165
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

When a product is brought up by searching the part number and the "Add to cart" is selected it goes to "Page Not Found". This does not occur anywhere else on the site.

https://www.thecablestation.com

Example Part 35509

When I turn SSU off this does not occur.

???

1 Dec 2008, 9:11 PM
#1510
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

micmed:

When a product is brought up by searching the part number and the "Add to cart" is selected it goes to "Page Not Found". This does not occur anywhere else on the site.

www.thecablestation.com

Example Part 35509

When I turn SSU off this does not occur.

???
Your ssu version? I can not reproduce this particular error on my site.

1 Dec 2008, 9:19 PM
#1511
micmed avatar

micmed

Zen Follower

Join Date:
Mar 2008
Location:
The Free South
Posts:
165
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Aparently not the latest. Is that 2.9.6?

1 Dec 2008, 9:21 PM
#1512
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

2.9.6 is the latest for php4
If you have php5, then 3+ version can be used

After upgrading, please make sure you clear cache.
If you are upgrading to 3+, please read the doc carefully.

(please get the links in my signatures)

1 Dec 2008, 9:22 PM
#1513
micmed avatar

micmed

Zen Follower

Join Date:
Mar 2008
Location:
The Free South
Posts:
165
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Thanks, I will update tonight.

1 Dec 2008, 9:27 PM
#1514
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

@everyone:

As pointed out by nagelkruid

"maybe more for documentation, but is it possible the glid is actually a typo and Set Query Key's Exclude List should actually be default set to zenid,gclid ^_^"

I had a typo there, please go to your admin->configuration->ssu settings->exclude query and change "glid" to "gclid"

This will be updated in the next version as well.

2 Dec 2008, 4:11 AM
#1515
micmed avatar

micmed

Zen Follower

Join Date:
Mar 2008
Location:
The Free South
Posts:
165
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

I installed 3.4.5 and followed the install directions to the letter I believe.

Now, with SSU turned on the simple URLS show but they do not link to anything on my site. I have it turned off as of now.

???

2 Dec 2008, 4:14 AM
#1516
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

micmed:

I installed 3.4.5 and followed the install directions to the letter I believe.

Now, with SSU turned on the simple URLS show but they do not link to anything on my site. I have it turned off as of now.

???
It's hard to know what's going on based on your description. What do you mean by not linking to anything on your site? What kind of links are shown? What errors you get?

Be more specific, always be very specific when you report a problem. What you are doing is similar to saying: help, my computer doesnt run.

2 Dec 2008, 4:25 AM
#1517
micmed avatar

micmed

Zen Follower

Join Date:
Mar 2008
Location:
The Free South
Posts:
165
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

yellow1912:

It's hard to know what's going on based on your description. What do you mean by not linking to anything on your site? What kind of links are shown? What errors you get?

Be more specific, always be very specific when you report a problem. What you are doing is similar to saying: help, my computer doesnt run.

You are right and I should know better to be specific.
With SSU turned on, clicking on anything would just return me to the index page.
Turned out to be an .htaccess error on my part. :oops:
BTW - this version fixed my previous problem with Add to Cart from a search result.
Great Mod
-Thanks Ted:clap:

6 Dec 2008, 12:51 AM
#1518
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

yellow1912:

Thank you, now I know why ^_^. I will release a fix for that soon.
It's looking for page title with language id 2, so obviously it will not find any.
I have been playing with that multilanguage mod for ezpages but it gave me way too much trouble in my tests. I think it doesn't like that i only use one language which isn't the default, but i'm not sure.

Anyway, i changed the language id's to 2 and set the table to choose default language id 2 for new pages.

Now the ssu is translating those as we like it :smile:
So for me it is fixed now, cheers...

6 Dec 2008, 12:58 AM
#1519
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

First time installation of this mod. Followed all instructions. Very clear and easy. Many thanks. :clap:

6 Dec 2008, 1:37 AM
#1520
grace38 avatar

grace38

New Zenner

Join Date:
Dec 2008
Posts:
41
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

I tried installing Easy Seo Url tonight and it turned into a disaster movie and i had to use my backup files. This meant i lost recent changes including the ditching of the telephone required section of the login pages and worse yet my admin section now redirects to my stores login page.

I have looked at all the usual files such as the configure.php files and checked my sites .htaccess files and cannot see any problems.

Could there be an issue with the actual mysql database or is there a .htaccess file somewhere in the store causing a re-direct. I don't want to give out the stores admin login page for security reasons but i am wondering if anyone can help with this major issue i am having.

I am sure the admin section exists it is just re-directing itself to the stores login page and i don't know why ?