Zen Cart Logo
Forums / All Other Contributions/Addons / Ultimate SEO v3 (and v2.200) [Support Thread]

Ultimate SEO v3 (and v2.200) [Support Thread]

Views: 427,280

Results 581 to 600 of 1,706
31 Jan 2014, 19:40
#581
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Ultimate SEO v3 (and v2.200) [Support Thread]

lhungil:

Not directly related to this module (the code block is identical to the one used by the internal Zen Cart code).

But the error log says it's a file from this module:

/home4/mysite/public_html/shop/includes/classes/seo.url.php on line 201

31 Jan 2014, 19:43
#582
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

lhungil:

Yup, the modifications Numinix makes to the admin configuration.php file do not play well with 2.212.Well the changes I made got the configuration radio buttons and values to show back up using the modified configuration.php file.. what's ODD is that when I go to edit a value, the selected value is NOT selected.. I see two radio buttons and NEITHER is selected.. Rolling back to the default configuration.php yields the SAME result..

Edited to add:
so I see the pattern to this issue.. all the values where there is NO radio button selected all have a value in the "use_function" column in the configuration table..

31 Jan 2014, 19:56
#583
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

DivaVocals:

But the error log says it's a file from this module ...
And the code on that line is directly copied from the core Zen Cart code (in "zen_href_link").

DivaVocals:

... what's ODD is that when I go to edit a value, the selected value is NOT selected.. I see two radio buttons and NEITHER is selected...
This is normal when the Numinex configuration.php changes are present. From the screen shots I have seen it appears the Numinex modification removes the display of the "value" and instead assumes the value will be one of the configuration options.

This is not always the case with Zen Cart configuration settings (it supports them being different). Ultimate URLs makes use of this to detect when a value is "changed" and runs some additional sanity checks and actions when a value is "changed". If you want I can get into a much more detailed explanation in private.

31 Jan 2014, 20:14
#584
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

lhungil:

This is normal when the Numinex configuration.php changes are present. From the screen shots I have seen it appears the Numinex modification removes the display of the "value" and instead assumes the value will be one of the configuration options.

This is not always the case with Zen Cart configuration settings (it supports them being different). Ultimate URLs makes use of this to detect when a value is "changed" and runs some additional sanity checks and actions when a value is "changed". If you want I can get into a much more detailed explanation in private.

But I am getting the "empty" radio button issue when I restore the default configuration.php file too..

08 Feb 2014, 17:23
#585
jenkins2212 avatar

jenkins2212

New Zenner

Join Date:
Oct 2013
Location:
Athens, Georgia, United States
Posts:
27
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Ok so i am wanting to install this plugin but its a little intimidating to a noobie. If i have already installed other plugins and added products can i still install this plugin?

08 Feb 2014, 18:23
#586
jenkins2212 avatar

jenkins2212

New Zenner

Join Date:
Oct 2013
Location:
Athens, Georgia, United States
Posts:
27
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Nevermind i got it:)

10 Feb 2014, 00:05
#587
xav2 avatar

xav2

New Zenner

Join Date:
Jun 2013
Posts:
47
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

hello, i'm using zen cart 1.51 and usu 2.212
the product url now is category-c-1/product-p-1.html
can i change it to product-p-1.html ?

10 Feb 2014, 18:00
#588
xav2 avatar

xav2

New Zenner

Join Date:
Jun 2013
Posts:
47
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

ok this could be done from admin configurations

another question, Enter special character conversions
i set /=>- it works,
but for '=>- it changes nothing
what do i convert ' to -

10 Feb 2014, 19:07
#589
xav2 avatar

xav2

New Zenner

Join Date:
Jun 2013
Posts:
47
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

same question

Jerry5763837:

Hi, Guys,

may I ask for your favor? may I know what is the rewrite rule for multi language site?

in the past only english was available on our site, and natually https://www.mysite.com goes to default language.
now we have new Spanish and Russian, as well as english, then they go to:
https://www.mysite.com/es/
https://www.mysite.com/ru/
https://www.mysite.com/en/
for SEO purpose.

