If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Templates / Nifty Zen Template - Rounded Corners without images!

Nifty Zen Template - Rounded Corners without images!

Locked

Started by jettrue on 6 Sep 2006, 6:11 PM · Views: 82,574

Results 41 to 60 of 231
This thread is locked. New replies are disabled.
19 Nov 2006, 6:26 PM
#41
jettrue avatar

jettrue

Totally Zenned

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

Nifty Zen Template - Rounded Corners without images!

imac:

Jade,

Thanks for the reply. Straight after I'd posted yesterday I decided to try more-or-less exactly that. I copied tpl_box_default_left.php into my template folder and, just to be 'safe', decided to wrap div class="leftBoxContainer" in a couple of new ones: ```

<div id="outerNiftySideboxWrapper"> <div id="innerNiftySideboxWrapper"> ``` I then went into jscript_niftyalayout.js and changed: ``` Nifty("div#mainWrapper", "big right"); Nifty("div#outermainWrapper", "big right"); to: Nifty("div#innerNiftySideboxWrapper", "big right"); Nifty("div#outerNiftySideboxWrapper", "big right"); ``` I then added #innerNiftySideboxWrapper and #outerNiftySideboxWrapper to the stylesheet, copied the relevant styles from your #mainWrapper and #outermainWrapper and gave it a whorl. > > Result was that it rounded the corners of the first sidebox (Categories) as expected, but left all the others square. :dontgetit > > Skimming back through the examples on Alessandro's original Nifty Corners Cube page I started to form the (dim!) impression that if I want to round more than one element then I either need to make multiple calls or turn the sideboxes into some kind of list as you have done with the tabs. Don't know if that's right or not, but must admit that at that point I hit the brain-fade barrier and decided to give it a rest for a while. Can't say I woke up this morning with any better idea on what to try next. Any pointers would be much appreciated. > > Ian

I'd have to look at your site to understand what the issue is. You've got to look at the source code and see if the two div's wrap around every sidebox, or if those two divs are only around the categories sidebox.

Now, the question is, do you WANT the rounded corners around every side box, OR only around the entire sidebox.

Also, by doing both inner and outer wrapper's, you should end up with TWO rounded corner layers. You only need one to get a single layer rounded box.

20 Nov 2006, 6:40 PM
#42
imac avatar

imac

New Zenner

Join Date:
Mar 2006
Location:
Durham, UK
Posts:
78
Plugin Contributions:
0

Re: Nifty Zen Template - Rounded Corners without images!

jettrue:

I'd have to look at your site to understand what the issue is. Just developing on a local server at the moment, but screenshot attached here. Attachment #1014> jettrue:

You've got to look at the source code and see if the two div's wrap around every sidebox, or if those two divs are only around the categories sidebox. No doubt that they wrap around every sidebox. I switched Categories off and moved Currencies and Languages to the top and still get the same pattern. > jettrue:

Now, the question is, do you WANT the rounded corners around every side box, OR only around the entire sidebox. I want a 2px rounded border around top, right and bottom of every sidebox. The first one would be OK except for the bottom and the stray square at top right. I don't understand where either of these are coming from. The other boxes would be perfect - if they just had rounded corners. > jettrue:

Also, by doing both inner and outer wrapper's, you should end up with TWO rounded corner layers. You only need one to get a single layer rounded box. I'm using the 2 divs to get the border. The styles are: ```
#outerNiftySideboxWrapper {
background-color: #ff00ff;
padding:2px 2px 2px 0px;
margin: 1.5em;
width: 165px
}

#innerNiftySideboxWrapper {
background-color: #000000;
text-align: left;
width: 165px;
}

21 Nov 2006, 1:55 PM
#43
jettrue avatar

jettrue

Totally Zenned

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

Re: Nifty Zen Template - Rounded Corners without images!

imac:

I'm using the 2 divs to get the border. The styles are: ```
#outerNiftySideboxWrapper {
background-color: #ff00ff;
padding:2px 2px 2px 0px;
margin: 1.5em;
width: 165px
}

#innerNiftySideboxWrapper {
background-color: #000000;
text-align: left;
width: 165px;
}


But that's what I'm trying to tell you.  :P  I know that seems logical that you need to use two divs to get one border, but NO, you only need ONE div. On that one DIV you put the #ff00ff, and that makes the pink rounded corners. If the area behind the sideboxes is black, then that's all you need, you don't have to specify a black div. The only reason I use TWO on my nifty zen template, is that I have two colored rounded boxes (grey and blue) around the outside.

I'm guesssing your issue is is that now your site is trying to make a black rounded div as well, and they're overlapping some odd way, so you only are seeing the pink. Get rid of:
#innerNiftySideboxWrapper {
	background-color: #000000;
	text-align: left;
	width: 165px;

