Hi, I’m having the same problem as sherrills (above) and am also using this in conjunction with phpThumb. I’m sot sure I saw a solution for the problem.
The old extract url works fine with phpThumb, it just gives you the full url to the image. But for better performance, I’d like to use relative paths instead of absolute.
Here is my code:
/images/phpThumb/phpThumb.php?src={exp:extract_url_plus show=
The custome field {myimage) contains a url.
What I want is for extract url to strip the image url from “http://www.mysite.com/uploads/images/myimage.jpg” to “/uploads/images/myimge.jpg”
Am I using this correctly?
I am having problems getting filesize to work, it seems to return nothing. I have got the filesizer plugin to work, but I would really like to use this one instead because I want to extract the filename too.
Do you have any ideas why this is? Could it be a server problem?
I’ve changed the docpath in the file to my document root…
Does the filesize work if you give an exact url (http://www.site.com/files/file.pdf), or do you need to use realtive URLS (/files/file.pdf)?
I think the php filesize() method only works with relative URLs and i’ve been testing your plugin using absolute URLs. So that might be the problem?
Now i have started using relative URLs I am getting “No URL Found” error, so I guess I have setup the paths incorrectly.
currently the directory+filename is a custom field “https://ellislab.com/asset/images/team-photo/file.pdf” and outputs “/files/file.pdf”. This works fine with EE for linking to images etc, but extract_url_plus doesnt seem to like it.
I’ll experiment for a bit…
edit Does this plugin require the http://domain.com to be in the file path in order to work? I can get it working (including filesize) using
{exp:extract_url_plus show="% path % fullname % filesize"}
http://www.domain.com{custom_field}
{/exp:extract_url_plus}
but strangely having an absolute URL of http://www.domain.com/files/file.pdf doesnt return the file size?
Hi joobs,
You must give the plugin a full url, it won’t recognise a path, e.g., “/files/file.pdf”.
If you supply “http://www.example.com/files/file.pdf” and you’ve set the document root to say “/var/www/html/”, the plugin will assume the file lives at “/var/www/html/files/file.pdf” and check first if it exists and what the size is if it does.
Hey butcher,
Awesome plugin(!!) but spaces in the filename still cause a “No URL Found” to show.
Is there a way that we can show a generic image for, say, Word docs? I’m using this along with Mark’s File plugin and am displaying both images and Word docs and would like an icon for the Word docs.
Thanks again for an awesome tool!!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.