now my questoin is how to rewrite https://www.mysite.com/en/**** to https://www.mysite.com/****, as they
are actually the same page. Also all our pages so far indexed by Google are start with https://www.mysite.com/

also, is it possible to rewrite https://www.mysite.com/?language=en to https://www.mysite.com/en/?

your suggestion would be highly appreciated.

10 Feb 2014, 23:17
#590
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Background:
Why "must" you place languages in the URL using "/es/"? Search Engines work just fine with "?language=es".

When a web "crawler" looks for content they send a request to the site in the same manner as a web browser. A list of acceptable languages (in order of preference) is usually sent in the HTML headers - not the HTML content (source) - to the web server. The language is then captured and sent to PHP (and is interpreted by Zen Cart). This means when your site is "crawled" by a crawler requesting Spanish content, Zen Cart will return Spanish content and USU will return Spanish URLs. Nothing "special" needs to be done.

Now if you want to tell the "crawler" about different URLs containing a "translation" for the current page... Or that your site supports different languages... Or which specific languages your site supports (and the URLs)... I would surmise the safest way to handle these specific cases, would be to follow the instructions in this article from an authority on the subject.

rel="alternate"
There was a discussion about this topic awhile back in this thread... Disclaimer: I cannot vouch for the correctness or functionality of alterations made by others to this module. In some cases they may be detrimental. Make the changes at your own risk!

I do not currently have time to create a "free" implementation of the necessary changes to support rel="alternate". Good Luck on your endeavor!

Note: As the link from Google shows, even they do not use a URL containing "/en/", but a parameter such as "?hl=en".

11 Feb 2014, 16:51
#591
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Numinex module users:
Make sure your copy of "/admin/configuration.php" includes code calling the defined "use_function" for configuration options. While only a handful of core Zen Cart configuration options define a "use_function", many of the configuration options for Ultimate URLs make use of the "use_function".

The stock Zen Cart code calls the "use_function" (if defined for a configuration option) to determine the correct "value" to display for a configuration option. The stock Zen Cart code calls the "use_function" every time the configuration page is displayed (and leaves room for more creative uses than just display).

Ultimate URLs uses the "use_function" to fire additional "events" (such as checking for valid options / combinations of options). These events in turn "save" the updated / changed configuration options to the database (for Ultimate URLs).

This means if the code in "/admin/configuration.php" does not call the defined "use_function" (at least once), one will not be able to configure Ultimate URLs using the standard Zen Cart "admin"->"configuration"->"Ultimate (SEO) URLs".

**Note: **A special thank you to DivaVocals for directing me to the exact reason for the compatibility conflict between some of the Numinex modules and Ultimate URLs.

11 Feb 2014, 19:16
#592
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

lhungil:

Numinex module users:
Make sure your copy of "/admin/configuration.php" includes code calling the defined "use_function" for configuration options. While only a handful of core Zen Cart configuration options define a "use_function", many of the configuration options for Ultimate URLs make use of the "use_function".

The stock Zen Cart code calls the "use_function" (if defined for a configuration option) to determine the correct "value" to display for a configuration option. The stock Zen Cart code calls the "use_function" every time the configuration page is displayed (and leaves room for more creative uses than just display).

Ultimate URLs uses the "use_function" to fire additional "events" (such as checking for valid options / combinations of options). These events in turn "save" the updated / changed configuration options to the database (for Ultimate URLs).

This means if the code in "/admin/configuration.php" does not call the defined "use_function" (at least once), one will not be able to configure Ultimate URLs using the standard Zen Cart "admin"->"configuration"->"Ultimate (SEO) URLs".

**Note: **A special thank you to DivaVocals for directing me to the exact reason for the compatibility conflict between some of the Numinex modules and Ultimate URLs.

And to add to this, it appears that this applies to the PREMIUM versions of Numinix modules (**Google Product Search Feeder **and possibly Fast and Easy Ajax Checkout). For SURE **Google Product Search Feeder **(the "premium" version of Google Merchant Center Feeder) includes a modified /admin/configuration.php file. To correct the errors lhungil describes see the required changes below.

