3 of 3
3
Plugin: Extract URL Plus
Posted: 07 August 2007 09:02 AM   [ Ignore ]   [ # 37 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

Hmm, perhaps try the alternative implementation:

{exp:extract_url_plus show="/images/phpThumb/phpThumb.php?src=/% path % fullfilename"}
{myimage}
{
/exp:extract_url_plus}

(Removing spaces between % and variable name)

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 10 September 2007 09:45 AM   [ Ignore ]   [ # 38 ]  
Lab Assistant
RankRank
Total Posts:  271
Joined  07-04-2007

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…

Profile
 
 
Posted: 10 September 2007 10:16 AM   [ Ignore ]   [ # 39 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

Do you have an odd setup? I can’t see why this would normally fail.

Can you provide a URL to an example file, your document root, and where in your file system the file resides - a PM will do if you’re uncomfortable revealing that kind of information on a public board.

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 10 September 2007 11:28 AM   [ Ignore ]   [ # 40 ]  
Lab Assistant
RankRank
Total Posts:  271
Joined  07-04-2007

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 “{filedir_1}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?

Profile
 
 
Posted: 10 September 2007 01:11 PM   [ Ignore ]   [ # 41 ]  
Lab Assistant
RankRank
Total Posts:  271
Joined  07-04-2007

Another question, Is it possible to show no decimal places? setting filesize_precision to 0 seems to go back to the default of 2.

Profile
 
 
Posted: 10 September 2007 06:28 PM   [ Ignore ]   [ # 42 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

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.

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 20 September 2007 11:10 PM   [ Ignore ]   [ # 43 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  327
Joined  04-02-2007

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!!

Profile
 
 
Posted: 22 September 2007 01:56 PM   [ Ignore ]   [ # 44 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

Hi svh1,

Can’t help regarding the spaces thing (filenames should not include spaces).  As for the word doc icon? Sure just make one and dump it in with the rest of the icons that come with the file extension.

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 23 September 2007 01:17 PM   [ Ignore ]   [ # 45 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6077
Joined  08-04-2002

Using both examples from the docs…all variables get returned except for % filesize. It’s extracting a standard .jpg file.
Any ideas why that isn’t returned? (yes, all spaces are removed)

Edit-Add: Tried editing the plugin file and changing the docpath using the same “server path” as is used for the EE file upload settings. None of the variations I tried worked. Hosted on EngineHosting if that helps.

Profile
 
 
Posted: 26 September 2007 11:00 PM   [ Ignore ]   [ # 46 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  130
Joined  03-29-2006

Getting “No URL Found” with this code. I have the setting for “Automatically turn URLs and email addresses into links?” set to “no” for the weblog, and have also confirmed that it’s outputing the URL specified.

For example: http://www.google.com/

Using latest version: 1.3 - 17 April 2007 and latest Expression Engine

Note: Code below has added spaces to correctly output here otherwise it looked like this: o;main

{exp:extract_url_plus show="% domain.% tld"}{headline_url}{/exp:extract_url_plus}

 Signature 

Adam Stacoviak
Handcrafted

Profile
 
 
Posted: 27 September 2007 05:45 AM   [ Ignore ]   [ # 47 ]  
Lab Assistant
RankRank
Total Posts:  140
Joined  09-06-2006

I am also getting the No URL Found error

{exp:weblog:entries  weblog="listing" }
{exp
:extract_url_plus show="&#xfu;llfilename"}
{image
-1}
{
/exp:extract_url_plus}

{
/exp:weblog:entries}

image-1 is a image added with the ee file upload utility

If this helps, if I just use

{image-1}

in my template I get the url (no img tags)

http://domain.ca/hart/images/uploads/42crawford.jpg


I have also used the file upload extension but still get the same error.

Profile
 
 
Posted: 27 September 2007 06:03 AM   [ Ignore ]   [ # 48 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

Hmm.  Expect to see a new release shortly with all of these recent issues addressed. To everyone who has an unsolved issue, above, you’ll receive a PM when it’s ready smile

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 27 September 2007 08:32 AM   [ Ignore ]   [ # 49 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  130
Joined  03-29-2006

AWESOME! Your plugin is helping me keep the entries for this weblog “DRY” by extracting the domain and TLD out of a specific custom field instead of forcing the user to duplicate data and repost a shortened version of the resourced url.

Got a donation link?

 Signature 

Adam Stacoviak
Handcrafted

Profile
 
 
Posted: 30 September 2007 11:08 AM   [ Ignore ]   [ # 50 ]  
Lab Assistant
RankRank
Total Posts:  140
Joined  09-06-2006

excellent, looking forward to the update

Profile
 
 
Posted: 02 October 2007 11:27 AM   [ Ignore ]   [ # 51 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  246
Joined  02-26-2004

also looking forward to it! Thanks!

Profile
 
 
Posted: 03 October 2007 09:40 AM   [ Ignore ]   [ # 52 ]  
Lab Assistant
RankRank
Total Posts:  239
Joined  12-06-2002

And looking forward to it too!

Profile
 
 
Posted: 26 October 2007 05:38 AM   [ Ignore ]   [ # 53 ]  
Lab Assistant
RankRank
Total Posts:  140
Joined  09-06-2006

any update if this plugin will be having an update ?

Profile
 
 
Posted: 26 October 2007 09:50 AM   [ Ignore ]   [ # 54 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

This plugin has been replaced by Extract URL Plus 2.

Please use the newer version.

 Signature 

(a.k.a the_butcher)

Profile
 
 
   
3 of 3
3
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64881 Total Logged-in Users: 59
Total Topics: 81806 Total Anonymous Users: 46
Total Replies: 439767 Total Guests: 306
Total Posts: 521573    
Members ( View Memberlist )
Newest Members:  Dynamic1justingpticketjendicottdxrsmdanbilly8hrkiliwysso50kexpressoKlaas