If this is your first visit, check our documentation. To post, register or login.

CSS buttons v2.x

Started by paulm on 19 Sep 2006, 7:55 PM · Views: 41,343

Results 21 to 40 of 159
12 Nov 2006, 9:27 PM
#21
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Post #21 by s_mack

Hey Paul...

Ok, so its just mine. I can't figure it out... tres weird.

If I comment out the parameters it works fine... its something with those parameters that's doing it. I can't even see how it is possible... I've put in a debugging routine, and the page that loads the button is accessed once only, but ALL the routines that occur after you hit the button are run twice. Its like I'm hitting button two times. But only with css buttons (yours or my earlier hack)... the stock css buttons works fine. But now that I know its me, I'll continue to search for what I've done.

  • Steven
12 Nov 2006, 9:55 PM
#22
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Post #22 by paulm

Hi Steven,

I assume you've have taken a close look at the little hack (the code I posted above) that makes the buttons act like image buttons? It really is a hack, so maybe that part interferes with your modifications? The idea is that that part of the code looks for a name="value" in the $parameters and, if found, it should convert it to name_x="value".

18 Nov 2006, 6:18 PM
#23
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Post #23 by blessisaacola

jettrue:

Anyone else noticing padding differences in IE for the submit buttons?

I've added just a tad of a top and bottom padding for the buttons, as I want them a little taller, but in IE, there is much more of a top padding than a bottom padding. I use this setting for padding: padding:0.2em 0.5em;.... yet even with the standard padding:0 0.5em;, there is still more top padding than bottom padding in IE. You can see what I mean here:
http://www.zencart136.jadetrue.com/index.php?main_page=product_info&products_id=2

(look at the add to cart vs. tell a friend and write review)

Your site is throwing an error: 'document.getElementById(...)' is null or not an object

21 Nov 2006, 2:01 AM
#24
turtledove avatar

turtledove

Zen Follower

Join Date:
May 2006
Posts:
182
Plugin Contributions:
0

Post #24 by turtledove

Are there any Live Sites using this mod that I can visit?

I want to see a visual example before i install.

Thanks!

21 Nov 2006, 9:07 AM
#25
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Post #25 by paulm

jettrue posted an url a couple of posts back: http://www.zencart136.jadetrue.com/

But actually this mod does not really have a certain look. The look depends on the CSS you edit/add, unless you decide with the default of course (not recommended). To (re)create image like buttons is harder than simple and clear CSS buttons (personally I like the latter better anyway ;-) ).

21 Nov 2006, 3:59 PM
#26
turtledove avatar

turtledove

Zen Follower

Join Date:
May 2006
Posts:
182
Plugin Contributions:
0

Post #26 by turtledove

Oh, so it'll only work on the tabs?

Is there a mod to create CSS buttons to the categories in the sideboxes?

21 Nov 2006, 6:17 PM
#27
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Post #27 by s_mack

tabs?

Err... this is for "buttons", not menu items. Like the "submit" and "buy now" and "cancel", etc etc.

  • Steven
22 Nov 2006, 12:34 AM
#28
turtledove avatar

turtledove

Zen Follower

Join Date:
May 2006
Posts:
182
Plugin Contributions:
0

Post #28 by turtledove

you call it buttons, i call it tabs...w/e

so is there anyone that can do this to the category sideboxes?

22 Nov 2006, 12:41 AM
#29
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Post #29 by s_mack

no... you call them tabs and I call them tabs... if we are talking about tabs. I wasn't picking on your wording... I was telling you that you are mistaken in what you thought this contrib did. I still don't think you get it.

This has nothing to do with the "tabs" across the top of the demo page shown... it has to do with the "buttons" found on various pages that you click to submit forms, etc.

  • Steven

edit

Maybe this will help: http://www.zencart136.jadetrue.com/index.php?main_page=contact_us

look at the "back" and "send now" buttons below the form... that is what this contribution is for.

22 Nov 2006, 5:44 AM
#30
turtledove avatar

turtledove

Zen Follower

Join Date:
May 2006
Posts:
182
Plugin Contributions:
0

Post #30 by turtledove

s_mack:

no... you call them tabs and I call them tabs... if we are talking about tabs. I wasn't picking on your wording... I was telling you that you are mistaken in what you thought this contrib did. I still don't think you get it.

This has nothing to do with the "tabs" across the top of the demo page shown... it has to do with the "buttons" found on various pages that you click to submit forms, etc.

  • Steven

edit

Maybe this will help: http://www.zencart136.jadetrue.com/index.php?main_page=contact_us

look at the "back" and "send now" buttons below the form... that is what this contribution is for.

Your previous reply already implied that the contrib was for the "send" button, etc. No need for repeats.

22 Nov 2006, 5:53 AM
#31
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Post #31 by s_mack

If we're getting nitpicky, then there no need to quote (in its entirety no less) the message directly above your reply.