find this section (around lines 75-79):

        foreach($_POST as $cfgID => $cfgValue) {
            $strpos = strpos($cfgID, 'cfg_');
            if ($strpos !== FALSE) {
                $cID = zen_db_prepare_input(substr($cfgID, $strpos + 4));
                $configuration_value = zen_db_prepare_input($cfgValue);

AFTER this section add this:

                // START fix code to correctly utilize the use_function
                $queryResult = $db->Execute(
                    'SELECT `use_function` FROM `' . $configuration_table . '` ' .
                    'WHERE `configuration_id`=\'' . $cID . '\''
                );
                if(!$queryResult->EOF && zen_not_null($queryResult->fields['use_function'])) {
                    $use_function = $queryResult->fields['use_function'];
                    if (preg_match('/->/', $use_function)) {
                        $class_method = explode('->', $use_function);
                        if (!is_object(${$class_method[0]})) {
                            include(DIR_WS_CLASSES . $class_method[0] . '.php');
                            ${$class_method[0]} = new $class_method[0]();
                        }
                        $configuration_value = zen_call_function($class_method[1], $configuration_value, ${$class_method[0]});
                    } else {
                        $configuration_value = zen_call_function($use_function, $configuration_value);
                    }
                }
                unset($queryResult, $use_function);
                // END fix code to correctly utilize the use_function


then at line 213 find this:

echo '    <td class="cl">' . $configuration_option['configuration_title'] . '</td>' . "\n";

replace with this:

echo '    <td class="cl">' . $configuration_option['configuration_title'] . '<br /><small><i>Current Value: ' . $configuration_option['configuration_value'] . '</i></small></td>' . "\n";
12 Feb 2014, 06:52
#593
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,566
Plugin Contributions:
58

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

DivaVocals:

And to add to this, it appears that this applies to the PREMIUM versions of Numinix modules (**Google Product Search Feeder **and possibly Fast and Easy Ajax Checkout). For SURE **Google Product Search Feeder **(the "premium" version of Google Merchant Center Feeder) includes a modified /admin/configuration.php file. To correct the errors lhungil describes see the required changes below.

find this section (around lines 75-79):

    foreach($_POST as $cfgID => $cfgValue) {
        $strpos = strpos($cfgID, 'cfg_');
        if ($strpos !== FALSE) {
            $cID = zen_db_prepare_input(substr($cfgID, $strpos + 4));
            $configuration_value = zen_db_prepare_input($cfgValue);
> 
> AFTER this section add this:
> ```
                // START fix code to correctly utilize the use_function
                $queryResult = $db->Execute(
                    'SELECT `use_function` FROM `' . $configuration_table . '` ' .
                    'WHERE `configuration_id`=\'' . $cID . '\''
                );
                if(!$queryResult->EOF && zen_not_null($queryResult->fields['use_function'])) {
                    $use_function = $queryResult->fields['use_function'];
                    if (preg_match('/->/', $use_function)) {
                        $class_method = explode('->', $use_function);
                        if (!is_object(${$class_method[0]})) {
                            include(DIR_WS_CLASSES . $class_method[0] . '.php');
                            ${$class_method[0]} = new $class_method[0]();
                        }
                        $configuration_value = zen_call_function($class_method[1], $configuration_value, ${$class_method[0]});
                    } else {
                        $configuration_value = zen_call_function($use_function, $configuration_value);
                    }
                }
                unset($queryResult, $use_function);
                // END fix code to correctly utilize the use_function


Thanks **lhungil **for pointing out the issue and **DivaVocals **for providing this fix! We've added a similar code change to Numinix Product Variants Inventory Manager v1.3.4 and will follow with the rest of our mods in the near future.

12 Feb 2014, 06:59
#594
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

The credit for the fix is lhungil... I just share what I learn.. :smile:> numinix:

Thanks **lhungil **for pointing out the issue and **DivaVocals **for providing this fix! We've added a similar code change to Numinix Product Variants Inventory Manager v1.3.4 and will follow with the rest of our mods in the near future.

16 Feb 2014, 15:36
#595
boysen99 avatar

boysen99

New Zenner

Join Date:
Feb 2014
Location:
helsinki
Posts:
2
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Hello!

I installed ultimate SEO, just one question how I change the ä letter to> a and ö to>o.

Now the URL is like ..väri-musta-p-189.html

So how to change the scandinavian letters in the URL?

If the solution lies in the "Enter special character conversions" box, could someone give example what to write in the box?

Thank you,
Tomi

17 Feb 2014, 12:30
#596
dbmel avatar

dbmel

New Zenner

Join Date:
May 2009
Location:
USA
Posts:
9
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

I am playing with several Responsive templates with the 1.5.1 version/Ultimate Seo UrLS 2.12 mod and am seeing a problem with the footer links not re-writing correctly on all the templates that I'm .

For example: .../index.php?main_page=shippinginfo
instead of .../shippinginfo.html.

The strange part is that the top menu and the sideboxes DO CORRECTLY re-write. It's just the footer links that do not. I was wondering if you have come across this previously and know a fix for it?

Thanks much!
Melissa

17 Feb 2014, 17:21
#597
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

dbmel:

I am playing with several Responsive templates with the 1.5.1 version/Ultimate Seo UrLS 2.12 mod and am seeing a problem with the footer links not re-writing correctly on all the templates that I'm .

For example: .../index.php?main_page=shippinginfo
instead of .../shippinginfo.html.

The strange part is that the top menu and the sideboxes DO CORRECTLY re-write. It's just the footer links that do not. I was wondering if you have come across this previously and know a fix for it?

Thanks much!
Melissa
This is an issue with your template NOT this add-on.. The links in question are hardcoded into your template versus using the proper Zen Cart link function to pull them in dynamically..

17 Feb 2014, 18:48
#598
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

boysen99:

...
I installed ultimate SEO, just one question how I change the ä letter to> a and ö to>o.

Now the URL is like ..väri-musta-p-189.html

So how to change the scandinavian letters in the URL? ...
If you are using Zen Cart 1.5+ and your database is configured for UTF8... The easiest way is to configure a "Regular Expression Filter" (PCRE filter).

Possibly something like (edit to fit your needs):

[àÀáÁâÂãÃäÄåÅ]=>a,[èÈéÉêÊëË]=>e,[ìÌíÍîÎïÏ]=>i,[òÒóÓöÖôÔõÕøØ]=>o,[ùÙúÚûÛüÜ]=>u,[ýÝÿx]=>y,[çÇ]=>c,[ñÑ]=>n,[Ð]=>d

Note: Using UTF8 for the database and website simplifies things as you can enter the characters directly for replacement in the configuration option... Otherwise you end up needing to mess around with specifying the characters using octal or similar in the regexp... And adjusting for the charset used for storage by the database...

boysen99:

...
If the solution lies in the "Enter special character conversions" box, could someone give example what to write in the box?
...
That feature is a left over from legacy versions of Ultimate URLs. It does not support unicode characters (or multi-byte characters). And thus may not work fully for your case.

I should also note the "special character conversions" option will be removed in a future upstream release.

17 Feb 2014, 19:52
#599
boysen99 avatar

boysen99

New Zenner

Join Date:
Feb 2014
Location:
helsinki
Posts:
2
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

[QUOTE=lhungil;1237413]If you are using Zen Cart 1.5+ and your database is configured for UTF8... The easiest way is to configure a "Regular Expression Filter" (PCRE filter).

Possibly something like (edit to fit your needs):

[àÀáÁâÂãÃäÄåÅ]=>a,[èÈéÉêÊëË]=>e,[ìÌíÍîÎïÏ]=>i,[òÒóÓöÖôÔõÕøØ]=>o,[ùÙúÚûÛüÜ]=>u,[ýÝÿx]=>y,[çÇ]=>c,[ñÑ]=>n,[Ð]=>d

It works, thank you very much! :smile: I got this working after putting the code like in your example in the PCRE filter like ä=>ä, and then enabling "punctuation" in "Remove these characters from URLs", then it started to change the URL:s.

Br,
Tomi

17 Feb 2014, 22:27
#600
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Yup, forgot to mention you would need to "reset the cache" (changing the "Remove these characters from URLs" setting automatically resets the URL cache).

Thanks for letting us know the example worked for you!