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 101 to 120 of 159
22 Mar 2009, 11:23 PM
#101
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Post #101 by jettrue

I've applied the fix a few posts above, but all of my "submit" buttons aren't transforming.

Perhaps I've missed something, can you give me a tip on where to look if all submit buttons are not working? I do have the "Configuration", "Layout Settings", "Css Buttons" turned on.

http://www.applezen.sagefish.com

22 Mar 2009, 11:58 PM
#102
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Post #102 by jettrue

jettrue:

I've applied the fix a few posts above, but all of my "submit" buttons aren't transforming.

Perhaps I've missed something, can you give me a tip on where to look if all submit buttons are not working? I do have the "Configuration", "Layout Settings", "Css Buttons" turned on.

http://www.applezen.sagefish.com

Nevermind, I figured it out, I didn't hide this line in html_output.php:

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

23 Mar 2009, 3:02 AM
#103
sawhorse avatar

sawhorse

Zen Follower

Join Date:
Oct 2007
Location:
Kentucky - USA
Posts:
425
Plugin Contributions:
0

Post #103 by sawhorse

Glad you got it!

Sawhorse

ZC 1.3.8a; Addons: Admin Profiles, Ty Package Tracker; Swap Images via MouseOver or Click, Smart Backgrounds; Printable Price List; CSS buttons; Contact Us - Add Subject; Template: Self Constructed; Site: http://sawhorsejewelry.com

25 Mar 2009, 3:02 PM
#104
paulm avatar

paulm

Totally Zenned

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

Post #104 by paulm

Sawhorse:

Glad you got it!Me too :D

8 May 2009, 5:35 PM
#105
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,024
Plugin Contributions:
2

Post #105 by dw08gm

Just a few queries concerning the 1.38.a installation of this module:

A. Do any files in cssbuttons_2-6-4\extras need to be transfered, and if so where to - extras, admin\includes, includes?

I gather the html_output-138.php corresponds to that in includes\functions, however, WinMerge reports this file using different carriage returns compared to normal. Is this an issue.

B. Clarity required in readme-admin.txt
4) Copy file
1 files is added, none overwritten (unless you are upgrading an older css buttons version maybe)
Copy the contents of the admin dir included in the css_buttons zipfile to your shop admin directory.

There are 2 files is the admin section and I have uploaded both. But am I missing something here?

  1. Changes to (admin\includes\functions) html_output.php

I gather this last point should be 5)?

C. Clarity required in includes\templates\MyTemplate\css\stylesheet_css_buttons.css reads
Line 9 reads
background: #b00 !important; /* !important to retain the background color after auto form field coloring fix */

Why is it important to retain the background color and what is the auto form field coloring fix.

Can I not change #b00 to a color of my choice?

D. Having installed the mod, I tried to changed the font and background color schemes to Red on White (normal) and White on Red (hover), however, while the background color changes, the font color always stays Black for both normal and hover regardless of the multitude of things I have tried.

TIA

8 May 2009, 7:53 PM
#106
paulm avatar

paulm

Totally Zenned

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

Post #106 by paulm

A. Do any files in cssbuttons_2-6-4\extras need to be transfered, and if so where to - extras, admin\includes, includes?There is no need. I mainly included those files for (my own) convenience. If the usage is unclear it's better not to use those files.

B. Clarity required in readme-admin.txt
4) Copy file
1 files is added, none overwritten (unless you are upgrading an older css buttons version maybe)
Copy the contents of the admin dir included in the css_buttons zipfile to your shop admin directory.

There are 2 files is the admin section and I have uploaded both. But am I missing something here?Looks like I did it again... An older version included only one admin file, and it looks like I have not updated the readme-admin.txt accordingly :blush:

  1. Changes to (admin\includes\functions) html_output.php

I gather this last point should be 5)?:thumbsup:

Clarity required in includes\templates\MyTemplate\css\stylesheet_css_buttons.css reads
Line 9 reads
background: #b00 !important; /* !important to retain the background color after auto form field coloring fix */

