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 41 to 60 of 159
29 Dec 2006, 1:45 AM
#41
three_sisters avatar

three_sisters

Zen Follower

Join Date:
Nov 2006
Location:
Indiana
Posts:
188
Plugin Contributions:
0

Post #41 by three_sisters

Well, I guess I did something wrong. I installed the css button mod... did everything according to the readme.txt (so I thought) and the settings in admin>configuration>layout settings are not changed at all. I can't enable the "Automaticly load image buttons if found" because it's not there. And further more, I can't even turn off the css buttons. They are there regarless of whether I select yes or no under enable css-buttons. (I'm pretty sure that option has been available since I did a fresh ZenCart v1.3.6 install about a month ago.)

Should I re-run the sql patch that was mentioned in step one? I've gone back over all my steps checking and re-checking and that's the only thing I haven't done 'cause I'm not sure if it's OK to do that....

So, if you could spare the time to coach me I'd be forever grateful!

29 Dec 2006, 1:54 AM
#42
three_sisters avatar

three_sisters

Zen Follower

Join Date:
Nov 2006
Location:
Indiana
Posts:
188
Plugin Contributions:
0

Post #42 by three_sisters

Oh a couple more questions:

Does stylesheet_css_buttons_popups.css really belong in the extra folder and not in the yourtemplate/css folder?

And just to make sure I fully understand, the "catalog" folder was representive of whatever folder my ZenCart files were installed in, right? I know that is probably an obvious answer to most of you, but I am new to all of this and wouldn't want to miss something because of an ignorant assumption!

Smiles!

29 Dec 2006, 2:05 PM
#44
paulm avatar

paulm

Totally Zenned

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

Post #44 by paulm

Thanks for letting us know it works, and you already found the answers to your questions yourself! :-)

14 Jan 2007, 9:50 PM
#45
hareslade avatar

hareslade

Totally Zenned

Join Date:
Nov 2004
Location:
U.K. South Wales
Posts:
442
Plugin Contributions:
0

Post #45 by hareslade

Hi
Has anyone got a working site demo with this, so we can see how it looks?

Thanks

14 Jan 2007, 10:15 PM
#46
paulm avatar

paulm

Totally Zenned

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

Post #46 by paulm

It does not really have a look (the look it currently does have is not very interesting). It's just another way to create buttons, handy if you don't like to create/use an image for every button.

You could say that the buttons become "little boxes" that are styled by CSS.

(Current versions of Zen Cart have this feature built in by default, this mod is meant to be an improvement of the build in version)

15 Jan 2007, 3:51 AM
#47
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Post #47 by maca2406

Hi paulm.

I am testing their great contribution module, but I am having a problem with EZ Pages navigation Previous-Home-Next buttonsbuttons. Problem is that the buttons are aligned in the center in column form. I want to align them in the center but in horizontal form.

Original zencart stylesheet_css_buttons.css doesn't have this problem, although it has others :down: that their excellent module solves :D .

I am using zencart 1.3.7 and 1.3.6 for testing and with both I obtain the same problem. Remove their stylesheet_css_buttons.css and problem resolved, but you will know, others problems become present.

Any idea.

Another queston: I add border to the buttons, but it are square corners buttons. Any form to make circular border buttons???

I modified the code a little for the border.

Thank you for your help.

15 Jan 2007, 4:03 AM
#48
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Post #48 by maca2406

paulm

This is my modification to stylesheet_css_buttons.css, for if you need to know:

/* css buttons /
.cssButton, .cssButtonHover {
font: bold 1.1em Verdana, Arial, Helvetica, sans-serif;
/
to center the button texts vertically line-height and height need to be equal /
line-height: 1.5em;
height: 1.5em;
border: 2px outset #F4F4F4;
color: #4e387e;
background: #f0f1f0 !important; /
!important to retain the background color after auto form field coloring fix /
white-space: nowrap;
text-align: center;
cursor: pointer;
margin: 1px;
padding: 0 0.5em;
}
.cssButtonHover, a:hover .cssButton, input.cssButton:hover {
color: red;
background: #f0f1f0 !important;
}
/
bof some IE comp. stuff /
.cssButton, .cssButtonHover{
/
_width: 0; needed to stop IE adding "magic" padding to the input, _witdh is a hack that uses an IE bug /
/
to remove this hack move the width setting to an IE specific stylesheet /
_width: 0;
overflow: visible;
}
/
eof some IE comp. stuff /
span.cssButton, span.cssButtonHover{
/
added to get the right line-height /
display: block;
}
.navNextPrevWrapper span.cssButton, .navNextPrevWrapper span.cssButtonHover{
/
note that the diplay inline removes line-height from the element (depending on doctype settings) /
display: inline;
}
/
css popups /
.cssButtonLinkPopup strong, .cssButtonSubmitPopup strong{
display: none;
}
span.cssButtonLinkPopup, span.cssButtonSubmitPopup{
border-style: inset;
position: relative;
}
a:hover .cssButtonLinkPopup strong, span.cssButtonSubmitPopup:hover strong{
display: block;
position: absolute;
top: 2em;
left: 0;
color: black;
background: #fe3;
}
td .cssButton, td .cssButtonHover{
/
prevents buttons taking the full width of table cells */
display: inline;
}

