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

Easy dynamic thumbnail generation

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #51  
Old 07-19-2006, 08:04 PM
 
qinwubi qinwubi is offline
 

Member
  
Join Date: Jul 2006
Posts: 16
 

Default forgot to cite the site

http://www.nexteve.com/home.php
__________________
all the best,
Wubi
:::::::::
xcart gold v4.3.2 with lots of customizations
Linux
Php 5.2.4
MySQL: 4.1.22-standard
Reply With Quote
  #52  
Old 07-20-2006, 12:14 AM
 
Eddie Hillegers Eddie Hillegers is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 47
 

Default

That's a very nice idear, no product image, just the detailed images.
i think i'll do the same if you don't mind.

Cheers Eddie
__________________
X-cart 4.1.11
PHP 5.2.0
MySQL 5.0
www.ebonist.nl
Reply With Quote
  #53  
Old 07-20-2006, 08:38 AM
  Alltribes's Avatar 
Alltribes Alltribes is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 192
 

Default

Quote:
Originally Posted by Eddie Hillegers
That's a very nice idear, no product image, just the detailed images.
i think i'll do the same if you don't mind.

Cheers Eddie

That's why I posted it. Enjoy.
__________________
Alltribes.com
Native American Jewelry
Pottery, Baskets, Kachinas & More

X-cart Gold Version 4.0.17 Live
PHP 5.2.6
MySQL 4.1.25
(mt)
Reply With Quote
  #54  
Old 08-09-2006, 03:46 PM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

Default

For a Windows server, I had to nake the following change in product_images.tpl:
Find:
Code:
Image{$images[image].imageid}.src = "{$images[image].image_path}";
and replace with:
Code:
Image{$images[image].imageid}.src = "{$images[image].image_path|replace:"\\":"/"}";

There may be an easier or better way, but that was the only way I knew how to do it.
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
  #55  
Old 10-06-2006, 04:12 AM
 
PhilJ PhilJ is offline
 

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

Default Re: Easy dynamic thumbnail generation

Is it me or has some of the code in the examples on page 1 missing? Perhaps due to the forum upgrade... I can't seem to get the image swapping method working. Can anyone post their working code?

I notice that the plugin has just been updated with frame and overlay support
__________________
xcartmods.co.uk
Reply With Quote
  #56  
Old 10-06-2006, 03:39 PM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

Default Re: Easy dynamic thumbnail generation

The new forum messed up the image tags in the code.

where you see [img] blah blah blah [img]

you need to make a valid tag (i.e. <img src="" />
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
  #57  
Old 10-07-2006, 07:22 AM
 
PhilJ PhilJ is offline
 

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

Default Re: Easy dynamic thumbnail generation

Ahh ok, many thanks.
__________________
xcartmods.co.uk
Reply With Quote
  #58  
Old 10-09-2006, 06:30 AM
  mitash's Avatar 
mitash mitash is offline
 

X-Adept
  
Join Date: Jan 2006
Location: Australia
Posts: 450
 

Default Re: Easy dynamic thumbnail generation

Hello this is a great mod and I have been looking for it for a long time...

I am not sure what I am doing wrong....

I installed the plugin
I copied the file....

I have installed the store here...

http://www.purebaby.net.au/mitash/

Code:
{if $images ne ""} {capture name=dialog} <table width=100%> <tr> <td> <table> {section name=image loop=$images} {if $images[image].image_path|replace:"server path to remove":"home/pur6105/public_html/mitash/"} <tr><td>{thumb file=`$images[image].image_path` longside="100" link="false"}</td></tr> {/if} {/section} </table> </td> <td> <img src={$images[0].image_path|replace:"server path to remove":"home/pur6105/public_html/mitash/" } name="main_image"/> </td> </tr> </table> {/capture} {include file="dialog.tpl" title=$lng.lbl_detailed_images content=$smarty.capture.dialog extra='width="100%"'} {/if}

I want to be able to achieve something like this...

http://www.ebonist.nl/samenstellen/product.php?productid=16138&cat=248&page=1

I have added multiple images here...
However it is not working...

http://www.purebaby.net.au/mitash/product.php?productid=16219&cat=262&page=2

Please help!

Thanks in advance
Ash
__________________
eCommerce - Strategy / Design / Development / Marketing / Maintenance

Call within Australia:
Phone: 1300 648 274 | Mobile: 0417 241 950
Call outside Australia:
+61 417 241 950 |

Email:
results@mitash.com | Skype: mitashau | Web: www.mitash.com
Reply With Quote
  #59  
Old 10-09-2006, 10:24 AM
  Alltribes's Avatar 
Alltribes Alltribes is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 192
 

Default Re: Easy dynamic thumbnail generation

Code:
|replace:"server path to remove":"home/pur6105/public_html/mitash/"

Your problem is right there.

It should look like this:
Code:
|replace:"home/pur6105/public_html/mitash/":""

Just fix all the places that appears and it should work.
__________________
Alltribes.com
Native American Jewelry
Pottery, Baskets, Kachinas & More

X-cart Gold Version 4.0.17 Live
PHP 5.2.6
MySQL 4.1.25
(mt)
Reply With Quote
  #60  
Old 10-09-2006, 02:34 PM
  mitash's Avatar 
mitash mitash is offline
 

X-Adept
  
Join Date: Jan 2006
Location: Australia
Posts: 450
 

Default Re: Easy dynamic thumbnail generation

Thanks heaps for your reply...

I have modifed it to....

Code:
|replace:"home/pur6105/public_html/mitash/":""

However it still looks the same....

Here is my file....

Code:
{if $images ne ""} {capture name=dialog} <table width=100%> <tr> <td> <table> {section name=image loop=$images} {if $images[image].image_path|replace:"home/pur6105/public_html/mitash/":""} <tr><td>{thumb file=`$images[image].image_path` longside="100" link="false"}</td></tr> {/if} {/section} </table> </td> <td> <img src={$images[0].image_path|replace:"home/pur6105/public_html/mitash/":""} name="main_image"/> </td> </tr> </table> {/capture} {include file="dialog.tpl" title=$lng.lbl_detailed_images content=$smarty.capture.dialog extra='width="100%"'} {/if}

http://www.purebaby.net.au/mitash/pr...cat=262&page=2

Am not sure if I missed any step...
Thanks for helping with this...
__________________
eCommerce - Strategy / Design / Development / Marketing / Maintenance

Call within Australia:
Phone: 1300 648 274 | Mobile: 0417 241 950
Call outside Australia:
+61 417 241 950 |

Email:
results@mitash.com | Skype: mitashau | Web: www.mitash.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:03 PM.

   

 
X-Cart forums © 2001-2020