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,816

Results 3,721 to 3,740 of 5,058
5 Sep 2009, 1:54 PM
#3721
mixxin avatar

mixxin

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

Simple SEO URL (OLD version) [support thread]

Installed the latest SSU version on 1.3.8a and it worked perfectly.

Just moved to a new server today and I am getting the following issue. Product urls display nicely, manufacturers on the other hand look like this below:

website.com/index/securityToken/76bcb7d3772ff6eb9a973371ffabd2ce/manufacturers_id/16

Any idea why? :wacko:

5 Sep 2009, 2:11 PM
#3722
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

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

philip937:

I fixed it. Turns out it was showing the image paths for some reason due to my page calling those images when they didn't actually exist on the server! Hope this helps anyone else who might experience the same issue in the future.

Cheers


http://www.fanciedress.co.uk - Online Fancy Dress

Maybe you want to go a little bit more in details of what you did so others may know how you fix it.

5 Sep 2009, 10:21 PM
#3723
mixxin avatar

mixxin

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

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

mixxin:

Installed the latest SSU version on 1.3.8a and it worked perfectly.

Just moved to a new server today and I am getting the following issue. Product urls display nicely, manufacturers on the other hand look like this below:

website.com/index/securityToken/76bcb7d3772ff6eb9a973371ffabd2ce/manufacturers_id/16

Any idea why? :wacko:

Anybody, please.

6 Sep 2009, 12:22 AM
#3724
mixxin avatar

mixxin

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

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

Ok, it looks like I was getting the manufacturer_id in the URL because I didn't enable the parser. I have now, my manufacturer link looks like this:

website.com/manufacturer/securityToken/fd8c132c9cde1a15ed73e66777515200

How can I get rid of the token? Also, this only happens when you select a manufacturer in the (i.e. form submit).

6 Sep 2009, 1:07 AM
#3725
mixxin avatar

mixxin

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

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

Ok, problem solved! I screwed up and put the Security Patch code:

$form .= '<input type="hidden" name="securityToken" value="' . $_SESSION['securityToken'] . '" />';

in the catalog/includes/functions/html_output.php file instead of the admin/!

Sometimes I skim through some critical details!

6 Sep 2009, 9:29 AM
#3726
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

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

countrycharm:

Maybe you want to go a little bit more in details of what you did so others may know how you fix it.

hey countrycharm,

very simple, for now I just created the images that were missing and put them where they were being called from, this is only a temporary measure as I previously did not want these images showing hence why I probably deleted them in the first place. The images I create are simple just 1px x 1px transparent images. I will now need to go in a find where on my site is calling these images and remove the code rather than removing the images.

Phil


http://www.fanciedress.co.uk - Online Fancy Dress

6 Sep 2009, 10:57 PM
#3727
21zerogo avatar

21zerogo

New Zenner

Join Date:
Jul 2009
Location:
USA
Posts:
14
Plugin Contributions:
0

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

Q??? simple seo url issue

hello, i have a question. I am pretty much set on the install and workings of the simple seo url mod and it is working fine But......

When I was doing a test purchase. I tried to remove the product from the shopping cart and the page just reloads with out removing the product from the shopping cart.

Do you have any idea why this would be happening?

Any help would be great. thanks

JP

site: http://21zerogo.com

I am using version16|Beta 3.7.1 with zen cart 1.3.8a ===================================

yellow1912

Answer!!!

It's simple, just go into includes/classes/ssu/cores/link.php and remove all the instances of urlencode found around line 380 - 390, there should be 2.

Change urlencode($value) to just ($value)


Ajax Checkout - Zencart Addons - Speed Up your Zencart
Do not PM for help unless I ask you to - post in the forum so everyone can read and benefit!

=======================================
Here is the
Code...

359 - 390 of includes/classes/ssu/cores/link.php