But clearly I needed to repeat myself, because clearly you didn't understand. If you did, then you didn't state it very well.

Don't ask for help if you're going to get snippy when someone gives it. You didn't know what the contrib was for, and I clued you in.

  • Steven
1 Dec 2006, 5:15 PM
#32
djsap avatar

djsap

New Zenner

Join Date:
Nov 2006
Posts:
2
Plugin Contributions:
0

Post #32 by djsap

Hey i was just wondering why the buttons do not look uniform, for example, the add to cart button has more padding then the other buttons.

1 Dec 2006, 5:42 PM
#33
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Post #33 by s_mack

Its been asked before... some buttons are "submit" type buttons where they are actually submitting an HTML form. Others are simply links. There must be something in css that you can do to make them equal, but for the life of me I couldn't figure it out. It bugged me enough, I actualy ended up deleting most of the link buttons, because they were usually just "back" buttons... and that's what the browser's back button is for.

If anyone does figure this out, I'd like to know too. I don't really care any more, but man that was frustrating.

  • Steven
1 Dec 2006, 7:03 PM
#34
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Post #34 by paulm

If anyone does figure this out, I'd like to know too. I don't really care any more, but man that was frustrating.:laugh: :lookaroun :cry: Actually it's exactly how it went here Steven. Although I think the current version generates buttons that are acceptable, and more or less stable, the result is not pixel perfect.

One of the other problems I encounter sometimes, is that the size of the buttons depend on other "surrounding" HTML/CSS. Not sure if this is typical for Zen Cart or that it's a general problem with dynamic CSS buttons.

As I mentioned before (in this thread?) examples of CSS buttons found on the internet are most of the time static (a.o. fixed with and height, and not used in different "surroundings") and not about both links and form buttons (as mentioned by Steven).

Nevertheless I still like CSS buttons over image buttons myself. I rather edit a couple of CSS lines to change the size color (or whatever) to make a particular button look different, than create a new image button everytime I need a new or different button. (but of course this is mostly about personal preference ;-) )

And please note that the default Zen Cart CSS buttons are different (less stable width and padding tmho) than the buttons generated by this contribution!

1 Dec 2006, 7:23 PM
#35
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Post #35 by s_mack

You're right.. from a fresh 1.36 install with your contrib, the effect was very much minimized. On mine (very much NOT fresh 1.3.6) It was grotesquely obvious there was a difference in the buttons. And I never could understand why. I stripped the css down as much as I could to figure it out, but eventually just gave up.

My reason to use css buttons was different than yours. My goal was to make an elasticly rendered site so that visually-impaired people could increase the font size and still see my site the way it was intended. The graphical buttons make that impossible so I went toward css...

until I realized it wasn't impossible with graphical buttons.. just difficult :)

I'm there though. My site is 99% elastic! You can increase/decrease and zoom in/out to your heart's content (and browser's limits) and my site will stay exactly as it is intended.... formatting doesn't get screwed up because images now grow and shrink along with the text... something many "authorities" on the web say is impossible :)

DOWN WITH PIXELS!!

  • Steven
1 Dec 2006, 7:39 PM
#36
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Post #36 by paulm

s_mack:

My goal was to make an elasticly rendered site so that visually-impaired people could increase the font size and still see my site the way it was intended.That is why I changed the CSS buttons from pixel to em sizes in the later versions, although I certainly had not thought about this at first (and of course it's easy to switch back to pixel sizes if preferred).

until I realized it wasn't impossible with graphical buttons.. just difficult :)

I'm there though. My site is 99% elastic!:thumbsup: (must admitt I gave it a shot recently too, but certainly am not ready for it yet :( ).

8 Dec 2006, 5:56 AM
#38
dynaguy avatar

dynaguy

New Zenner

Join Date:
Mar 2006
Posts:
62
Plugin Contributions:
0

Post #38 by dynaguy

Hello, I installed this css buttons and I have a question:

The button_update_cart button use the ALT but it's too long:
"change your quantity by highlighting the number in the box, correcting the quantity and clicking this button."

I try to locate the ALT text and couldn't find it. It is not in the /includes/languages/english/button_names.php. I also notice the demo site use the image button instead. I still want a simple css button. Could you please tell me where I can edit the text?

Thanks a lot!

8 Dec 2006, 7:51 AM
#39
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Post #39 by paulm

I usually forget such things about 2 seconds after I finished editting. Use software to search all files in your local copy (which you should have anyway), or use the Zen Cart admin tool to look it up: /admin/developers_tool_kit.php (bottom field and select Catalaog (and/or Admin) as required)

8 Dec 2006, 6:59 PM
#40
dynaguy avatar

dynaguy

New Zenner

Join Date:
Mar 2006
Posts:
62
Plugin Contributions:
0

Post #40 by dynaguy

thanks for reply.

which software do you recomand to search all files in local copy?

I tried use the developers tool kit in admin to search button_update_cart already, but no luck! It did not show me where is the defination.