And that should get things to be more like they should.
21 Nov 2006, 4:22 PM
#44
imac avatar

imac

New Zenner

Join Date:
Mar 2006
Location:
Durham, UK
Posts:
78
Plugin Contributions:
0

Re: Nifty Zen Template - Rounded Corners without images!

jettrue:

But that's what I'm trying to tell you. :P I know that seems logical that you need to use two divs to get one border, but NO, you only need ONE div... Get rid of: #innerNiftySideboxWrapper ... And that should get things to be more like they should. OK. Done that. It seems logical that one div will give a solid pink box, and this is exactly what I get.

Attachment #1017

The small pnk square on the top right hand corner has gone, but the other boxes are rendering square as before.

What next?

21 Nov 2006, 10:45 PM
#45
jettrue avatar

jettrue

Totally Zenned

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

Re: Nifty Zen Template - Rounded Corners without images!

Sure, it makes just one big pink box, but at least you don't have two boxes trying to have curved corners. Did you try assigning the black background color to one of the native sidebox tags like ".sideBoxContent"?

Did you get rid of:

Nifty("div#innerNiftySideboxWrapper", "big right");

from jscript/niftyalayout.js as well?

Did you know that the "big right" portion of the above code makes the sideboxes only have curves on the right side? If you want all four corners curved, just have "big".

22 Nov 2006, 5:17 AM
#46
imac avatar

imac

New Zenner

Join Date:
Mar 2006
Location:
Durham, UK
Posts:
78
Plugin Contributions:
0

Re: Nifty Zen Template - Rounded Corners without images!

jettrue:

Sure, it makes just one big pink box, but at least you don't have two boxes trying to have curved corners. True. But I still have only one box with curved corners. > jettrue:

Did you try assigning the black background color to one of the native sidebox tags like ".sideBoxContent"? Certainly did. Same result! > jettrue:

Did you get rid of: Nifty("div#innerNiftySideboxWrapper", "big right"); from jscript/niftyalayout.js as well? Certainly did. > jettrue:

Did you know that the "big right" portion of the above code makes the sideboxes only have curves on the right side? Certainly did. What I'm trying to achieve is a 2px rounded border on top, right and bottom only as below (achieved using conventional css and images):

Attachment #1024

What next?

22 Nov 2006, 7:20 PM
#47
m8trixdg avatar

m8trixdg

New Zenner

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

Re: Nifty Zen Template - Rounded Corners without images!

Hi,
Quick question. How can I center the Top Tabs. I have tried a few things but they are not moving.
Thanks,
Brad

25 Nov 2006, 9:17 AM
#48
na641 avatar

na641

New Zenner

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

Re: Nifty Zen Template - Rounded Corners without images!

Hey, i'm having trouble applying the rounded corners to actual content divs (i.e. not left/right column divs)

Which div's do i need to add to jscript_niftylayout.js to have rounded corners for content boxes, such as the "new Products for November" div? I tired it with div.centerColumn and div#centerBoxWrapper but with no results?

Any info you could give would be great!

29 Nov 2006, 11:37 PM
#49
jettrue avatar

jettrue

Totally Zenned

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

Re: Nifty Zen Template - Rounded Corners without images!

imac:

True. But I still have only one box with curved corners. Certainly did. Same result! Certainly did. Certainly did. What I'm trying to achieve is a 2px rounded border on top, right and bottom only as below (achieved using conventional css and images):

Attachment #1024

What next?

Hi imac... I'm not ignoring you, I'll be able to play with this tomorrow.... I'll try something similar on my test site to see if this is even possible... it may not be.... not that thin of a border. But I'll try. :P

30 Nov 2006, 12:29 AM
#50
jettrue avatar

jettrue

Totally Zenned

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

Re: Nifty Zen Template - Rounded Corners without images!

m8trixdg:

Hi,
Quick question. How can I center the Top Tabs. I have tried a few things but they are not moving.
Thanks,
Brad

Hi Brad,

Well, the problem with that, is that in order to get that to center, it ultimately needs to have a width, but the width changes when the person is logged in. I can't get it to center BOTH when people are logged in AND when people are not logged in. Sorry there is no good solution to do this, as far as I can tell so far.

30 Nov 2006, 12:46 AM
#51
jettrue avatar

jettrue

Totally Zenned

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

Re: Nifty Zen Template - Rounded Corners without images!

na641:

Hey, i'm having trouble applying the rounded corners to actual content divs (i.e. not left/right column divs)

Which div's do i need to add to jscript_niftylayout.js to have rounded corners for content boxes, such as the "new Products for November" div? I tired it with div.centerColumn and div#centerBoxWrapper but with no results?

Any info you could give would be great!

Hi!

You can add this:
Nifty("div.centerBoxWrapper", "big");

