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 61 to 80 of 159
10 Apr 2007, 8:47 AM
#61
paulm avatar

paulm

Totally Zenned

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

Post #61 by paulm

Thanks Paul :thumbsup:

A fixed version (2.61) is attached to this post, including your new admin stylesheet (added to extras/ folder) and some minor readme changes (to extras/css_hack.txt).

2.60 users only need to fix the typo, as explained by funky

17 May 2007, 3:44 PM
#62
miriam_t avatar

miriam_t

New Zenner

Join Date:
May 2007
Posts:
38
Plugin Contributions:
0

Post #62 by miriam_t

Hi,

perhaps this is easy for you cracks?!

During installation of this cssbuttons.sql I got the following MySQL-Error:

INSERT INTO configuration_group
VALUES ( NULL , 'CSS Buttons', 'The settings for the CSS buttons are stored here (please also enable "admin :: Configuration :: Layout Settings :: CSS Buttons", else the search buttons will not be converted to css buttons).', @sortorder +1, 1
);

       **MySQL notices: ** 

#1136 - Column count doesn't match value count at row 1

I think it is due to line 1 in the cssbuttons.sql:

SELECT @sortorder:=max(sort_order)
FROM configuration_group;

INSERT INTO configuration_group VALUES (NULL , 'CSS Buttons', 'The settings for the CSS buttons are stored here (please also enable "admin :: Configuration :: Layout Settings :: CSS Buttons", else the search buttons will not be converted to css buttons).', @sortorder+1, 1);
SELECT @cssbuttonsid:=max(configuration_group_id)
FROM configuration_group;

What should I change to fix this?

Thanks in advance!

Best regards,
Miriam

14 Jun 2007, 3:26 PM
#63
paulm avatar

paulm

Totally Zenned

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

Post #63 by paulm

Can you replace the first part (up to #SELECT @cssbuttonsid;) of the sql by this

# "CSS buttons advanced" settings
# 2007/06/14
# use the Zen sql patch tool, and copy and paste into the text area

SELECT @sortorder:=max(sort_order)
FROM configuration_group;

INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible)
VALUES (NULL , 'CSS Buttons', 'The settings for the CSS buttons are stored here (please also enable "admin :: Configuration :: Layout Settings :: CSS Buttons", else the search buttons will not be converted to css buttons).', @sortorder+1, 1);
SELECT @cssbuttonsid:=max(configuration_group_id)
FROM configuration_group;

?

And tell me if it helps?

5 Jul 2007, 3:58 PM
#64
p_smart_virgin_net avatar

p_smart_virgin_net

New Zenner

Join Date:
Mar 2007
Posts:
2
Plugin Contributions:
0

Post #64 by p_smart_virgin_net

Hi Paul,

I'm a novice zenner and have successfully installed, configured and customised your CSS-buttons_v2.34 and am very happy with the result. Thanks for the many months of work you have put into this.

The resulting CSS buttons are at www.clandonpottery.co.uk/Shop

What I can't work out is the origin of the CSS button text for 8 of my 18 CSS buttons. These are:

search. add selected item . tell a friend . refresh . add to basket . continue and confirm order.

I simply want to put a capital letter at the start of each but just cannot find the source of these texts. Can you direct me?

Also, I would like to substitute the DELETE button from the Shopping Cart for a CSS button but can't work out how to do this.

Your suggestions appreciated.

Regards,
Peter

27 Aug 2007, 11:22 AM
#65
paulm avatar

paulm

Totally Zenned

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

Post #65 by paulm

Something I totally overlooked is that it may be smart to replace the "<input />" buttons code by "<button></button>". It would probably offer better and more flexible cross browser compatible layout control.

HTML <button> tag
Definition and Usage