Why is it important to retain the background color and what is the auto form field coloring fix.Ouch. It is related to a fix to undo a google toolbar feature that has (or had?) the annoying habit of changing the background of form fields to yellow under certain circumstances. I have forgotten the details of the fix, but you can safely change the color to you likings.
(!important does not mean it's necessarily important, but it makes the style override other styles, including in document and inline styles)

D. Having installed the mod, I tried to changed the font and background color schemes to Red on White (normal) and White on Red (hover), however, while the background color changes, the font color always stays Black for both normal and hover regardless of the multitude of things I have tried.Strange. Maybe you have conflicting styles in another stylesheet? An url might help.

3 Aug 2009, 5:32 AM
#107
kachinas avatar

kachinas

New Zenner

Join Date:
Jan 2009
Location:
Arizona
Posts:
24
Plugin Contributions:
0

Post #107 by kachinas

I'm about to add this CSS mod to my website, and have been reading everything. I found the exchange with Sawhorse very informative, and love her CSS buttons!

My question is this. I just installed the Security Patch on my site as instructed with the changes recommended in the html_output.php

I'm assuming this CSS Mod was done before that, unless the patch is already in the html_output.php Otherwise, I'm going to have to make changes on the one already there or loose the security patch.

I'm anxious to get started! I just thought this would be something else to add to your list!

Thanks! I have two small sites to add CSS to, and will be sure to donate for this.
Sandy
Sandy

4 Aug 2009, 2:26 AM
#108
sawhorse avatar

sawhorse

Zen Follower

Join Date:
Oct 2007
Location:
Kentucky - USA
Posts:
425
Plugin Contributions:
0

Post #108 by sawhorse

kachinas:

My question is this. I just installed the Security Patch on my site as instructed with the changes recommended in the html_output.php

I'm assuming this CSS Mod was done before that, unless the patch is already in the html_output.php Otherwise, I'm going to have to make changes on the one already there or loose the security patch.

Just to let you know the Security Patch has no effect on this mod. It should work just fine. It does on my site.

PS. Thanks for the complement on my CSS buttons.

Sawhorse

ZC 1.3.8a; Addons: Admin Profiles, Ty Package Tracker; Swap Images via MouseOver or Click, Smart Backgrounds; Printable Price List; CSS buttons; Contact Us - Add Subject; Template: Self Constructed; Site: http://sawhorsejewelry.com

11 Aug 2009, 2:36 AM
#109
kachinas avatar

kachinas

New Zenner

Join Date:
Jan 2009
Location:
Arizona
Posts:
24
Plugin Contributions:
0

Post #109 by kachinas

I have three very small new ecommerce sites, and decided to try to the CSS mod to the smallest site first. I was
thrilled to see that at least the category portion seems to have loaded fine.

I have one free download product to see if the css buttons worked through checkout. However, in going through checkout, there was one extremely long button that pushed the page alignment out completely. It said
"Change your Quantity by highlighting the number in the box, correcting the quantity and clicking this button"

I thought I saw this question in the forum, but never saw an answer, so I combed the archives, and looked through button_names, etc, and can't locate it.

I even tried to enter the phrase in the developers tool kit, but nothing. The only other problem is that the Download button isn't long enough for the "Download" text. I sure would appreciate a nudge in the right direction.

Thanks so much. The buttons are such an improvement!

Sandy

11 Aug 2009, 3:05 AM
#110
sawhorse avatar

sawhorse

Zen Follower

Join Date:
Oct 2007
Location:
Kentucky - USA
Posts:
425
Plugin Contributions:
0

Post #110 by sawhorse

Try these locations:

/includes/languages/english/[MY TEMPLATE]/icon_names.php
/includes/tempates/[MY TEMPLATE]/css/stylesheet_css_buttons.css
/includes/languages/english/extra_definitions/[MY TEMPLATE]/css_buttons_popups.php

Sawhorse

ZC 1.3.8a; Addons: Admin Profiles, Ty Package Tracker; Swap Images via MouseOver or Click, Smart Backgrounds; Printable Price List; CSS buttons; Contact Us - Add Subject; Template: Self Constructed; Site: http://sawhorsejewelry.com

11 Aug 2009, 9:01 AM
#111
paulm avatar

paulm

Totally Zenned

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

Post #111 by paulm

kachinas:

"Change your Quantity by highlighting the number in the box, correcting the quantity and clicking this button"

When I search all files (bottom of the page) using de developers toolkit for Change your quantity by highlighting I get:

Searching 918 files ... for: Change your quantity by highlighting

/home/p/domains/beterelektro.nl/public_html/includes/languages/english/icon_names.php

Line #22 : define('ICON_UPDATE_ALT', 'Change your quantity by highlighting the number in the box, correcting the quantity and clicking this button.');

Match Lines found: 1

In general: if a search fails try a smaller part of the phrase and search all files.

12 Aug 2009, 12:14 AM
#112
kachinas avatar

kachinas

New Zenner

Join Date:
Jan 2009
Location:
Arizona
Posts:
24
Plugin Contributions:
0

Post #112 by kachinas

Thanks so much to Paul & to Sawhorse. I hadn't thought of the that page, and it works great. I love these buttons!

Thanks again, soooo much!
Sandy

15 Aug 2009, 7:07 PM
#113
kachinas avatar

kachinas

New Zenner

Join Date:
Jan 2009
Location:
Arizona
Posts:
24
Plugin Contributions:
0

Post #113 by kachinas

Paul,
I installed your CSS mod on one of my sites, and it works great. The buttons are such an improvement. My only real problem was what appears to be previously noted, my gv edit doesn't isn't accessible. I have 1.38a new install, with only the security patch and css added. I had installed both the catalog and admin side.

However, as I so loved the buttons, I decided to add it to my other site, but not install the admin portion. The buttons work great, installation was a snap, and I do NOT have the gv edit button problem on that site at all!

Somehow, it appears the problem is in the admin portion.

Just wanted to let you know for reference in case it can help others. I can work around the problem on the first site as it appears this is something being worked on. But I hadn't seen anyone point out this anomaly.

Thanks so much for the great css buttons!

Sandy

However, I

6 Oct 2009, 10:14 PM
#114
netelb avatar

netelb

New Zenner

Join Date:
Oct 2009
Posts:
1
Plugin Contributions:
0

Post #114 by netelb

Hi everybody,

I have some problems with the mod and i hope you could help me.

I have copied both lange folder and rename them. Now i have english spanish and german.
In English works everything fine.

But in German it still shows me the old buttons. And in Spanish no Buttons :shocking:

Please help this mod is brillant and it would be great to have it working in all language.

Saludos

Netelb

28 Nov 2009, 3:53 PM
#115
sawhorse avatar

sawhorse

Zen Follower

Join Date:
Oct 2007
Location:
Kentucky - USA
Posts:
425
Plugin Contributions:
0

Post #115 by sawhorse

The only information I can give you is found in the CSS_read_me.txt as follows: > The CSS files are sent to the browser in this order: (and alphabetically within each case of more than one match):

         style*.css   // are always loaded and at least ONE should contain site-wide properties.

language_stylesheet.css // changes to ALL pages, when that language is used

      page_name.css   // changes to one page 

language_page_name.css // changes to one page, when that language is used

        c_??_??.css   // changes to all info pages in a category

language_c_??_??.css // changes to all info pages in a category, when that language is used

           m_??.css   // changes to a manufacturer's listing page

  language_m_??.css   // changes to a manufacturer's listing page, when that language is used

           p_??.css   // changes to a product's info page

  language_p_??.css   // changes to a product's info page, when that language is used

         print*.css   // printer-friendly global usage site-wide changes for printing-only

The 'stylesheet.css' always loads first and should contain the bulk of your CSS selectors. Each file loaded takes priority over previously loaded file(s). To save loading time, only new selectors or selectors whose properties you wish to change should be in the optional CSS files. You can have different overrides for the same page, in different languages, because the two would never be called at the same time.

If someone selected the French language on your site, the 'french_stylesheet.css' would also be loaded. It should only contain the site-wide changes you want to make to 'stylesheet.css'. For example, change a 'background-image' for your French customers.

If someone went to any of the other pages, that page's CSS file would be loaded. Possibly you want different 'background-image' & 'background-color' on each of 'page_x' pages. Possibly you do not want a border around '.plainBox' most of the time, but on a couple of pages you do... and on one of those pages you want it in black and the other in red.

Possibly you created a NEW tag and did a <span class="newtag"> in your Privacy Statement. It is defined in only one CSS file, 'german_privacy.css' as '.newtag { text-transform: uppercase }' Because, in Germany, that phrase must be in all CAPS, but not in other countries.

Use your CSS files and the standard tags as much as possible, just change their properties when needed. If possible, DON'T HACK the core code. Use your CSS files to do the work for you. When the style coding has been removed from the ZenCart code and people have to decide if they want to go without the upgrade or undo all their hacks and finally learn about CSS... your site will still be up and running.

Additional information is contained in the 'read_me' file in the common folder.

Juxi Zoza

03/15/05

Sawhorse

ZC 1.3.8a; Addons: Admin Profiles, Ty Package Tracker; Swap Images via MouseOver or Click, Smart Backgrounds; Printable Price List; CSS buttons; Contact Us - Add Subject; Template: Self Constructed; Site: http://sawhorsejewelry.com

11 Feb 2010, 7:52 PM
#116
nickp avatar

nickp

New Zenner

Join Date:
Mar 2009
Posts:
34
Plugin Contributions:
0

Post #116 by nickp

I wan't to have some buttons with a different color, but I can't seemed to succees with it.
Tried adding 'background-color: #xxxxxx;' to a specific button.

How can I make it work?

Regards,
Nick

11 Feb 2010, 8:01 PM
#117
paulm avatar

paulm

Totally Zenned

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

Post #117 by paulm

Did you remove "!important" from the default background setting?

(edit: if that does not help do you have an url so i can take a look?)

11 Feb 2010, 9:47 PM
#118
nickp avatar

nickp

New Zenner

Join Date:
Mar 2009
Posts:
34
Plugin Contributions:
0

Post #118 by nickp

Yes, succes.
Missed it in the readme or this thread somewhere... but thank you, Paul.

26 Feb 2010, 8:57 PM
#119
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

Post #119 by tlyczko

I've just discovered this mod.
I already know how to modify html_output.php to render all css buttons in ems...email or PM me if you want more info on this topic.
I notice the buttons stylesheet in this mod still uses pixels.
Has anyone successfully got this buttons stylesheet to work correctly with EMS instead of px for the .cssButton class??
If so, how?? Meanwhile I'll experiment on my own...
Thank you, Tom

3 Mar 2010, 3:23 PM
#120
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

Post #120 by tlyczko

How do I diagnose why ONLY the 'Buy Now' buttons are not given CSS buttons??

I already commented out the two strtolower lines in html_output.php.

Thank you, Tom