Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Rounded Corners - Almost there but not quite

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 01-30-2005, 07:11 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

A couple of tips for you if you really want to become adept at editing X-Cart templates:

1. Learn HTML. Not just a WYSIWYG editor, but the real code of HTML. It is a very straightforward programming language, and you can pick it up pretty quickly.

2. Learn CSS. All of the styles in X-Cart (colors, fonts, etc) are controlled by CSS.

The O'Reilly books are great if you are looking for a reference. Good luck!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #12  
Old 01-30-2005, 07:17 AM
  eaglemobiles's Avatar 
eaglemobiles eaglemobiles is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 167
 

Default

Thanks for your help, i will be grateful if you help me out, i have made some changes to login manu, now i want to bring the forgot password text near to join go but i cant do it, and I want to remove the go button from join i want it same as forgot password.

Thanks
__________________
X-Cart Gold 4.3.2
X-Cart Gold 4.4.1
Unix

High Quality CCTV DVRs & Cameras
http://www.eaglemobiles.co.uk/CCTV
Reply With Quote
  #13  
Old 01-30-2005, 08:26 AM
 
nfc5382 nfc5382 is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 481
 

Default

any difference for 3.5?
__________________
-----------------------
x-cart v4.7.6 [LIVE]
x-cart v4.0.18 [retired 2004-2016]
x-cart v3.5.13 [retired]
x-cart v3.4.14 [retired]
Reply With Quote
  #14  
Old 01-21-2006, 12:48 PM
 
Vern Vern is offline
 

Member
  
Join Date: Aug 2005
Posts: 18
 

Default Closing the bottom & rounding the corners

Thanks eaglemobiles for doing the hard work.

The code
Code:
<TD style= "border-right: 1px solid #9C9EAA; border-bottom: 1px solid #9C9EAA;" height="23" class="DialogTitle" background="{$ImagesDir}/dialog_bg_n.gif" valign="middle">{$title}</TD>
makes the title bar come out double.

Plus the style should go in the skin1.css file.

For those who want to enclose the bottom with a continuous line. Use a spacer.gif of the same color, like balinor suggested, and aligned it to the bottom at 100% width.

Here is the complete code for dialog.tpl.

Code:
{* $Id: dialog.tpl,v 1.19 2004/06/24 09:53:29 max Exp $ *} {if $printable ne ''} {include file="dialog_printable.tpl"} {else} <TABLE border="0" cellpadding="0" cellspacing="0" {$extra}> <TR> <TD height="15" class="DialogTitle" background="{$ImagesDir}/dialog_bg_n.gif" valign="bottom">{$title}</TD> </TR> <TR><TD class="DialogBorder"><TABLE border="0" cellpadding="10" cellspacing="0" width="100%"> <TR><TD class="DialogBox">{$content} </TD></TR> </TABLE><tr> <td colspan="2"> <table width="100%" cellspacing="0" cellpadding="0" bgcolor="white"> <tr> <td width="9"> <div align="left"> [img]{$ImagesDir}/smalldialogcnr_left.gif[/img]</div> </td> <td width="100%" valign="bottom"> [img]{$ImagesDir}/greyspacer.gif[/img]</td> <td width="9"> <div align="right"> [img]{$ImagesDir}/smalldialogcnr_right.gif[/img]</div> </td> </tr> </table> </td> </tr> </td><TD></TR> </TABLE> {/if}

Next open up skin1.css file.and find .DialogBorder
And add this or whatever color and size you need
Code:
border-right: 1px solid #9C9EAA; border-left: 1px solid #9C9EAA;

Happy Coding
__________________
Version 4.0.14 and UNIX
Reply With Quote
  #15  
Old 08-10-2006, 09:08 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default

[spam] Just added a free rounded corners mod to my site if anyone's interested.

edit: Sorry I removed it a while ago, as some people had problems with it.
__________________
xcartmods.co.uk
Reply With Quote
  #16  
Old 01-14-2007, 11:59 PM
 
fogelka fogelka is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 83
 

Default Re: Rounded Corners - Almost there but not quite

Interested, but can't find it!
__________________
xcart v4.0.18 [linux]

Loyalty Points, DSEFU, Easy Checkout, Featured Product Manager, Remember Me, Relevant Search, Vertical Flyouts, Multiple Category Templates. Loads of other tweaks and mods learned in forums.
Reply With Quote
  #17  
Old 08-11-2007, 11:18 AM
  Warwick's Avatar 
Warwick Warwick is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Somewhere on the web through European connection
Posts: 868
 

Default Re: Rounded Corners - Almost there but not quite

Quote:
Originally Posted by PhilJ
[spam] Just added a free rounded corners mod to my site if anyone's interested.

