Results 1 to 10 of 159

Threaded View

  1. #12
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: CSS buttons v2.x

    Ok, this will *really* be the last version for a while

    There has been no change in functionality, just another small (but important?) cleanup that I should have done a long time ago.....

    Except for loading the sql and copying the files, the whole installation now is reduced to:
    Open includes/functions/html_output.php (do not forget to backup first!)

    a) find(1.3.6 line 267):

    if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30) return zenCssButton($image, $alt, 'submit', $sec_class /*, $parameters = ''*/ );

    replace by:
    // bof css buttons (submit)
    if (css_button_allowed($image) === TRUE) return css_button($image, $alt, 'submit', $parameters);
    // eof css buttons

    b) find (1.3.6 line 293 before edits):
    if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') return zenCssButton($image, $alt, 'button', $sec_class, $parameters = '');

    replace by:
    // bof css buttons (button)
    if (css_button_allowed($image) === TRUE) return css_button($image, $alt, 'button', $parameters);
    // eof css buttons
    This should also make it more flexible, and even easier to upgrade if needed.
    Last edited by paulm; 25 Nov 2006 at 09:54 PM.

 

 

Similar Threads

  1. v151 Disable CSS buttons for some buttons and not others
    By longstockings in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 16 Nov 2013, 04:00 PM
  2. Help with using css buttons, "update cart' does not use the css buttons?
    By trinitypres in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Jan 2011, 04:34 PM
  3. CSS buttons not fully working for some buttons in my shopping_cart page
    By chasery in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 13 Apr 2010, 07:37 PM
  4. Using CSS Buttons yet still see graphic buttons on some pages
    By newbie73 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Jul 2007, 12:51 PM

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