15 Jan 2007, 8:46 PM
#49
paulm avatar

paulm

Totally Zenned

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

Post #49 by paulm

An url could help, so I can see what happens.

16 Jan 2007, 2:28 AM
#50
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Post #50 by maca2406

Sure.

This is my test site: http://test.tecnomallcr.com/

No code modification there. Please, enter to EZPages to see the problem with the: Previous-Continue-Next buttons, that are in column form :cry:

Thank you.

16 Jan 2007, 11:28 AM
#51
paulm avatar

paulm

Totally Zenned

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

Post #51 by paulm

Please, enter to EZPages to see the problemWhy let me searh for it? Can't you post a direct link to such a page?

16 Jan 2007, 1:37 PM
#52
jettrue avatar

jettrue

Totally Zenned

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

Post #52 by jettrue

maca2406:

Sure.

This is my test site: http://test.tecnomallcr.com/

No code modification there. Please, enter to EZPages to see the problem with the: Previous-Continue-Next buttons, that are in column form :cry:

Thank you.

When I look at the ezpages link, they look fine to me, just like the product pages.

16 Jan 2007, 6:01 PM
#54
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Post #54 by maca2406

jettrue:

When I look at the ezpages link, they look fine to me, just like the product pages.

Link is: http://www.tecnomallcr.com/test/index.php?main_page=page&id=1&chapter=10&zenid=f2962f285e56c2d31a5e9aa3ed8c9d5f

It is strange, I am using Internet Explorer 6.0 with SP2.

I attach a picture to the post with a capture of the screeen to show the problem, Look, the previous-continue-next button, are showed in column form. I want it in horizontal form. Problem is only with EZ Pages.

16 Jan 2007, 6:07 PM
#55
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Post #55 by maca2406

Important News

Problem is with Internet Explorer 6.0 with SP2, I have not tested with another version.

With Firefox 1.0.7 EZ Pages works ok.

16 Jan 2007, 6:32 PM
#56
blessisaacola avatar

blessisaacola

Totally Zenned

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

Post #56 by blessisaacola

maca2406:

ok sorry. The direct link is: http://www.tecnomallcr.com/test/index.php?main_page=page&id=1&chapter=10&zenid=f2962f285e56c2d31a5e9aa3ed8c9d5f

Problem is that the buttons are shown in column form.

You might want to check your shopping cart as well as the css button displayed is a long text that messes up the screen. Add something to your cart and you will see what I am talking about.

16 Jan 2007, 8:12 PM
#57
maca2406 avatar

maca2406

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Post #57 by maca2406

The strange is: this is a fresh install, with CCS button module only. Works ok with firefox and with this problem in Internet Explorer.

27 Mar 2007, 9:50 PM
#58
paulm avatar

paulm

Totally Zenned

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

Post #58 by paulm

Version 2.6

For now it's attached to this post (after some positive, or no negative, response it will be uploaded to the Zen Cart downloads section).

From the readme (includes some old version notes because I forgot to upload some in between versions here):

2.6:

  1. Several changes to the readme
  2. Removed admin css file from the zip (use the included example css file for the catalog, or even better create one yourself ;-))
  3. Changed css button and text size values back to pixels in the included css example file. Use of em is still possible of course, but it's probably confusing for most users and more difficult to configure correctly.
  4. Updated button popups code, included usage example, added short description about adding popup content for each button (added to popup itself)

2.50:

  1. Minor change to .sql installation file (2.4 version still included in extra folder)
  2. Minor change to CSS to prevent full table cell width for buttons within tables
  3. Finally added admin css buttons again :-) (see readme-admin for installation instructions)
  4. Small change to catalog/includes/functions/extra_functions/css_buttons.php for admin css buttons on/off switch

2.40:
Last change to html_ouput (hopefully). Functionality has not changed and there is no need to upgrade. This version only moves some logic from html_output.php file to a function in the css buttons file. This results in an even cleaner html_output.php file and easier future installation and upgrades.+several other minor changes

10 Apr 2007, 2:06 AM
#59
funkey avatar

funkey

New Zenner

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

Post #59 by funkey

Hi Paulm,

Running 2.60 on a 1.3.7 shop, very nice work -- found a small bug (typo) in the CSS popups code though:

The css_buttons_popups.php file should be in --

includes/languages/english/extra_definit[b]i[/b]ons/

rather than:

includes/languages/english/extra_definitons/

Cheers,

Paul

paulm:

Version 2.6

For now it's attached to this post (after some positive, or no negative, response it will be uploaded to the Zen Cart downloads section).

From the readme (includes some old version notes because I forgot to upload some in between versions here):
+several other minor changes

10 Apr 2007, 2:16 AM
#60
funkey avatar

funkey

New Zenner

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

Post #60 by funkey

Also, i've attached a modified copy of the administrator CSS buttons file to look 'more' like the default template (the buttons are now white on jade-green, in a matching font with highlights on hover & a black border)

Once again, very useful & very nice work -- looking forward to seeing this update in a future version of zen-cart :)

(hint)

Paul