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

Images Again!!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-16-2003, 02:14 PM
 
Chet Chet is offline
 

Member
  
Join Date: May 2003
Posts: 20
 

Default Images Again!!

Ok getting a little better at this but...want to replace the rectangular area at the top of page next to logo.I beleive it's the top1.gif skin1/images and where a banner goes... but in propertis says this tp1.gif is 48x60 pix and the area is way larger than that.Can't find any gif that matches this area so where do I take care of this...Thanks

OK back to edit:I found this head.tpl and think this is the place to make changes. When it says repeat:repeat-x"> dose that mean top1.gif will fill the area even though the gif is only 60px wide. If I make my image the same size (48x60) and overwrite the top1.give will that do the trick.

{* $Id: head.tpl,v 1.28 2003/04/24 09:50:33 svowl Exp $ *}
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 class=HeadBox width=100%>
<TR>
<TD valign="top" width="284">[img]{$ImagesDir}/logo.gif[/img]</TD>
<TD background="{$ImagesDir}/top1.gif" align=right valign=middle>
{if $main eq "catalog" and $current_category.category eq "" and $all_languages_numba gt 1}
<FORM action="home.php" method=GET name=sl_form>
<SELECT name=sl onChange="javascript: document.sl_form.submit()">
{section name=ai loop=$all_languages}
<OPTION value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION>
{/section}
</SELECT>
</FORM>
{elseif ($usertype eq "P" or $usertype eq "A") and $login}
<table border=0 cellpadding=0 cellspacing=0>
<FORM action="{$smarty.server.REQUEST_URI}" method=POST name=asl_form>
<tr>
<td>Current language:</td>
<td>
<INPUT type=hidden name="redirect" value="{$smarty.server.QUERY_STRING}">
<SELECT name=asl onChange="javascript: document.asl_form.submit()">
{section name=ai loop=$all_languages}
<OPTION value="{$all_languages[ai].code}"{if $current_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION>
{/section}
</SELECT>
</td></tr>
</FORM>
</table>
{else}

{/if}
</TD>
</TR>
<TR>
<TD>
{if $usertype eq "C"}
{ include file="customer/search.tpl" }
{else}

{/if}
</TD>
<TD width=99% valign=top class=HeadBox background="{$ImagesDir}/top2.gif" style="background-repeat: repeat-x">



<P align=right><SPAN class=NumberOfArticles>{insert name="productsonline"} {$lng.lbl_products} {if $config.Appearance.show_in_stock eq "Y"}{$lng.lbl_and} {insert name="itemsonline"} {$lng.lbl_items} {/if}{$lng.lbl_online}</SPAN></P>
</TD>
</TR>
</TABLE>

Reply With Quote
  #2  
Old 05-16-2003, 03:20 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Top1.gif is set as a background for that cell.

It will tile to fill the whole area. That is why the design is vertically symmetrical.

<TD background="{$ImagesDir}/top1.gif" align=right valign=middle>

If you make a like sized image it will also tile it, so be sure to keep your image able to be "joined at the butts".

If you make a particular sized image that is also fine (be sure to change the width and height properties in the tpl) however you will lose some of your aesthetic appeal when users with different browser resolutions visit your site.

Good Luck!

Reply With Quote
  #3  
Old 05-16-2003, 04:54 PM
 
Chet Chet is offline
 

Member
  
Join Date: May 2003
Posts: 20
 

Default

Ok adpboss... Is that what the repeat:repeat-x">refers to?
Just wondering how it knows how much to tile because I have not seen any definate size in the tpl...Thanks
Reply With Quote
  #4  
Old 05-17-2003, 02:52 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

repeat x just mean that it will repeat the graphic along the x axis ie left to right for as long as it needs to be.

This way you can stretch the windows width and the header stays looking right
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
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 09:35 PM.

   

 
X-Cart forums © 2001-2020