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

Stupidly simple question - thumbnail borders

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-17-2008, 08:28 PM
  pixeldust's Avatar 
pixeldust pixeldust is offline
 

Senior Member
  
Join Date: Nov 2007
Location: New Zealand
Posts: 107
 

Default Stupidly simple question - thumbnail borders

How do I add a border to my thumbnails in the products page, featured products and product list?

I know it should be simple, I've looked at so many .tpl files but can't seem to find it, and not in the skin1 CSS either.

Please help me! These little things drive me mad.

(Also, does anyone find the search function on this board really, really terrible? It doesn't seem to allow you to search for threads containing both terms if you enter 2?)
__________________
Jayce - still a PHP and X-cart newbie & queen of stupid questions
LIVE SITE: www.craftfetish.co.nz

X-CART Pro 4.1.9 w/ numerous custom mods including phpBB integration, provider commission/billing management & more
Reply With Quote
  #2  
Old 01-17-2008, 11:40 PM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

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

Default Re: Stupidly simple question - thumbnail borders

For searching:
http://forum.x-cart.com/showthread.php?t=25173&highlight=forum+search+expe rt
__________________
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
  #3  
Old 01-17-2008, 11:44 PM
  pixeldust's Avatar 
pixeldust pixeldust is offline
 

Senior Member
  
Join Date: Nov 2007
Location: New Zealand
Posts: 107
 

Default Re: Stupidly simple question - thumbnail borders

And it's kinda ironic that you need the expertise of that thread in order to find the thread which has the expertise in it (phpBB user here)
__________________
Jayce - still a PHP and X-cart newbie & queen of stupid questions
LIVE SITE: www.craftfetish.co.nz

X-CART Pro 4.1.9 w/ numerous custom mods including phpBB integration, provider commission/billing management & more
Reply With Quote
  #4  
Old 01-18-2008, 04:18 AM
 
balinor balinor is offline
 

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

Default Re: Stupidly simple question - thumbnail borders

For finding which template is which:

http://forum.x-cart.com/showthread.php?t=21529

Also, webmaster mode will tell you exatly which templates are which, and then you can add/alter the CSS as required.

As for search, you should have seen how bad the old forum was...this just requires you to have boolean turned on as outlined in the thread above. FYI, that is mentioned in the 'new to X-Cart - read this' thread.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 01-18-2008, 12:45 PM
  pixeldust's Avatar 
pixeldust pixeldust is offline
 

Senior Member
  
Join Date: Nov 2007
Location: New Zealand
Posts: 107
 

Default Re: Stupidly simple question - thumbnail borders

Tried that I've gone through the tpl files linked to the thumbnail, but can't figure out which one controls the border, and because there is no border by default, I'm not even sure where to put the code.

(Did I mention that I'm a newbie and a moron?)
__________________
Jayce - still a PHP and X-cart newbie & queen of stupid questions
LIVE SITE: www.craftfetish.co.nz

X-CART Pro 4.1.9 w/ numerous custom mods including phpBB integration, provider commission/billing management & more
Reply With Quote
  #6  
Old 01-18-2008, 03:58 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Stupidly simple question - thumbnail borders

You can use webmaster mode and find the tables that contain the products and try adding borders, but it might be easier to use CSS to put a div around the images. The following may get you started - you probably will need to refine it.

Add this to skin1.css:
Code:
.my_thumbnail {border: #00688B 2px solid; padding: 1px; margin: 2px;}

Then, where ever you want the border, add the div tags around it:
<div class="my_thumbnail"> </div>

For example - if you want, you could modify the product_thumbnail.tpl something like this:

Code:
{* $Id: product_thumbnail.tpl,v 1.19.2.1 2007/07/09 05:00:35 svowl Exp $ *} {if $config.Appearance.show_thumbnails eq "Y" or ($type ne "T" and $type ne "")} <div class="my_thumbnail"><img{if $id ne ''} id="{$id}"{/if} src="{if $tmbn_url}{$tmbn_url}{else}{if $full_url}{$http_location}{else}{$xcart_web_dir}{/if}/image.php?type={$type|default:"T"}&amp;id={$productid}{/if}"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} alt="{$product|escape}" /></div>{/if}
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #7  
Old 01-18-2008, 04:13 PM
  pixeldust's Avatar 
pixeldust pixeldust is offline
 

Senior Member
  
Join Date: Nov 2007
Location: New Zealand
Posts: 107
 

Default Re: Stupidly simple question - thumbnail borders

Thanks for your reply I have added the line to the skin1.css. My product_thumbnail.tpl (under the dynamic images module) looks like this, so how do I apply the second part to this?

(removed code)
__________________
Jayce - still a PHP and X-cart newbie & queen of stupid questions
LIVE SITE: www.craftfetish.co.nz

X-CART Pro 4.1.9 w/ numerous custom mods including phpBB integration, provider commission/billing management & more
Reply With Quote
  #8  
Old 01-18-2008, 10:28 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Stupidly simple question - thumbnail borders

Sorry, I am not familiar with that mod. You'll need to figure out what code displays the images around which you want the borders. Or maybe someone else can assist.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #9  
Old 01-19-2008, 11:02 AM
  pixeldust's Avatar 
pixeldust pixeldust is offline
 

Senior Member
  
Join Date: Nov 2007
Location: New Zealand
Posts: 107
 

Default Re: Stupidly simple question - thumbnail borders

I've sent (the ever patient) Telefirma a PM to ask if they can assist
__________________
Jayce - still a PHP and X-cart newbie & queen of stupid questions
LIVE SITE: www.craftfetish.co.nz

X-CART Pro 4.1.9 w/ numerous custom mods including phpBB integration, provider commission/billing management & more
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 02:18 AM.

   

 
X-Cart forums © 2001-2020