2 of 3
2
Plugin: Extract URL Plus
Posted: 12 July 2007 09:39 AM   [ Ignore ]   [ # 19 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  203
Joined  02-10-2006

With this can you tell it which path to pull: for example

http://www.domain.com/path1/path2/myphoto.jgp

I am needing to pull only the first path1

thanks
bjs

Profile
 
 
Posted: 12 July 2007 10:09 AM   [ Ignore ]   [ # 20 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

Not yet, though I may look into this along with some minor bug fixes for a later version. Watch this space.

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 01 August 2007 08:51 AM   [ Ignore ]   [ # 21 ]  
Grad Student
Avatar
Rank
Total Posts:  76
Joined  03-14-2007

I’m trying to use this plugin with phpThumb.  phpThumb is a thumbnail generator that creates thumbnail images via a URL. 

Basically I allow a user to upload an image.

This is the code i’m using now to try and display that image - obviously src is wrong

<a href="{url_title_path="{my_template_group}/submission}" title="{title}"> <img src="{custom_tag}&w=108&h=94"/></a>

How would i use extract URL to display the path before the {custom_tag} parameter?

In other words, can extract URL spit out something like:

<a href="{url_title_path="{my_template_group}/submission}" title="{title}"> <img src="/images/uploads/filename.jpg&w=108&h=94"/></a>

 Signature 

VisualDiner.com - Your Design Community

Profile
 
 
Posted: 01 August 2007 09:09 AM   [ Ignore ]   [ # 22 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

Sorry Sherills, not quite sure I follow?

{custom_tag} contains your url?

If so, try:

{exp:extract_url_plus url="{custom_tag}"}
<a href="{url_title_path="{my_template_group}/submission}" title="{title}">
    <img src="
/{path}{fullfilename}&w=108&h=94"/>
</a>
{/exp:extract_url_plus}

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 01 August 2007 09:57 AM   [ Ignore ]   [ # 23 ]  
Grad Student
Avatar
Rank
Total Posts:  76
Joined  03-14-2007

I’m sorry, I wasn’t very clear.

I am currently using the “extract_url” plugin in conjunction with phpThumb (a thumbnail generator), but the basic “extract_url” (not extract_url_plus) seems very limited in what it can do.

Here is exactly what my code currently looks like:

<a href="{url_title_path="{my_template_group}/submission}" title="{title}"><img src="/phpThumb/phpThumb.php?src={exp:extract_url}{art_upload}{/exp:extract_url}&w=108&h=94"/></a>

{art_upload} is simply a custom field in which a user can submit his/her artwork - so it’s an image file.

With this current set up, when I view the source of the image that is created, the path looks like this:

http://www.mydomain.com/phpThumb/phpThumb.php?src=http://www.mysite.com/images/uploads/filename.jpg&w=108&h=94

Instead what I want it to display is:

http://www.mydomain.com/phpThumb/phpThumb.php?src=/images/uploads/filename.jpg&w=108&h=94

So that the src is local instead of the full path.  Is this possible with extract_url_plus and if so, what would that look like?

Thanks so much for helping with this.

 Signature 

VisualDiner.com - Your Design Community

Profile
 
 
Posted: 01 August 2007 10:09 AM   [ Ignore ]   [ # 24 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

Ah right - in that case my example above should be all that you require I believe smile

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 01 August 2007 10:27 AM   [ Ignore ]   [ # 25 ]  
Grad Student
Avatar
Rank
Total Posts:  76
Joined  03-14-2007

I tried using the following and it didn’t work, I get a “No URL Found” message.

Here’s my exact code:

{exp:extract_url_plus url="{art_upload}"} <a href="{url_title_path="{my_template_group}/submission}" title="{title}"><img src="http://www.visualdiner.com/phpThumb/phpThumb.php?src=/images/uploads/{fullfilename}&w=108&h=94"/></a>{/exp:extract_url_plus}

I know that’s not right - but how would it look?

 Signature 

VisualDiner.com - Your Design Community

Profile
 
 
Posted: 01 August 2007 10:58 AM   [ Ignore ]   [ # 26 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

Sherills,

Are you using the latest version?

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 01 August 2007 11:04 AM   [ Ignore ]   [ # 27 ]  
Grad Student
Avatar
Rank
Total Posts:  76
Joined  03-14-2007

I’m using version 1.3.1

 Signature 

VisualDiner.com - Your Design Community

Profile
 
 
Posted: 01 August 2007 12:36 PM   [ Ignore ]   [ # 28 ]  
Grad Student
Avatar
Rank
Total Posts:  76
Joined  03-14-2007

Is 1.3.1 the latest version?  If not where can i get the latest?

Also, was there anything wrong with my code?

{exp:extract_url_plus url="{art_upload}"} <a href="{url_title_path="{my_template_group}/submission}" title="{title}"><img src="http://www.visualdiner.com/phpThumb/phpThumb.php?src=/images/uploads/{fullfilename}&w=108&h=94"/></a>{/exp:extract_url_plus}

 Signature 

VisualDiner.com - Your Design Community

Profile
 
 
Posted: 01 August 2007 07:01 PM   [ Ignore ]   [ # 29 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  864
Joined  04-14-2007

Hi, I just installed this extension because I’m interested in using only the file name (and it’s extension) that is associated with a custom field I’ve created for uploading images.

Currently my custom field tag returns the full path to the file; e.g http://www.my site.com/images/uploads/16.jpg.

I would rather not use the full path to the image. I was hoping that I could use this plugin to grab only the filename and file extension and append the last segment of a relative path to make the path dynamic; e.g.

<img src="/index.php/images/uploads/{exp:extract_url_plus show="% filename.% extension (% filesize)"}{custom_upload_field}{/exp:extract_url_plus}

The trouble I’m experiencing is that when I place these tags within my EE weblog tag the plugin returns % filename.% extension (% filesize) rather then the actual data.

//testing with
{exp:weblog:entries orderby="date" sort="desc" limit="12" weblog="myBlog" }
{exp
:extract_url_plus show="% filename.% extension (% filesize)"}
{custom_upload_field}
{
/exp:extract_url_plus}
{
/exp:weblog:entries}

Would it be possible to tell me if I’m formatting this correctly.

When I test the plugin on a URL directly (not a variable) it works as I expect it to. When I drop in a custom field variable it does not.

I’m using the following version Extract URL Plus (v.1.3.1).

 Signature 

Michael Rubens | hothousegraphix
Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that’s creativity. - Charles Mingus

Profile
 
 
Posted: 02 August 2007 02:56 AM   [ Ignore ]   [ # 30 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

uou must remove the space between the % and the name of variable. (the forums here don’t like ” &#xth;is “)

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 02 August 2007 12:26 PM   [ Ignore ]   [ # 31 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  864
Joined  04-14-2007

Thank you very much, that was it.

 Signature 

Michael Rubens | hothousegraphix
Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that’s creativity. - Charles Mingus

Profile
 
 
Posted: 07 August 2007 06:52 AM   [ Ignore ]   [ # 32 ]  
Summer Student
Total Posts:  25
Joined  04-07-2007

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:

<img src="/images/phpThumb/phpThumb.php?src={exp:extract_url_plus show="&#xfi;lename.&#xex;tension"}{myimage}{/exp:extract_url_plus}&w=150&h=150"/>


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?

Profile
 
 
Posted: 07 August 2007 07:11 AM   [ Ignore ]   [ # 33 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

{exp:extract_url_plus url="http://www.mysite.com/uploads/images/myimage.jpg"}
/images/phpThumb/phpThumb.php?src=/{path}{fullfilename}
{
/exp:extract_url_plus}

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 07 August 2007 07:53 AM   [ Ignore ]   [ # 34 ]  
Summer Student
Total Posts:  25
Joined  04-07-2007

butcher.

How am I to know the exact url? (extract_url_plus url=”.....”)These are image people have uploaded.

{exp:extract_url_plus url="http://www.mysite.com/uploads/images/myimage.jpg"}
/images/phpThumb/phpThumb.php?src=/{path}{fullfilename}
{
/exp:extract_url_plus}

Profile
 
 
Posted: 07 August 2007 08:25 AM   [ Ignore ]   [ # 35 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

Just put url=”{your_custom_field}”

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 07 August 2007 08:37 AM   [ Ignore ]   [ # 36 ]  
Summer Student
Total Posts:  25
Joined  04-07-2007

Here’s my code:

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

This says No url Found.

Profile
 
 
   
2 of 3
2
 
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: 64877 Total Logged-in Users: 69
Total Topics: 81804 Total Anonymous Users: 43
Total Replies: 439748 Total Guests: 307
Total Posts: 521552    
Members ( View Memberlist )
Newest Members:  dxrsmdanbilly8hrkiliwysso50kexpressoKlaasdarrenstylestravelerjcatoncvadrata