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

Question about templates

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-20-2006, 06:38 AM
 
Angelo Angelo is offline
 

Member
  
Join Date: May 2005
Location: New York
Posts: 15
 

Default Question about templates

Hello everyone. I am pretty new here and had a question about editing the look and feel of my site. I have X-cart 4.1 installed with the neon lights template pack. I was interested in putting some small banners on the vertical right menu in between the authentication and news areas. Does anyone know which template I should edit in order for me to display a few 100x100 .gif banners in this area?

Any help would be appreciated.
__________________
Angelo
www.LoveMusicOnline.com
Xcart: 4.0.17
Reply With Quote
  #2  
Old 04-20-2006, 07:06 AM
 
balinor balinor is offline
 

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

Default

If you open the site in Webmaster Mode it will tell you exactly which template is which. Will save you hours of searching
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-27-2006, 06:54 AM
 
Angelo Angelo is offline
 

Member
  
Join Date: May 2005
Location: New York
Posts: 15
 

Default

Thanks for the info but I tried this and still was not able to determine which template to edit. I attempted to insert a few graphics on the right side of the customer/home.tpl but it does not seem to work. Any suggestions?
__________________
Angelo
www.LoveMusicOnline.com
Xcart: 4.0.17
Reply With Quote
  #4  
Old 04-27-2006, 06:57 AM
 
balinor balinor is offline
 

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

Default

By 'not work' what do you mean? The images don't show up at all or they show up in the wrong place?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 04-27-2006, 07:20 AM
 
Angelo Angelo is offline
 

Member
  
Join Date: May 2005
Location: New York
Posts: 15
 

Default

Balinor,

Firstly, I really appreciate your help! What I meant by "not work" is that the images do not show up. I have pasted in what I have done below. Sorry for being such a "noob" Thanks!

{* $Id: home.tpl,v 1.88 2006/02/10 14:27:31 svowl Exp $ *}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{if $printable ne ''}
{include file="customer/home_printable.tpl"}
{else}
{config_load file="$skin_config"}
<html>
<head>
<title>
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|strip_tags|escape}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|strip_tags|escape}
{if not %position.last%} :: {/if}
{/section}
{/if}
</title>
{include file="meta.tpl" }
<link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}" />
</head>
<body{$reading_direction_tag}{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}>
{include file="rectangle_top.tpl" }
{include file="head.tpl" }
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="VertMenuLeftColumn" rowspan="2">
{if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")}
{include file="customer/categories.tpl" }


{/if}
{if $active_modules.Bestsellers ne "" and $config.Bestsellers.bestsellers_menu eq "Y"}
{include file="modules/Bestsellers/menu_bestsellers.tpl" }
{/if}
{if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu eq "Y"}
{include file="modules/Manufacturers/menu_manufacturers.tpl" }
{/if}
{include file="customer/special.tpl"}
{include file="help.tpl" }
[img]{$ImagesDir}/spacer.gif[/img]
</td>
<td class="VertMainColumn">

{include file="location.tpl"}

{include file="dialog_message.tpl"}

{if $active_modules.Special_Offers ne ""}
{include file="modules/Special_Offers/customer/new_offers_message.tpl"}
{/if}

{include file="customer/home_main.tpl"}


</td>
<td class="VertMenuRightColumn" rowspan="2">
{if (($main eq 'catalog' && $cat ne '') || $main eq 'product') && $config.Appearance.enabled_printable_version eq 'Y'}
<center>{include file="printable.tpl"}</center>


{/if}
{include file="customer/search.tpl"}


{if $active_modules.SnS_connector && $config.SnS_connector.sns_display_button eq 'Y' && $sns_collector_path_url ne ''}
<center>
{include file="modules/SnS_connector/button.tpl"}
</center>




{/if}
{if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''}
{include file="modules/Feature_Comparison/product_list.tpl" }

{/if}
{if $active_modules.Users_online ne "" and $users_online}
{include file="modules/Users_online/menu_users_online.tpl" }

{/if}
{include file="customer/menu_cart.tpl" }

{if $login eq "" }
{include file="auth.tpl" }
{else}
{include file="authbox.tpl" }
{/if}

{include file="news.tpl" } </p>
<p align="center"> </p>


{if $active_modules.XAffiliate ne ""}

{include file="partner/menu_affiliate.tpl" }
{/if}
{if $active_modules.Interneka ne ""}

{include file="modules/Interneka/menu_interneka.tpl" }
{/if}

{include file="poweredby.tpl" }

[img]{$ImagesDir}/spacer.gif[/img]
</p></td>
</tr>
<tr>
<td>{include file="customer/bottom.tpl"}</td>
</tr>
</table>
{include file="rectangle_bottom.tpl" }
</body>
</html>
{/if}
__________________
Angelo
www.LoveMusicOnline.com
Xcart: 4.0.17
Reply With Quote
  #6  
Old 04-27-2006, 07:24 AM
 
balinor balinor is offline
 

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

Default

Ok, try putting the image you want in your files/images folder and replace this:

Code:
<p align="center">[img]https://www.lovemusiconline.com/LoveMusicOnline2/Financing.gif[/img] </p>

with this:

Code:
<p align="center">[img]{$ImagesDir}/Financing.gif[/img] </p>

That way, you won't get the delay of calling the image via https, but your images will show securely at checkout as well. Use that kind of format for all of your image calls.

Also, make sure the image name is Financing.gif and not financing.gif....case matters on a Unix server
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 04-27-2006, 07:26 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

Are you talking about the financing.gif?
Does it show up when you login by any chance?
If that is right, and not how it is meant to be, you have it stuck in the middle of an if statement that only applies when logged in.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #8  
Old 04-27-2006, 07:28 AM
 
balinor balinor is offline
 

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

Default

The {if} statement closes above the call for the news template it looks like...
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 04-27-2006, 07:31 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

Sorry, yes it does.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #10  
Old 04-27-2006, 07:41 AM
 
Angelo Angelo is offline
 

Member
  
Join Date: May 2005
Location: New York
Posts: 15
 

Default

Balinor,

Thanks much! It worked. I appreciate the help!
__________________
Angelo
www.LoveMusicOnline.com
Xcart: 4.0.17
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 01:02 AM.

   

 
X-Cart forums © 2001-2020