Page 28 of 33
Re: Announcement: New plug-in SuperSizer
Posted: Mon Nov 08, 2010 6:46 pm
by rubberglover
Thanks for the response Jeremy... I am all up to date and still have a problem. I'm using:
CGExtensions 1.20
CGBlog 1.6.3
CGSimpleSmarty 1.4.5
CMSMS 1.9 (problem was the same on CMSMS v1.
The problem is a CGBlog issue I think... If I completely take supersizer out of the equation it's still not right. If I post a new blog, add an image via an image custom field, the post registers as complete but the image never uploads. Say if the post ID is '1', a folder is created in the uploads folder - 'uploads/cgblog/id1/' but it's empty. If I browse back to the post it gives me the option to delete the file, but just shows '1' where the filename should be... (see screen shot below).
Is this the problem that you fixed with Calguy a while back or is this something new? I know it's not strictly relevant here but I just want to find out if this problem is the one that you just mentioned or whether this is a different problem!
Many thanks,
Andy
Re: Announcement: New plug-in SuperSizer
Posted: Mon Nov 08, 2010 6:56 pm
by JeremyBASS
It's completely possble that I have the only fixed version... I have no idea if it's been published...
Re: Announcement: New plug-in SuperSizer
Posted: Mon Nov 08, 2010 6:57 pm
by kendo451
I have found that happens if you upload the same image a second time without deleting it first.
Try this:
1. Delete the image from that field in CGBlog.
2. Go in your uploads folder and find the cgblog folder for that entry, and make sure the image file has been deleted.
3. Then go back into CGBlog and try uploading an image in the image field.
Re: Announcement: New plug-in SuperSizer
Posted: Mon Nov 08, 2010 7:38 pm
by rubberglover
Thanks for the tip, but unfortunately this happens right off the bat... if I have a fresh install and I make a brand new post (uploads/cgblog is empty), it creates the ID folder in the uploads/CGblog folder, but doesn't actually upload the file...
Hopefully Jeremy has the only fixed version and Calguy will release an update soon (wink wink)
I don't know how many people use the custom fields for image uploads so it may not have been encountered all that much, but i'd be interested to know if anyone else has had this issue with v1.6.3 of CGBlog?
Thanks for trying guys!
Andy
Re: Announcement: New plug-in SuperSizer
Posted: Mon Nov 08, 2010 8:10 pm
by kendo451
I also had the issue, but couldn't upload the images at all. Put in a bug report about a week ago.
Re: Announcement: New plug-in SuperSizer
Posted: Mon Nov 08, 2010 10:04 pm
by JeremyBASS
looks like the new CGExtensions is out... that should fix it.. try it out.. hth cheers -J
Re: Announcement: New plug-in SuperSizer
Posted: Tue Nov 09, 2010 6:19 pm
by rubberglover
Thanks for the tip Jeremy... tried it, but unfortunately the problem remains. Can upload files via file manager no problem. Ah well, hopefully it will be sorted soon. Did the update change anything for you kendo?
Re: Announcement: New plug-in SuperSizer
Posted: Tue Nov 16, 2010 12:05 am
by kendo451
No joy.
Re: Announcement: New plug-in SuperSizer
Posted: Fri Nov 19, 2010 1:19 pm
by pukka
Hello,
I'm trying to apply supersizer to my template but get the following error message on the frontend:
----------------------------------------------------------------------
There is a path issue with the orginal image!
Does this look right?
Path:
www.mywebsite.co.uk/uploads/Products/pr ... 3217-b.jpg
----------------------------------------------------------------------
Below is the template i'm using:
-------------------------------------------------------------------
{if isset($catformstart)}
{$catformstart}
{$catdropdown}{$catbutton}
{$catformend}
{/if}
{foreach from=$items item=entry}
{assign var=imglocation value=$entry->file_location}
{assign var='products_image' value=$entry->fields.image1->value|default:$entry->fields.image2->value|default:$entry->fields.image3->value|default:$entry->fields.image4->value|default:''}{*choose first not empty image field*}
{if !empty($products_image)}
detail_url}">
{supersizer path="$imglocation/$products_image" height="370"}
{/if}
detail_url}">{$entry->product_name}
{$currency_symbol}{$entry->price|number_format:2}
{* include the cart
{cge_have_module m='CGEcommerceBase' assign='tmp'}
{if $tmp}
{cgecomm_form_addtocart product=$entry->id}
{/if}
*}
{/foreach}
-------------------------------------------------------------------
Thanks.
Re: Announcement: New plug-in SuperSizer
Posted: Fri Nov 19, 2010 3:05 pm
by nicmare
did you try strip_tags?
Re: Announcement: New plug-in SuperSizer
Posted: Fri Nov 19, 2010 3:38 pm
by pukka
How do i do that?
I'm still working my way up with smarty.
Re: Announcement: New plug-in SuperSizer
Posted: Fri Nov 19, 2010 3:40 pm
by nicmare
Re: Announcement: New plug-in SuperSizer
Posted: Fri Nov 19, 2010 4:40 pm
by pukka
nicmare you rock!!!
It worked.
For anyone who might need it, i added the striptags like so:
{supersizer path="$imglocation/$products_image" height="370" strip_tags="true"}
Re: Announcement: New plug-in SuperSizer
Posted: Fri Nov 19, 2010 8:15 pm
by pukka
Now something odd is happening.
Some of the images are not showing up on the front-end of the website. ???
Any ideas.
[SOLVED] Images were not appearing due to the client uploading images that were smaller than the size specified in supersizer.
Feedback on crop
Posted: Fri Nov 19, 2010 8:17 pm
by kendo451
Jeremy, I've been using the current beta on a couple of projects now to crop product images.
The problem is that the customer-supplied product photos are highly variable in size, so you can use a percentage to crop, because the percentage depends on the size of the original compared to the size of the cropped-image.
So I have to call SuperSizer twice: once to resize the image to the target width or height, then call it again to crop, now that I know the percent is 100%.
If you're interested in re-doing the crop function so you can consistently scale and crop in one go, I'll be happy to share my code.