Hi Duketown,
I really appreciate all of the work you guys have done to this module. Yes I am using your last revision 0.2.6.
Well exif_imagetype is a nice function , but it appears that most of the PHP compilations does not have that included , so it gives an error when upload image. On the other hand getimagesize() is doing the same thing , but is a bit slow than
exif_imagetype.
"When a correct signature is found, the appropriate constant value will be returned otherwise the return value is FALSE. The return value is the same value that getimagesize() returns in index 2 but exif_imagetype() is much faster."
see more at:
http://php.net/manual/en/function.exif-imagetype.php
Duketown I will try to offer the best solution based on my knowledge. I am also count on all of you to help with suggestions to improve the posted code, like I said I am not a senior programmer , but I Need the module working for a client of mine very soon. And I see many other folks are needing the module too.
This is the best simple e-comers module so far. I 'd like to make an integration (an option in Settings) between Cart Made Simple and NMS when somebody fill up the billing in Add to Cart module on check out their email and name will be added to NMS for featured newsletters.
The code I have provided in my previous post fixed the creation of thumbnails with th_ at the front.
Here is another nice addition to the module (Fancy pop up box option on every thumbnail when you open a category) :
action.fe_product_list.php on line 278 add
Code: Select all
// creates the original path to the image
$onerow->original_prodimage = $config['root_url'].'/uploads/images'.$pathproduct.$picture['image'];
// reads from images table to print image decs in alt tag and title
$onerow->image_descr = $picture ['description'];
1. Isntall JQueryTools module and add {JQueryTools action=incjs} to your Template in the HEAD section
2. Then go to Templates- > Category & Products template and add:
{literal}
jQuery(document).ready(function() {
jQuery('.fancybox').fancybox();
});
{/literal}
3.In the same template find this line
{if $prodimage!='*none'}
{image src=$entry->prodimage alt=$entry->proddesc}
and replace with
Code: Select all
<a href="{$entry->$original_prodimage}" title="{$entry->image_descr}" class="fancybox" rel="album">{image src=$entry->prodimage alt=$entry->image_descr}</a>
Done ! now you have nice pop up for every thumb in every category.
Duketown let me know what do you think. It is up to you whether or not you are going to include those changes in the module. It is your development after all.
Regards,
cms_man