Defines a push button. Inside a button element you can put content, like text or images. This is the difference between this element and buttons created with the input element.(source http://www.w3schools.com/tags/tag_button.asp)

22 Oct 2007, 3:26 AM
#66
jhs avatar

jhs

New Zenner

Join Date:
Sep 2007
Posts:
14
Plugin Contributions:
0

Post #66 by jhs

Hello,

I wonder if this contribution is able to do roll-over image buttons.
If yes, how to define them in the CSS?

Thanks

26 Oct 2007, 7:44 PM
#68
robraymond avatar

robraymond

New Zenner

Join Date:
Oct 2007
Posts:
28
Plugin Contributions:
0

Post #68 by robraymond

Well I seem to have fixed it, I commented out:

line-height: 20px;
height: 20px;

Now everything looks great. Is there a reason why I need those lines? Will I run into a problem somewhere else?

Rob

26 Oct 2007, 8:57 PM
#69
paulm avatar

paulm

Totally Zenned

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

Post #69 by paulm

Those lines were added to improve cross browser support in some cases (tested on IE6 and FF at the time). But if the size and alignment are OK now you can safely leave those lines commented out.

When you change the font-size or want to change the button height or padding, you might need to uncomment and adjust those settings.

(note that some buttons are links and others are inputs, both need to be checked)

26 Oct 2007, 10:24 PM
#70
robraymond avatar

robraymond

New Zenner

Join Date:
Oct 2007
Posts:
28
Plugin Contributions:
0

Post #70 by robraymond

Thanks for the reply

It was input buttons I was having problems with, the link buttons were OK. Seems to be another IE bug, everything was fine in Firefox.

Rob

3 Jan 2008, 7:59 PM
#71
busymom avatar

busymom

New Zenner

Join Date:
Jul 2007
Posts:
61
Plugin Contributions:
0

Post #71 by busymom

I was "migrating" my template and mods from a 1.3.7.1 cart to a new install of version 1.3.8a and I've obviously done something weird with my CSS_buttons mod code or SQL. The buttons themselves seem to be functioning fine in the new install, but the Configuration->CSS Buttons page is empty when I go into admin. Does anyone recognize this symptom enough to guide me in a direction to look? I did the SQL patching directly through phpMyAdmin and remembered to make all the prefix changes as far as I know. It's possible I did something in a wrong chronological order, though.

TIA Karen

6 Feb 2008, 8:46 PM
#72
chadderuski avatar

chadderuski

Totally Zenned

Join Date:
Apr 2006
Location:
Dark Side of the Moon
Posts:
986
Plugin Contributions:
0

Post #72 by chadderuski

Trying something DIFFERENT!

What I want to do is use the sliding door method for moving the background image on a CSS button to respond to button state (normal, hover, active).

This is what I am talking about:

http://chicagophoto.net/btest

I have tried to style the stock zencart button css file, and also tried Paul's CSS Buttons mod. Neither are working entirely.

Ideas / Suggestions?

-chaddro

26 Mar 2008, 4:30 AM
#73
funkey avatar

funkey

New Zenner

Join Date:
Jul 2005
Posts:
85
Plugin Contributions:
0

Post #73 by funkey

busyMom:

I was "migrating" my template and mods from a 1.3.7.1 cart to a new install of version 1.3.8a and I've obviously done something weird with my CSS_buttons mod code or SQL. The buttons themselves seem to be functioning fine in the new install, but the Configuration->CSS Buttons page is empty when I go into admin. Does anyone recognize this symptom enough to guide me in a direction to look? I did the SQL patching directly through phpMyAdmin and remembered to make all the prefix changes as far as I know. It's possible I did something in a wrong chronological order, though.

TIA Karen

Just to clarify -- are you trying to upgrade an existing Zen-Cart database with the SQL for CSS buttons, or is this a totally new database where you're installing CSS buttons for the first time?

I ask because i've only ever seen a bug like that when installing the SQL patch over an existing install with a different database prefix. (ie, an existing db called zen-cart had CSS buttons installed, the user changed hosts to one that used a prefix and at some point in their install, re-ran the SQL code via the Zen-Cart patch installation utility)

We eventually fixed it by running the uninstall SQL in the patch installation utility, then re-running the install SQL again -- paulm did a really good job making his code automatically detect prefixes, so it worked out of the box.

27 Mar 2008, 5:19 PM
#74
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Post #74 by helpme

After I make the changes and upload the functions/html file my site goes blank.....I am running 1.3.8a on a test site.
Thanks!
https://www.mommyandbabyessentials.com/test

14 May 2008, 7:11 PM
#75
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Post #75 by khopek

helpme:

After I make the changes and upload the functions/html file my site goes blank.....I am running 1.3.8a on a test site.
Thanks!
https://www.mommyandbabyessentials.com/test

My site goes blank as well! The minute I replace the lines of code in the includes/functions/html_output.php file. I am also running 1.3.8a on a test site with no mods installed.

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.

This is another problem I am having...

In FF the normal buttons will not display at the correct height. With FF Dev Tools you can see the actual button div is changing height, but the background color is only remaining directly behind the text at 12px, instead of showing up at 20px. The input buttons will display correctly.

I tried specifying a height in the 'span.cssButton, span.cssButtonHover' classes, but to no avail...

In IE, everything is displaying fine.

14 May 2008, 7:17 PM
#76
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #76 by drbyte

Finding the errors causing blank pages: https://www.zen-cart.com/tutorials/index.php?article=82

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 May 2008, 8:25 PM
#77
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Post #77 by khopek

Well see, it not all the pages that are going blank. The Contact Us Page just completely gets rid of all buttons, and the Products Pages are completely gone.

Also, seems it may be the template causing the buttons to display wrong... I tried a different one, and they show up perfect.:shocking:

14 May 2008, 9:59 PM
#78
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Post #78 by helpme

What templete are you using? I am using Future zen.

14 May 2008, 10:40 PM
#79
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Post #79 by khopek

I was using mostleygrey, then decided to just start from scratch off off the Default Template...

I DID figure out that to get the normal buttons to display in FF the same as the input buttons I had to remove this from the css_button stylesheet:

td .cssButton, td .cssButtonHover{
/* prevents buttons taking the full width of table cells */
display: inline;
}

That wasn't a problem with the Apple Zen template but it was for the Default...

4 Dec 2008, 4:58 PM
#80
chilsta avatar

chilsta

New Zenner

Join Date:
Nov 2008
Location:
Planet E
Posts:
4
Plugin Contributions:
0

Post #80 by chilsta

What got me in trouble here (and caused blank pages) was the fact that these files:
includes/functions/extra_definitions/css_buttons.php
includes/functions/languages/english/extra_definitions/css_buttons_popups.php

...are in a folder called catalog- you have to make sure to upload them to the right place and not just upload the catalogue folder.