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 61 to 80 of 231
This thread is locked. New replies are disabled.
5 Feb 2007, 2:34 AM
#61
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!

studeo:

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 place

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

studeo

Sorry, I think I'm going to need more specifics about what you're trying to do. Have you includes/templates/nifty_zen/jscript/jscript_niftyalayout.js with the div that you're trying to get to round? There should be no need to adjust any php whatsoever.

The files used for this are:

includes/templates/YOUR_TEMPLATE/jscript/jscript_niftyalayout.js
includes/templates/YOUR_TEMPLATE/jscript/jscript_niftycube.js
includes/templates/YOUR_TEMPLATE/css/stylesheet_niftyCorners.css

The only one you should edit is niftyalayout.js, the others are not to be touched. The colors are determined by your regular stylesheet.

5 Feb 2007, 1:47 PM
#62
studeo avatar

studeo

Zen Follower

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

Re: Nifty Zen Template - Rounded Corners without images!

Yes, I have the files you mention in the correct folders. I also have the 'onload' sub folder the same as you do. Lets say for example I add to the js

Nifty("div#catTabsWrapper", "big transparent top");

I get no response. I have tried many lines in the js file with no resulting effect. I must be missing something simple?

Thanks for the reply. Looking foward to making this work!

studeo

5 Feb 2007, 2:09 PM
#63
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!

studeo:

Yes, I have the files you mention in the correct folders. I also have the 'onload' sub folder the same as you do. Lets say for example I add to the js

Nifty("div#catTabsWrapper", "big transparent top");

I get no response. I have tried many lines in the js file with no resulting effect. I must be missing something simple?

Thanks for the reply. Looking foward to making this work!

studeo

in your regular 'ole stylesheet, does div#catTabsWrapper have a different background-color than the div behind it? Link?

5 Feb 2007, 11:28 PM
#64
studeo avatar

studeo

Zen Follower

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

Re: Nifty Zen Template - Rounded Corners without images!

I wish I could say I know what you mean exactly. Lets work with #mainWrapper to which I added an 11pt border

heres a link:

http://www.theribbondiva.com/zen-cart/index.php?main_page=

6 Feb 2007, 12:02 AM
#65
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!

studeo:

I wish I could say I know what you mean exactly. Lets work with #mainWrapper to which I added an 11pt border

heres a link:

http://www.theribbondiva.com/zen-cart/index.php?main_page=

Where do you want the rounded corners?

6 Feb 2007, 12:06 AM
#66
studeo avatar

studeo

Zen Follower

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

Re: Nifty Zen Template - Rounded Corners without images!

the very top two corners of the of the top of the page where the gold tones logo image is.

And this works without javascript calls on some page?

6 Feb 2007, 12:13 AM
#67
studeo avatar

studeo

Zen Follower

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

Re: Nifty Zen Template - Rounded Corners without images!

heres my dir scructure:

includes/
templates/MY TEMPLATE NAME/css/NiftyCorners.css & NiftyLayout.css

and

templates/MY TEMPLATE NAME/jscript/jscript_niftyalayout.js and jscript_niftycube.js

6 Feb 2007, 1:57 AM
#68
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!

You're going about this incorrectly. Ok, instead of trying to give mainWrapper an 11px border (that won't work), try creating an #outerMainWrapper div (like I did on my nifty zen site) that surrounds the #mainWrapper. In the stylesheet, the #outerMainWrapper should be bigger than mainWrapper (if you make it 22px wider, then there will be 11px on either side), and outerMainWrapper should have this background color:

#CBC9A0

Then add Nifty("div#outermainWrapper", "big"); to /jscript_niftyalayout.js

Here my css for outerMainWrapper from zencart13b.jadetrue.com:

#outermainWrapper {
background-color: #4B4B4B; /this controls the color of the small outermost strip of background border (grey border default)/
width: 65em; /(change this to the outermost width you want)/
max-width: 1024px;
text-align:center;
margin:0 auto;
padding:8px;
}

ETA: Also, you don't have the correct files uploaded. WHen I look at the page source at https://www.zencart13b.jadetrue.com, here are the files for this mod:

<link rel="stylesheet" type="text/css" href="includes/templates/nifty_zen/css/stylesheet_niftyCorners.css" /> <script type="text/javascript" src="includes/templates/nifty_zen/jscript/jscript_niftyalayout.js"></script> <script type="text/javascript" src="includes/templates/nifty_zen/jscript/jscript_niftycube.js"></script>

You only have these two:

<script type="text/javascript" src="includes/templates/DIVA/jscript/jscript_niftyalayout.js"></script> <script type="text/javascript" src="includes/templates/DIVA/jscript/jscript_niftycube.js"></script>

You're missing the stylesheet_niftyCorners.css which is an essential part of this mod.

And I'm not sure why you have this added underneath the head:

<link rel="stylesheet" href="/zen-cart/includes/templates/DIVA/css/NiftyLayout.css" type="text/css">
6 Feb 2007, 3:39 AM
#69
studeo avatar

studeo

Zen Follower

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

Re: Nifty Zen Template - Rounded Corners without images!

where do I put the niftycorners.css call?

6 Feb 2007, 3:55 AM
#70
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!

studeo:

where do I put the niftycorners.css call?

Not sure what you mean by "call".... that's a stylesheet, so it goes in the css/ folder with the other css files. :cool:

6 Feb 2007, 4:41 AM
#71
studeo avatar

studeo

Zen Follower

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

Re: Nifty Zen Template - Rounded Corners without images!

I take that back. I nadvertantly I did not upload the niftycorners.css file....I will play with this tomorrow and let you know how I did. Thanks for for all your replies today!!!

9 Feb 2007, 3:08 PM
#72
brycej2 avatar

brycej2

New Zenner

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

Re: Nifty Zen Template - Rounded Corners without images!

I have removed the tabs from the header and would like to know if there is way to remove that section of space that was behind thos tabs?...I want my logo in my header to be flush with the bottom border.

9 Feb 2007, 3:46 PM
#73
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!

brycej2:

I have removed the tabs from the header and would like to know if there is way to remove that section of space that was behind thos tabs?...I want my logo in my header to be flush with the bottom border.

Could I possible see a link please? How did you remove the tabs from the header? Do you mean you got rid of that section all together, or did you just stop it from making the rounded tabs?

9 Feb 2007, 5:23 PM
#74
brycej2 avatar

brycej2

New Zenner

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

Re: Nifty Zen Template - Rounded Corners without images!

I commented out the section where the tabs are in the header file

https://housing.ksu.edu/store/

9 Feb 2007, 5:32 PM
#75
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!

brycej2:

I commented out the section where the tabs are in the header file

https://housing.ksu.edu/store/

All you need to do is widen the area that you commented out, like this:

<!--<div id="navMainWrapper"> <div id="navMain"> <ul id="back"> <li><a href="https://housing.k-state.edu/store/">Home</a></li> <li><a href="https://housing.k-state.edu/store/index.php?main_page=login">Log In</a></li> </ul> </div> <div id="navMainSearch"></div> </div>-->
9 Feb 2007, 7:49 PM
#76
brycej2 avatar

brycej2

New Zenner

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

Re: Nifty Zen Template - Rounded Corners without images!

Thanks, appreciate it

15 Feb 2007, 11:46 PM
#77
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!

I've updated this for 1.3.7 (may take a bit to show up in the downloads section).

Here are the changes made:

v1.5 update for 1.3.7. Added new buttons to the includes/templates/buttons/english folder. Updated includes/templates/nifty_zen/common/tpl_main_page.php for 1.3.7 changes. Moved the older tpl_main_page.php to the "pre-1.3.7 files" folder. Updated includes/templates/nifty_zen/stylesheet_new.css with 1.3.7 changes.

18 Feb 2007, 3:43 PM
#78
2004g35 avatar

2004g35

Zen Follower

Join Date:
Jan 2005
Location:
Winter Haven, FL
Posts:
156
Plugin Contributions:
0

Re: Nifty Zen Template - Rounded Corners without images!

downloaded your new nifty zen template and put it in my test store. I want to center the page, so I did the two modifucations you said. Template works fine except - it is still 'right'. Is there an error in the file or have I missed something else.? Thanks

18 Feb 2007, 5:29 PM
#79
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!

2004g35:

downloaded your new nifty zen template and put it in my test store. I want to center the page, so I did the two modifucations you said. Template works fine except - it is still 'right'. Is there an error in the file or have I missed something else.? Thanks

Can I see a link please?

18 Feb 2007, 5:35 PM
#80
2004g35 avatar

2004g35

Zen Follower

Join Date:
Jan 2005
Location:
Winter Haven, FL
Posts:
156
Plugin Contributions:
0

Re: Nifty Zen Template - Rounded Corners without images!

Mistake - it still displays on the LEFT side. It is loaded on my web server locally - do I need to upload it?