359 * Takes the parameters in the query string and turns that to our nice looking link
360 */
361 function parseParams(&$languages_code, &$page, $parameters){
362 $parameters = trim($parameters,' ?&');
363 $set_cache = false;
364 $query_string = $params = '';
365 $main_page = $page;
366 $languages_id = SSUConfig::registry('configs', 'languages_id');
367
368 if(!empty($parameters)){
369 $parsers = SSUConfig::registry('plugins', 'parsers');
370 $cache_filename = md5($page.$parameters);
371
372 foreach($parsers as $key => $parser){
373 if(call_user_func_array(array("{$parser}Parser", "identifyPage2"), array(&$page, $parameters)) !== false){
374 if(($params = SSUCache::read("{$cache_filename}{$languages_code}", 'pc', true)) !== false)
375 return $params;
376 $set_cache = true;
377 }
378 elseif(call_user_func_array(array("{$parser}Parser", "identifyParam"), array($parameters)) !== false){
379 if(($params = SSUCache::read("{$cache_filename}
{$languages_code}", 'pc', true)) !== false)
380 return $params;
381 $set_cache = true;
382 //unset($parsers[$key]);
383 }
384 else
385 unset($parsers[$key]);
386 }
387
388 // take out the empty variables
389 $params = array();
390 parse_str($parameters, $parameters);

I really didnt see where to make the modifications yellow1912 had mentioned in a PM. Anyone know how to fix this?

Thanks in advance to any help out there.

JP

6 Sep 2009, 11:15 PM
#3728
21zerogo avatar

21zerogo

New Zenner

Join Date:
Jul 2009
Location:
USA
Posts:
14
Plugin Contributions:
0

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

another question,

why do most of the php files have no

?> tag at the end of the code????

7 Sep 2009, 1:47 AM
#3729
pennylane avatar

pennylane

New Zenner

Join Date:
Aug 2009
Posts:
31
Plugin Contributions:
0

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

here's the fix in case anyone else has this issue:

Go into includes/classes/ssu/cores/link.php and remove all the instances of urlencode found around line 380 - 390, there should be 2.

Change urlencode($value) to just ($value)

7 Sep 2009, 1:51 AM
#3730
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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

Or. better yet, don't waste your time with SEO mods.

7 Sep 2009, 2:13 AM
#3731
yellow1912 avatar

yellow1912

Totally Zenned

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

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

21zerogo:

another question,

why do most of the php files have no

?> tag at the end of the code????
Because this will prevent many problems down the road ^_^

7 Sep 2009, 2:14 AM
#3732
yellow1912 avatar

yellow1912

Totally Zenned

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

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

21zerogo:

Q??? simple seo url issue

hello, i have a question. I am pretty much set on the install and workings of the simple seo url mod and it is working fine But......

When I was doing a test purchase. I tried to remove the product from the shopping cart and the page just reloads with out removing the product from the shopping cart.

Do you have any idea why this would be happening?

Any help would be great. thanks

JP

site: http://21zerogo.com

I am using version16|Beta 3.7.1 with zen cart 1.3.8a ===================================

yellow1912

Answer!!!

It's simple, just go into includes/classes/ssu/cores/link.php and remove all the instances of urlencode found around line 380 - 390, there should be 2.

Change urlencode($value) to just ($value)


Ajax Checkout - Zencart Addons - Speed Up your Zencart
Do not PM for help unless I ask you to - post in the forum so everyone can read and benefit!

=======================================
Here is the
Code...

359 - 390 of includes/classes/ssu/cores/link.php

359 * Takes the parameters in the query string and turns that to our nice looking link
360 */
361 function parseParams(&$languages_code, &$page, $parameters){
362 $parameters = trim($parameters,' ?&');
363 $set_cache = false;
364 $query_string = $params = '';
365 $main_page = $page;
366 $languages_id = SSUConfig::registry('configs', 'languages_id');
367
368 if(!empty($parameters)){
369 $parsers = SSUConfig::registry('plugins', 'parsers');
370 $cache_filename = md5($page.$parameters);
371
372 foreach($parsers as $key => $parser){
373 if(call_user_func_array(array("{$parser}Parser", "identifyPage2"), array(&$page, $parameters)) !== false){
374 if(($params = SSUCache::read("{$cache_filename}{$languages_code}", 'pc', true)) !== false)
375 return $params;
376 $set_cache = true;
377 }
378 elseif(call_user_func_array(array("{$parser}Parser", "identifyParam"), array($parameters)) !== false){
379 if(($params = SSUCache::read("{$cache_filename}
{$languages_code}", 'pc', true)) !== false)
380 return $params;
381 $set_cache = true;
382 //unset($parsers[$key]);
383 }
384 else
385 unset($parsers[$key]);
386 }
387
388 // take out the empty variables
389 $params = array();
390 parse_str($parameters, $parameters);

I really didnt see where to make the modifications yellow1912 had mentioned in a PM. Anyone know how to fix this?

Thanks in advance to any help out there.

JP
You should just search for urlencode($value)

7 Sep 2009, 3:18 AM
#3733
21zerogo avatar

21zerogo

New Zenner

Join Date:
Jul 2009
Location:
USA
Posts:
14
Plugin Contributions:
0

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

I am having the same issue and test results. I have looked and searched for the urlencode($value) in the php code and dont find it anywhere. Maybe I am missing something. ??

7 Sep 2009, 3:22 AM
#3734
yellow1912 avatar

yellow1912

Totally Zenned

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

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

All support questions should be posted inside support thread dedicated to this module.

Regards

Raine

7 Sep 2009, 3:28 AM
#3735
21zerogo avatar

21zerogo

New Zenner

Join Date:
Jul 2009
Location:
USA
Posts:
14
Plugin Contributions:
0

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

							return $params;
						$set_cache = true;
						//unset($parsers[$key]);
					}
					else 
						unset($parsers[$key]);
				}
				
				// take out the empty variables
				$params = array();
				parse_str($parameters, $parameters);

this is line 380 - 390

I am not a code person, Is there any way you can be more specific.

7 Sep 2009, 3:29 AM
#3737
yellow1912 avatar

yellow1912

Totally Zenned

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

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

On your editor, use the "search" feature, usually the hot key is Ctrl-F to find urlencode($value)

7 Sep 2009, 3:35 AM
#3738
21zerogo avatar

21zerogo

New Zenner

Join Date:
Jul 2009
Location:
USA
Posts:
14
Plugin Contributions:
0

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

line 400 -407```php
foreach($parameters as $key => $value){
if($value == 0 || !empty($value)){
// exclude certain query keys from being seo-iezed
if($this->checkQueryExcludedList($key))
$query_string .= $key.'='.urlencode($value).'&';
else{
$params[] = $key;
$params[] = urlencode($value);

so I should change the code to just ```php
($value) 

I will try it out right now thanks.

7 Sep 2009, 3:42 AM
#3739
21zerogo avatar

21zerogo

New Zenner

Join Date:
Jul 2009
Location:
USA
Posts:
14
Plugin Contributions:
0

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

:clap: awesome it works. Thanks Raine

8 Sep 2009, 3:04 AM
#3740
jerry5763837 avatar

jerry5763837

Zen Follower

Join Date:
May 2008
Posts:
261
Plugin Contributions:
0

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

Hi, Yellow.

Reaaly great mod.

I installed few month ago, it works fine.

but today, when i clear the cache through Admin--extras--simple SEO manager, it says
"cache/ssu/aliases folder is not writable
/cache/ssu/pc folder is not writable"

then, i can not find ssu folder through FTP, it is missing.
even though i recreate ssu folder, it was then deleted automatically.

what problely the problem is?
what is the latest version of SSU now?

many thanks for your suggestions!!!!