
Announcement: New plug-in SuperSizer
Re: Announcement: New plug-in SuperSizer
Why thanks.. I surely was not complaining ... but thank you for sure
cheers -Jeremy

-
- Forum Members
- Posts: 53
- Joined: Mon Jul 23, 2007 5:30 pm
Re: Announcement: New plug-in SuperSizer
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
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?
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?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Announcement: New plug-in SuperSizer
Uploads does the same thing (provides the url to the image).
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Announcement: New plug-in SuperSizer
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...
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
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
Found a bug?
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.
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.
Last edited by kendo451 on Wed Jul 14, 2010 6:56 am, edited 1 time in total.
Definitely a bug
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.
Last edited by kendo451 on Wed Jul 14, 2010 6:46 am, edited 1 time in total.
Re: Announcement: New plug-in SuperSizer
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
[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
Helps if I put the file up I requestion the test on
.. tk

- Attachments
-
[The extension txt has been deactivated and can no longer be displayed.]
Re: Announcement: New plug-in SuperSizer
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.
I'll test this new version and get back to you today.
Re: Announcement: New plug-in SuperSizer
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
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.
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.
Last edited by JeremyBASS on Wed Jul 14, 2010 5:58 pm, edited 1 time in total.
Re: Announcement: New plug-in SuperSizer
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
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
Last edited by NikNak on Thu Jul 15, 2010 3:44 pm, edited 1 time in total.