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

create thumbs from large image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 09-02-2006, 09:18 PM
 
vulcan-works vulcan-works is offline
 

Senior Member
  
Join Date: Feb 2004
Posts: 143
 

Red face Re: create thumbs from large image

Quote:
Originally Posted by mrkenzie
Did you copy function.thumb.php into your Smarty -> plugins directory?

omg i cant believe im that numb, i put it in my live site directory not my testing one, which im using for this
-thanks
__________________
X-cart--4.7.12

vulcanworks.net
Reply With Quote
  #12  
Old 09-04-2006, 01:49 AM
  2019's Avatar 
2019 2019 is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 76
 

Default Re: create thumbs from large image

thank you very much for the mod!
can you include a watermark code for this?
i will be very happy
keep up the good work
cheers!
__________________
// x-cart 4.1.9

X-CART CSS SKIN
XC SEO
IP Addresses in Users Online for all users
Color coded order status
Reply With Quote
  #13  
Old 09-06-2006, 01:15 PM
 
cmec321 cmec321 is offline
 

Member
  
Join Date: Sep 2006
Posts: 22
 

Default Re: create thumbs from large image

this is without implementing your code, just out of box x-cart install.

really weird. I guess this is part of x-cart? upload thumbnail and product image for lets say comic book and save it.

then delete comic book product image. customer view will still show a picture in the product image and it's from the thunbmail.

am using image location, file server.
__________________
4.1.3
Reply With Quote
  #14  
Old 11-06-2006, 12:39 AM
 
showoff showoff is offline
 

Member
  
Join Date: Apr 2004
Posts: 27
 

Default Re: create thumbs from large image

Nice mod, just what I´m looking for.
But it did require some extra work to get it working on v4.1.3

I doublechecked all your instructions but I kept getting SQL errors on my pages.
I found out that the SQL-error disappears when I remove 'as' from the line
Code:
$fields[] = "$sql_tbl[images_P].image_path as ";
in func.product.php.

Now the thumbs do work when viewing a product, but when viewing the products in a categorie (products.tpl) they still aren´t passed using the thumb function. instead they are generated by image.php, which means that for product_thumbnail.tpl both the $tmbn_path_p and $tmbn_path_t variables are empty. Why isn´t func.product.php filling those?
__________________
Showoff Imports.nl - Largest Tuning Store of Europe
-----------------------------------
Currently using X-Cart 4.1.3
Reply With Quote
  #15  
Old 11-06-2006, 05:42 AM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

Default Re: create thumbs from large image

This:
Code:
$fields[] = "$sql_tbl[images_P].image_path as ";

should be:
Code:
$fields[] = "$sql_tbl[images_P].image_path as p_image_path";
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
  #16  
Old 11-09-2006, 07:57 AM
  Terrybraley's Avatar 
Terrybraley Terrybraley is offline
 

Senior Member
  
Join Date: Oct 2005
Location: Atlanta Georgia
Posts: 142
 

Default Re: create thumbs from large image

In step 3.
>In include\func\func.product.php

I dont see a "func" folder in my "include" folder?
__________________
Road Rash Apparel LLC
www.roadrashapparel.com

X-Cart Gold Ver.4.1.8
DSEFU Mod
PHP 4.3.11
MySQL server 4.1.22-max-log
MySQL client 5.0.18
Web server Apache
Operation system Linux
Perl 5.008
XML parser (expat) 1.95.6
Reply With Quote
  #17  
Old 11-09-2006, 01:24 PM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

Default Re: create thumbs from large image

It is in the root of your xcart install, not the skins1 folder.
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
  #18  
Old 11-10-2006, 03:28 AM
  Terrybraley's Avatar 
Terrybraley Terrybraley is offline
 

Senior Member
  
Join Date: Oct 2005
Location: Atlanta Georgia
Posts: 142
 

Default Re: create thumbs from large image

I know where the "include" folder is. I'm saying I don't see a "func.product.php" file.
__________________
Road Rash Apparel LLC
www.roadrashapparel.com

X-Cart Gold Ver.4.1.8
DSEFU Mod
PHP 4.3.11
MySQL server 4.1.22-max-log
MySQL client 5.0.18
Web server Apache
Operation system Linux
Perl 5.008
XML parser (expat) 1.95.6
Reply With Quote
  #19  
Old 11-10-2006, 05:56 AM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

Default Re: create thumbs from large image

Is there a func folder inside the include folder?
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
  #20  
Old 11-10-2006, 11:49 AM
  Terrybraley's Avatar 
Terrybraley Terrybraley is offline
 

Senior Member
  
Join Date: Oct 2005
Location: Atlanta Georgia
Posts: 142
 

Default Re: create thumbs from large image

You posted:
3. This step modifies the product.php page so that when you are searching, it returns the path to the product image.
In include\func\func.product.php find the following:

This is where I got lost " include\func\func.product.php"

No func inside the include folder
__________________
Road Rash Apparel LLC
www.roadrashapparel.com

X-Cart Gold Ver.4.1.8
DSEFU Mod
PHP 4.3.11
MySQL server 4.1.22-max-log
MySQL client 5.0.18
Web server Apache
Operation system Linux
Perl 5.008
XML parser (expat) 1.95.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 05:39 AM.

   

 
X-Cart forums © 2001-2020