Results 1 to 10 of 149

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,903
    Plugin Contributions
    96

    Default Re: CSS3 Buttons [support thread]

    Quote Originally Posted by lat9 View Post
    Well , I fixed that a couple of months ago and never uploaded the changes. Let me get v1.0.3 packaged and uploaded and then I'll post the change to get this working.
    Following is the change to the zenCssButton function in /includes/functions/html_output.php to provide the emulation required to allow the Wish List button to operate properly:
    Code:
        if ($type == 'submit'){
    // form input button
    //-bof-v1.0.3a
          if ($parameters != '') {
            // If the input parameters include a "name" attribute, need to emulate an <input type="image" /> return value
            // by adding a _x to the name parameter (thanks to paulm for providing the fix for Zen Cart v1.3.6!).  
            if (preg_match('/name="([a-zA-Z0-9\-_]+)"/', $parameters, $matches)) {
              $parameters = str_replace('name="' . $matches[1], 'name="' . $matches[1] . '_x', $parameters);
            }
            // If the input parameters include a "value" attribute, remove it since that attribute will be set to the input
            // text string.
            if (preg_match('/(value="[a-zA-Z0=9\-_]+")/', $parameters, $matches)) {
              $parameters = str_replace($matches[1], '', $parameters);
            }
          }
    //-eof-v1.0.3a
          $css_button = '<input class="' . $mouse_out_class . '" ' . $css_button_js . ' type="submit" value="' .$text . '"' . $tooltip . $parameters . ' />';
        }

  2. #2
    Join Date
    Mar 2014
    Location
    Memphis, TN
    Posts
    61
    Plugin Contributions
    0

    Default Re: CSS3 Buttons [support thread]

    Great job

    Its working!

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,903
    Plugin Contributions
    96

    Default Re: CSS3 Buttons [support thread]

    Thanks for reporting the issue!

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,903
    Plugin Contributions
    96

    Default Re: CSS3 Buttons [support thread]

    v1.0.4 is now available in the plugins. Besides correcting the issue reported by remops, this version includes DrByte's "memory exhausted" fix (http://www.zen-cart.com/showthread.p...51#post1240551) for the zen_href_link function.

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  2. SysCheck [support thread]
    By swguy in forum All Other Contributions/Addons
    Replies: 36
    Last Post: 24 Oct 2020, 05:28 AM
  3. v150 CSS Buttons for Admin [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 19
    Last Post: 24 Dec 2015, 09:13 PM
  4. goMobile Support Thread
    By steveyork136 in forum Addon Templates
    Replies: 29
    Last Post: 26 Aug 2015, 11:56 AM
  5. Wordpress On ZC [Support Thread]
    By hira in forum All Other Contributions/Addons
    Replies: 1858
    Last Post: 17 Jan 2014, 01:24 AM

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