edit: Sorry I removed it a while ago, as some people had problems with it.

Care to share it nevertheless?
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25
X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many
∙∙ Experience: Somewhere beyond newbie
-----------------------------------
------------------------------------------------------------------------------------------------------
Looking for the best dutch language pack? 4.1.x - 4.6.x compatibel, native speaker translation! More info
Reply With Quote
  #18  
Old 08-11-2007, 12:02 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Rounded Corners - Almost there but not quite

http://www.xcartmods.co.uk/count/click.php?id=2
__________________
xcartmods.co.uk
Reply With Quote
  #19  
Old 08-11-2007, 04:32 PM
  Warwick's Avatar 
Warwick Warwick is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Somewhere on the web through European connection
Posts: 868
 

Default Re: Rounded Corners - Almost there but not quite

Thanks mate!
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25
X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many
∙∙ Experience: Somewhere beyond newbie
-----------------------------------
------------------------------------------------------------------------------------------------------
Looking for the best dutch language pack? 4.1.x - 4.6.x compatibel, native speaker translation! More info
Reply With Quote
  #20  
Old 08-11-2007, 11:51 PM
 
guy gregor guy gregor is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 31
 

Default Re: Rounded Corners - Almost there but not quite

I was reading around http://www.cssplay.co.uk/boxes/snazzy2.html and in a moment of experimentation did the following...

i added this to the bottom of my css file

.xsnazzy h1, .zsnazzy h1 {
margin:0;
font-size:1.2em;
padding:0 10px 5px 10px;
border-bottom:1px solid #444;
}
.xsnazzy p, .zsnazzy p {
margin:0;
padding:5px 10px;
font-size:10px;
}
.xsnazzy {
background: transparent;
width:153px;
float:left;
margin:0 3px;
}

.xtop, .xbottom {
display:block;
background:transparent;
font-size:1px;
}
.xb1, .xb2, .xb3, .xb4 {
display:block;
overflow:hidden;
}
.xb1, .xb2, .xb3 {
height:1px;
}
.xb2, .xb3, .xb4 {
background:#fff;
border-left:1px solid #444;
border-right:1px solid #444;
}
.xb1 {
margin:0 5px;
background:#444;
}
.xb2 {
margin:0 3px;
border-width:0 2px;
}
.xb3 {
margin:0 2px;
}
.xb4 {
height:2px;
margin:0 1px;
}

.xboxcontent {
display:block;
border:0 solid #444;
border-width:0 1px;
height:220; /* was auto */
}
* html .xboxcontent {
height:1px;
}

.color_a { /* menu top */
background:#B64926; /* was c9ba65 */
color:#fff;
}
.color_b {
background:#CC5200; /* was d4d8bd */
color:#fff;
}
.color_c {
background:#FFF0A5;
color:#fff;
}
.color_d {
background:#FFB03B; /* was b2ab9b */
color:#fff;
}

and then changed my menu.tpl to

<table width="155" border="0">
<div class="xsnazzy">
<b class="xtop"><b class="xb1"></b><b class="xb2 color_a">
</b><b class="xb3 color_a"></b><b class="xb4 color_a"></b></b>
<div class="xboxcontent">
<h1 class="color_a">{$menu_title}</h1>
<p>{$menu_content}<br></p>
</div>
<b class="xbottom"><b class="xb4"></b><b class="xb3"></b>
<b class="xb2"></b><b class="xb1"></b></b>
</div>
</table>

and bingo, i had a new menu with rounded corners.

encouraged by how easily it happened i changed dialogue.tpl to

<div class="zsnazzy">
<b class="xtop"><b class="xb1"></b><b class="xb2 color_d"></b><b class="xb3 color_d"></b><b class="xb4 color_d"></b></b>

<div class="xboxcontent">
<h1 class="color_d">{$title}</h1>
<br />
{$content}
&nbsp;
<br />



<br class="clear" />
<p>The end</p>
</div>
<b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>
</div>

i wont pretent to understand all of it , and all credit to stu at css play . he would like it referenced if you use it , or a donation !

an interesting side effect is its seems very fast. the contents seem to continue to inherit styles from existing css . its pretty much cross browser, but you do need to fiddle with padding a little, and i have used tables here and there to get things to stay still !
you can see the effects on www.sunrisedirect.co.uk , its live , so no ordering please.i am no graphic designer , so there is still a lot of that to do.

From an SEO perspective, googles text cache shows it reading straight down the page , quite neat really.
anyway , i thought i'd share it.
__________________
Xcart Gold 4.1.7
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:15 PM.

   

 
X-Cart forums © 2001-2020