to your niftyalayout.js file. Also, in case you're interested, this there are options for smaller corners. This:
Nifty("div.centerBoxWrapper");
will give you medium sized corners and this:
Nifty("div.centerBoxWrapper", "small");
will give you small corners.

Then you need to add this to your stylesheet:
.centerBoxWrapper {
background-color:#cccccc; (whatever background color you want)
padding:8px;
}

Anyone can see this in action at:
http://www.zencart13b.jadetrue.com/

18 Dec 2006, 6:59 PM
#52
fireislandman avatar

fireislandman

New Zenner

Join Date:
Dec 2005
Posts:
7
Plugin Contributions:
0

Re: Nifty Zen Template - Rounded Corners without images!

Hi Jade,

Your Nifty Zen is the best looking Zen Cart template yet! I love the Rounded Nifty Corners, but I need to remove them from the #outermainWrapper and #mainWrapper for https://www.AcaResnet.com.

How do I remove the Rounded Corners from the Wrappers, yet preserve them for the Top Tabs? Can I also use a background image for the Tabs? Thank you.

18 Dec 2006, 10:54 PM
#53
jettrue avatar

jettrue

Totally Zenned

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

Re: Nifty Zen Template - Rounded Corners without images!

FireIslandMan:

Hi Jade,

Your Nifty Zen is the best looking Zen Cart template yet! I love the Rounded Nifty Corners, but I need to remove them from the #outermainWrapper and #mainWrapper for https://www.AcaResnet.com.

How do I remove the Rounded Corners from the Wrappers, yet preserve them for the Top Tabs? Can I also use a background image for the Tabs? Thank you.

Hi There,

That's really easy... just open up includes/templates/nifty_zen/jscript/jscript_niftyalayout.js and erase these lines:

Nifty("div#mainWrapper", "big right");
Nifty("div#outermainWrapper", "big right");

Tada!

ETA: No, I don't think you can use a background image.

19 Dec 2006, 2:00 AM
#54
fireislandman avatar

fireislandman

New Zenner

Join Date:
Dec 2005
Posts:
7
Plugin Contributions:
0

Re: Nifty Zen Template - Rounded Corners without images!

Thanks Jade,

Worked like a charm!

30 Jan 2007, 9:51 AM
#55
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

Re: Nifty Zen Template - Rounded Corners without images!

Anyone ever tried to get nifty to work with TabbedProducts-LITE?

I'm trying to combine both nifty and TabbedProducts-LITE in one cart (1.3.6) but the TabbedProducts keep showing the actual images shipped with it. Tried to apply the directions for the sideboxes earlier in this thread but without result so far.

Somehow had the idea that this was a so obvious challenge that I was sure to find the solution here. But it's absence makes me wonder if it's possible at all.

30 Jan 2007, 1:34 PM
#56
jettrue avatar

jettrue

Totally Zenned

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

Re: Nifty Zen Template - Rounded Corners without images!

davale:

Anyone ever tried to get nifty to work with TabbedProducts-LITE?

I'm trying to combine both nifty and TabbedProducts-LITE in one cart (1.3.6) but the TabbedProducts keep showing the actual images shipped with it. Tried to apply the directions for the sideboxes earlier in this thread but without result so far.

Somehow had the idea that this was a so obvious challenge that I was sure to find the solution here. But it's absence makes me wonder if it's possible at all.

I'm not sure why it wouldn't work. Can I see a website please?

30 Jan 2007, 2:44 PM
#57
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

Re: Nifty Zen Template - Rounded Corners without images!

Thanks for the swift response!

Cart is still on my local hard drive but if you let me know what you need to take a look at I'll extract it. Might even be possible to bring it online in it's infant stage if you allow me some time.

30 Jan 2007, 4:30 PM
#58
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

Re: Nifty Zen Template - Rounded Corners without images!

Jettrue, I've PMed you the URL and some additional info. Please let me know if anything is missing.

1 Feb 2007, 8:13 PM
#59
kelowna77 avatar

kelowna77

New Zenner

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

Re: Nifty Zen Template - Rounded Corners without images!

for some reason all of a sudden a little sliver of the background colour is going over and covering hte top bit of my logo image no matter what size it is. do you have any idea where the coding would be to change this? or why its happening? any way to fix it?

and the site is https://www.scrap2basics.net/Shopping in case you need that

5 Feb 2007, 12:11 AM
#60
studeo avatar

studeo

Zen Follower

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

Re: Nifty Zen Template - Rounded Corners without images!

Hello:

I tried reverse engineering for an hour so far but I know im missing something. Im still learning php and not as sharp as some of you (will be someday!) So I guess Im looking for a tip or two to get the nifty corner to react with the divs in my custom template. I wanted to make sure I put the .js files in the right folder, and that any code to call the script was inserted into the source in the appropriate places.

I wish I was 20 again! Id have this figured out in a flash!!!! lol

studeo