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

Adding banners

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-04-2006, 08:35 AM
 
Amani Amani is offline
 

Member
  
Join Date: Feb 2006
Posts: 29
 

Default Adding banners

Hello everyone I am runniing version 4.0.18 of x-cart. I had modification made on my site and would like to know how to add some banner adds to the left and right columns on my site (www.usedbookshq.com). I have tried to look for the code to do that after having read the template editing guide but still am not able to get it together. Can anyone please give me some pointer. Thanks.
__________________
Amani
X-Cart Version 4.0.18
Reply With Quote
  #2  
Old 08-04-2006, 08:37 AM
 
balinor balinor is offline
 

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

Default

Add them to customer/home.tpl...you'll see the table layout...there are three main columns. You can add them as images using this code:

[img]{$ImagesDir}/imagename.jpg[/img]

Just upload the image to the skin1/images dir.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-04-2006, 08:44 AM
 
Amani Amani is offline
 

Member
  
Join Date: Feb 2006
Posts: 29
 

Default

I have been give a line of code as follows: <script type="text/javascript" language="javascript" src="http://www.kqzyfj.com/placeholder-674185?target=_top&mouseover=N"></script>

There is also a url: http://www.advertiserserver.com/advertiserimage.gif
Is it the same or do I need to do something different
__________________
Amani
X-Cart Version 4.0.18
Reply With Quote
  #4  
Old 08-04-2006, 08:46 AM
 
balinor balinor is offline
 

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

Default

If it is a sript, you need to surround it with {literal} tags:

{literal}
<script type="text/javascript" language="javascript" src="http://www.kqzyfj.com/placeholder-674185?target=_top&mouseover=N"></script>
{/literal}

And please, for the 1000th time, please put your version in your signature.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 08-04-2006, 09:00 AM
 
Amani Amani is offline
 

Member
  
Join Date: Feb 2006
Posts: 29
 

Default

X-Cart version: 4.0.18
I have just added the code but it does not populate on the site. And sorry about my signature. I have just added it, but when I submit the changes they do not save.
__________________
Amani
X-Cart Version 4.0.18
Reply With Quote
  #6  
Old 08-04-2006, 09:22 AM
 
balinor balinor is offline
 

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

Default

You need to put your help desk password in for it to save:

Edit profile, enter version, enter help desk password, click the 'Always attach my signature:' box, save. Thanks!


As for yoru banner not showing up...be sure you put it in a place that will show up...like between <td> and </td> tags.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 08-04-2006, 09:43 AM
 
Amani Amani is offline
 

Member
  
Join Date: Feb 2006
Posts: 29
 

Default

I just want to make sure that I am doing the right thing. Do I need to be goingn to customer/home.tpl( this file only has one line of code with no tables or do I need to be going to skin1/customer/home.tpl.
__________________
Amani
X-Cart Version 4.0.18
Reply With Quote
  #8  
Old 08-04-2006, 09:53 AM
 
balinor balinor is offline
 

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

Default

All the tpl files are in the skin1 directory...the file you are looking at is a php file.

skin1/customer/home.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 12:00 PM.

   

 
X-Cart forums © 2001-2020