Page 11 of 15 FirstFirst ... 910111213 ... LastLast
Results 101 to 110 of 149
  1. #101
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: CSS3 Buttons [support thread]

    Thanks for the report; I'll update the readme and stage it for any future release!

  2. #102
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: CSS3 Buttons [support thread]

    I am using this with v1.5.4 brilliant. If you are using Chrome you will find "cssbuttongenerator" in the app store
    Learning Fast.
    Eden Craft Supplies

  3. #103
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: CSS3 Buttons [support thread]

    OOOOOOOOOHHHHH Cindy.. I'm baaaaaack.. Yep adding more complexity to your life.. again..

    Trying to figure out how to add a tooltip on hover to my buttons.. For now will use the button text defines for the tooltip just to get things going.. I will probably eventually add a complete set of separate defines just for tooltips.

    I found this: http://codepen.io/cbracco/pen/qzukg

    I'm thinking I need to modify the includes/functions/html_output.php

    But not sure HOW to modify it to add the tooltip.
    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.

  4. #104
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: CSS3 Buttons [support thread]

    Quote Originally Posted by DivaVocals View Post
    OOOOOOOOOHHHHH Cindy.. I'm baaaaaack.. Yep adding more complexity to your life.. again..

    Trying to figure out how to add a tooltip on hover to my buttons.. For now will use the button text defines for the tooltip just to get things going.. I will probably eventually add a complete set of separate defines just for tooltips.

    I found this: http://codepen.io/cbracco/pen/qzukg

    I'm thinking I need to modify the includes/functions/html_output.php

    But not sure HOW to modify it to add the tooltip.
    Tee-hee, no complexity added! The tooltip functionality (although undocumented) is built-in.

    In a language/extra_definition file, just set up a construct similar to:
    Code:
    define ('CSS_BUTTON_POPUPS_IS_ARRAY', 'true');
    define ('CSSBUTTONS_CATALOG_POPUPS_SHOW_BUTTON_NAMES_TEXT', ': No title defined; see ' . __FILE__);
    $css_button_text = array ( 'button_add_to_cart.gif' => 'Click here to add the product to the cart',
                                       );
    ... and expand the array to suit. The downside is that you need to define the title text for all the buttons as any undefined button will have a title that reads something akin to:
    Code:
    button_back.gif: No title defined, see <whatever the extra_definition's file name is>

  5. #105
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: CSS3 Buttons [support thread]

    Quote Originally Posted by lat9 View Post
    Tee-hee, no complexity added! The tooltip functionality (although undocumented) is built-in.

    In a language/extra_definition file, just set up a construct similar to:
    Code:
    define ('CSS_BUTTON_POPUPS_IS_ARRAY', 'true');
    define ('CSSBUTTONS_CATALOG_POPUPS_SHOW_BUTTON_NAMES_TEXT', ': No title defined; see ' . __FILE__);
    $css_button_text = array ( 'button_add_to_cart.gif' => 'Click here to add the product to the cart',
                                       );
    ... and expand the array to suit. The downside is that you need to define the title text for all the buttons as any undefined button will have a title that reads something akin to:
    Code:
    button_back.gif: No title defined, see <whatever the extra_definition's file name is>
    Got it.. Seriously this is ALL I needed!!?? Wow this is a lot easier than what I thought!!! Thanks.. and yeah no worries about having to do this for ALL buttons.. I was planning on probably doing this for all the buttons anyway.. I shortened the buttons names in the language file (which as you know act as the title/alt for image buttons) because some were far too long and made my CSS buttons EXTRA wide.. Then I was looking at another site and saw they used tooltips with their CSS buttons.. So I thought that I could "re-purpose" the original alt titles and use them as tooltips on the CSS buttons from this module as they were more verbose and therefore more "instructive"..

    Anyway.. thanks for this.. As always.. ROCK STAR!!!!
    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.

  6. #106
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: CSS3 Buttons [support thread]

    You can also do "interesting" things like:
    Code:
    define ('CSS_BUTTON_POPUPS_IS_ARRAY', 'true');
    define ('CSSBUTTONS_CATALOG_POPUPS_SHOW_BUTTON_NAMES_TEXT', ': No title defined; see ' . __FILE__);
    $css_button_text = array ();
    switch ($current_page_base) {
      case FILENAME_ACCOUNT_EDIT:
      case FILENAME_ACCOUNT_HISTORY:
      case FILENAME_ACCOUNT_NEWSLETTERS:
      case FILENAME_ACCOUNT_NOTIFICATIONS:
      case FILENAME_ACCOUNT_PASSWORD:
        $css_button_text['button_back'] = 'Return to <em>Manage Your Account</em>';
        break;
      default:
        if (strpos ($current_page_base, FILENAME_ADDRESS_BOOK_PROCESS) !== false) $css_button_text['button_back'] = 'Return to your <em>Address Book</em>';
        else $css_button_text['button_back'] = 'Return to the previous page';
        break;
    }
    That is, you can customize the buttons' title text based on the page context.

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

    Default Re: CSS3 Buttons [support thread]

    Quote Originally Posted by lat9 View Post
    You can also do "interesting" things like:
    Code:
    define ('CSS_BUTTON_POPUPS_IS_ARRAY', 'true');
    define ('CSSBUTTONS_CATALOG_POPUPS_SHOW_BUTTON_NAMES_TEXT', ': No title defined; see ' . __FILE__);
    $css_button_text = array ();
    switch ($current_page_base) {
      case FILENAME_ACCOUNT_EDIT:
      case FILENAME_ACCOUNT_HISTORY:
      case FILENAME_ACCOUNT_NEWSLETTERS:
      case FILENAME_ACCOUNT_NOTIFICATIONS:
      case FILENAME_ACCOUNT_PASSWORD:
        $css_button_text['button_back'] = 'Return to <em>Manage Your Account</em>';
        break;
      default:
        if (strpos ($current_page_base, FILENAME_ADDRESS_BOOK_PROCESS) !== false) $css_button_text['button_back'] = 'Return to your <em>Address Book</em>';
        else $css_button_text['button_back'] = 'Return to the previous page';
        break;
    }
    That is, you can customize the buttons' title text based on the page context.
    Nice.. I'm sure I'll break some ish doing this.. One question.. this example covers the back button.. Can I do the this without blowing something up??

    Code:
    define ('CSS_BUTTON_POPUPS_IS_ARRAY', 'true');
    define ('CSSBUTTONS_CATALOG_POPUPS_SHOW_BUTTON_NAMES_TEXT', ': No title defined; see ' . __FILE__);
    $css_button_text = array ();
    switch ($current_page_base) {
      case FILENAME_ACCOUNT_EDIT:
      case FILENAME_ACCOUNT_HISTORY:
      case FILENAME_ACCOUNT_NEWSLETTERS:
      case FILENAME_ACCOUNT_NOTIFICATIONS:
      case FILENAME_ACCOUNT_PASSWORD:
        $css_button_text['button_back'] = 'Return to <em>Manage Your Account</em>';
        break;
      default:
        if (strpos ($current_page_base, FILENAME_ADDRESS_BOOK_PROCESS) !== false) $css_button_text['button_back'] = 'Return to your <em>Address Book</em>';
        else $css_button_text['button_back'] = 'Return to the previous page';
        break;
    switch ($current_page_base) {
      case FILENAME_ACCOUNT_EDIT:
      case FILENAME_ACCOUNT_HISTORY:
      case FILENAME_ACCOUNT_NEWSLETTERS:
      case FILENAME_ACCOUNT_NOTIFICATIONS:
      case FILENAME_ACCOUNT_PASSWORD:
        $css_button_text['button_forward'] = 'Return to <em>Manage Your Account</em>';
        break;
      default:
        if (strpos ($current_page_base, FILENAME_ADDRESS_BOOK_PROCESS) !== false) $css_button_text['button_forward'] = 'Return to your <em>Address Book</em>';
        else $css_button_text['button_forward'] = 'Return to the previous page';
        break;
    }
    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. #108
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: CSS3 Buttons [support thread]

    I've had sites where I've organized this file by alphabetical button-name (as indicated in your example, above) and other sites where it made more sense to organize the file by page, as below. It all depends on which way you (or whoever is going to maintain the list) find it easier to locate/verify that all the title-text values are supplied.
    Code:
    define ('CSS_BUTTON_POPUPS_IS_ARRAY', 'true');
    define ('CSSBUTTONS_CATALOG_POPUPS_SHOW_BUTTON_NAMES_TEXT', ': No title defined; see ' . __FILE__);
    $css_button_text = array ();
    switch ($current_page_base) {
      case FILENAME_ACCOUNT_EDIT:
      case FILENAME_ACCOUNT_HISTORY:
      case FILENAME_ACCOUNT_NEWSLETTERS:
      case FILENAME_ACCOUNT_NOTIFICATIONS:
      case FILENAME_ACCOUNT_PASSWORD:
        $css_button_text['button_back'] = 'Return to <em>Manage Your Account</em>';
        $css_button_text['button_forward'] = 'Go somewhere else';
        break;
      case FILENAME_ADDRESS_BOOK_PROCESS:
        $css_button_text['button_back'] = 'Return to your <em>Address Book</em>';
        break;
      default:
        $css_button_text['button_back'] = 'Return to the previous page';
        $css_button_text['button_forward'] = 'Go to the next page';
        break;
    }

  9. #109
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: CSS3 Buttons [support thread]

    Quote Originally Posted by lat9 View Post
    I've had sites where I've organized this file by alphabetical button-name (as indicated in your example, above) and other sites where it made more sense to organize the file by page, as below. It all depends on which way you (or whoever is going to maintain the list) find it easier to locate/verify that all the title-text values are supplied.
    Code:
    define ('CSS_BUTTON_POPUPS_IS_ARRAY', 'true');
    define ('CSSBUTTONS_CATALOG_POPUPS_SHOW_BUTTON_NAMES_TEXT', ': No title defined; see ' . __FILE__);
    $css_button_text = array ();
    switch ($current_page_base) {
      case FILENAME_ACCOUNT_EDIT:
      case FILENAME_ACCOUNT_HISTORY:
      case FILENAME_ACCOUNT_NEWSLETTERS:
      case FILENAME_ACCOUNT_NOTIFICATIONS:
      case FILENAME_ACCOUNT_PASSWORD:
        $css_button_text['button_back'] = 'Return to <em>Manage Your Account</em>';
        $css_button_text['button_forward'] = 'Go somewhere else';
        break;
      case FILENAME_ADDRESS_BOOK_PROCESS:
        $css_button_text['button_back'] = 'Return to your <em>Address Book</em>';
        break;
      default:
        $css_button_text['button_back'] = 'Return to the previous page';
        $css_button_text['button_forward'] = 'Go to the next page';
        break;
    }
    Okay.. I'm gonna play..

    SLIGHT off topic (but kinda related) question:
    Is there similar code for the admin CSS buttons???
    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.

  10. #110
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: CSS3 Buttons [support thread]

    Quote Originally Posted by DivaVocals View Post
    Okay.. I'm gonna play..

    SLIGHT off topic (but kinda related) question:
    Is there similar code for the admin CSS buttons???
    Kinda-sorta-not-exactly-related answer: Nope

 

 
Page 11 of 15 FirstFirst ... 910111213 ... LastLast

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 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

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