Page 60 of 168 FirstFirst ... 1050585960616270110160 ... LastLast
Results 591 to 600 of 1674
  1. #591
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Numinex Compatibility

    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.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  2. #592
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Numinex Compatibility

    Quote Originally Posted by lhungil View Post
    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):
    Code:
            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:
    Code:
                    // 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:
    Code:
    echo '    <td class="cl">' . $configuration_option['configuration_title'] . '</td>' . "\n";
    replace with this:
    Code:
    echo '    <td class="cl">' . $configuration_option['configuration_title'] . '<br /><small><i>Current Value: ' . $configuration_option['configuration_value'] . '</i></small></td>' . "\n";
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #593
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,555
    Plugin Contributions
    70

    Default Re: Numinex Compatibility

    Quote Originally Posted by DivaVocals View Post
    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):
    Code:
            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:
    Code:
                    // 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.

  4. #594
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Numinex Compatibility

    The credit for the fix is lhungil... I just share what I learn..
    Quote Originally Posted by numinix View Post
    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.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #595
    Join Date
    Feb 2014
    Location
    helsinki
    Posts
    2
    Plugin Contributions
    0

    Default Re: Ultimate SEO 2.200+ (new features)

    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

  6. #596
    Join Date
    May 2009
    Location
    USA
    Posts
    9
    Plugin Contributions
    0

    Default Re: Ultimate SEO 2.200+ (new features)

    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

  7. #597
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by dbmel View Post
    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..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  8. #598
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by boysen99 View Post
    ...
    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):
    Code:
    [àÀáÁâÂãÃäÄåÅ]=>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...

    Quote Originally Posted by boysen99 View Post
    ...
    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.
    Last edited by lhungil; 17 Feb 2014 at 07:50 PM.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  9. #599
    Join Date
    Feb 2014
    Location
    helsinki
    Posts
    2
    Plugin Contributions
    0

    Default Re: Ultimate SEO 2.200+ (new features)

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

  10. #600
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200+ (new features)

    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!
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

 

 

Similar Threads

  1. Ultimate Fade-In Slidehow Support thread
    By outeredge2 in forum All Other Contributions/Addons
    Replies: 158
    Last Post: 4 Feb 2017, 03:10 AM
  2. Ultimate Cross Sell [Support Thread]
    By ultimate_zc in forum All Other Contributions/Addons
    Replies: 239
    Last Post: 17 May 2015, 03:25 AM
  3. Ultimate Content Glider [Support Thread]
    By ultimate_zc in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 4 Sep 2012, 05:16 AM
  4. Re: Simple SEO URL [support thread]
    By creamcrackers in forum General Questions
    Replies: 2
    Last Post: 16 Aug 2009, 03:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR