Page 21 of 33
Re: Announcement: New plug-in SuperSizer
Posted: Tue Jul 13, 2010 6:21 pm
by JeremyBASS
Why thanks.. I surely was not complaining ... but thank you for sure

cheers -Jeremy
Re: Announcement: New plug-in SuperSizer
Posted: Tue Jul 13, 2010 7:10 pm
by rubberglover
haha, I know you weren't complaining, but you've saved my clients (and therefore me!) an awful lot of trouble so it's the least I can do

Re: Announcement: New plug-in SuperSizer
Posted: Wed Jul 14, 2010 2:00 am
by kendo451
Trying to use this with the News module, news gives $entry->file_location as a URL instead of a path:
http://domain.com/uploads/news/entryid
Supersizer wants it in the form of a relative path from the root.
Other than writing a UDT to strip the domain off the $entry->file_location does anyone have a better idea?
Re: Announcement: New plug-in SuperSizer
Posted: Wed Jul 14, 2010 2:16 am
by calguy1000
Uploads does the same thing (provides the url to the image).
Re: Announcement: New plug-in SuperSizer
Posted: Wed Jul 14, 2010 3:17 am
by JeremyBASS
Um no I took care of that.. you can use a full url.. here is the test..
http://www.corbensproducts.com/users/1/ ... stStripURL
that code for that is example as it sits there is...
Code: Select all
<a name="testStripURL"></a>
<h3>Strip URL path test</h3>
{capture assign="testStripURL"}http://www.corbensproducts.com/uploads/images/IMG_5127(1).jpg{/capture}
<pre>{$testStripURL|escape:'htmlall'}</pre><br/>
{supersizer path=$testStrip height="400" alt="SMOOTH" subdir=$oneuser.id quality=55 filter="SMOOTH" arg_1=50 suffix="testStripURL" fill_attr=true strip_tags=true}
it does try to auto strips that but for a better way just use the strip_tags=true param.. that is a much more bullet proof way.. hope that helps.. Cheers
Re: Announcement: New plug-in SuperSizer
Posted: Wed Jul 14, 2010 3:54 am
by kendo451
Yes, strip_tags=true did the trick!
Found a bug?
Posted: Wed Jul 14, 2010 5:34 am
by kendo451
I found a bug, I think. At least it is an inconsistent performance.
This is using the latest version that you just posted.
When you feed the path= a URL instead of a relative path, then it fails, even when strip_tage=true.
See attached screenshot for the output.
Definitely a bug
Posted: Wed Jul 14, 2010 5:43 am
by kendo451
Ok, I have definitely confirmed it is a bug, but only when you feed the path a full url. strip_tags=true isn't solving the problem.
Re: Announcement: New plug-in SuperSizer
Posted: Wed Jul 14, 2010 1:59 pm
by JeremyBASS
hmm.. I'll take a look into it. tk -J
Re: Announcement: New plug-in SuperSizer
Posted: Wed Jul 14, 2010 2:09 pm
by JeremyBASS
Ok.. please try this one.. it should match better now as it has this regex
[http|https]://(.*?)/(.*?)
tested here
http://www.corbensproducts.com/users/1/ ... stStripURL
also I have the scale in for the crop.. tesded here
http://www.corbensproducts.com/users/1/ ... #cropscale
Let me know if there is still an issue please.. Cheers
Re: Announcement: New plug-in SuperSizer
Posted: Wed Jul 14, 2010 2:12 pm
by JeremyBASS
Helps if I put the file up I requestion the test on

.. tk
Re: Announcement: New plug-in SuperSizer
Posted: Wed Jul 14, 2010 2:26 pm
by kendo451
Actually, Jeremy, if you look at the filepath it printed in the screenshot I attached above, you can see the problem. It is splitting the full url on the // instead of splitting it on the slash that follows the domain.
I'll test this new version and get back to you today.
Re: Announcement: New plug-in SuperSizer
Posted: Wed Jul 14, 2010 3:04 pm
by JeremyBASS
Yeah I figured that it was only getting the http:// there from your screen shot.. It turned out that what I posted didn't have the extra test for the full url.. I must have dropped it. but this last post does and should restore that feature. Let me know if there is an issue.. the test atm shows it to be working so it should be ok.. cheers -Jeremy
Re: Announcement: New plug-in SuperSizer
Posted: Wed Jul 14, 2010 5:51 pm
by JeremyBASS
I have updated the params to go with this next release..
the wiki docs
I just need a confirmation from kendo451 or anyone else that the strip_tag solved the
http://domain.tld/ issue that some modules output with the image path.
Re: Announcement: New plug-in SuperSizer
Posted: Thu Jul 15, 2010 12:20 pm
by NikNak
Hi Jeremy
Post shortened (not helpfull to anyone) - I was being dumb!
using:{supersizer path=$pic|replace:$gCms->config.root_url:'' width='190' height='95' URL=true protect=0 crop='true' subdir='people' assign="thumbpic" passthru="true" quality=90 crop="center,center" debug=true }
outputs no image. I also tried the striptags with path=$pic but that really messed the path up.
Nik