URL Field Extension
Posted: 02 June 2008 07:26 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  246
Joined  04-12-2008

Hi

Just finished creating my first extension based on this thread.

The latest version including a short documentation can be found here:

URL Field Extension for Expressionengine

I really love EE, don’t get me wrong, but one thing i have to rant about is the missing API for developers. Hooks and all are nice, but if you have use preg_replace so many parts of HTML code to build-in your functionality the happyness stops. I just hope EE 2.0 will correct this and provide a better API for developers.

 Signature 

Designchuchi | Twitter

URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension

Profile
 
 
Posted: 02 June 2008 08:54 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6403
Joined  04-15-2006

Peter,

Let me be the first to say a very big well done on this one. A fantastic little extension that does exactly what it says on the tin and then some!! wink

Brilliant addition to ExpressionEngine. Thanks again!

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 02 June 2008 11:16 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  365
Joined  11-29-2005

Peter,

Great work.  I just posted a request for this last week, and here it is!  Bravo.

Ben

 Signature 

e x p design: a consultative approach to web site design and development.
- - -
EE Pro Network | Expression Engine Install Best Practices
- - -
Nominate Leevi Graham’s Extensions!—I did.

Profile
 
 
Posted: 21 June 2008 09:23 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  347
Joined  04-23-2008

This might be totally missing the point of your extension, but would it be possible to add an option to remove the formatting that is produced through this field type? I wanted to do something like this:

<a href="{url_field}">Source</a>

I know this can be done with a standard text field, but I think the validation check is a good idea. I’ll be having some more novice computer users updating the site, so it would be great if the validation check can give them a sense of pattern for publishing.

Cheers!

 Signature 

Danny, your poor-man’s EE designer for hire/help.

Profile
 
 
Posted: 21 June 2008 10:00 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  246
Joined  04-12-2008

Hi

I’m not aware of any formatting issues? You can chose the url_field (as any other field type) not to have any formatting.

If I type “http://www.example.com” in the url_field, the url is returned exactly as is.

 Signature 

Designchuchi | Twitter

URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension

Profile
 
 
Posted: 21 June 2008 05:26 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  347
Joined  04-23-2008

That’s odd.. I’m not getting the same results. When I try and edit the formatting for the URL Field, it basically says that “Text formatting is not available for your chosen field type”.

When I plug in {source} into a template, which is the name of my URL field, I get this outputted:

<a href="http://hypebeast.com/2008/06/nike-blazer-lax-los-angeles-exclusive/">http://hypebeast.com/2008/06/nike-blazer-lax-los-angeles-exclusive/</a>

Seems formatting is done automatically, so I can’t specify a name for the link. Ideas are appreciated.

 Signature 

Danny, your poor-man’s EE designer for hire/help.

Profile
 
 
Posted: 21 June 2008 05:36 PM   [ Ignore ]   [ # 6 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6403
Joined  04-15-2006

Try going to :

Admin->Weblog Administration->Weblog Management->Edit Preferences (Your Weblog Name)->Weblog Posting Preferences->

You should see an option that says :

Automatically turn URLs and email addresses into links?

Change that to No and see if that fixes it?

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 21 June 2008 09:58 PM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  246
Joined  04-12-2008

Thanks Mark, faster as usual raspberry

That should chang the behaviour indeed mr_dimsum, please report back if not.

 Signature 

Designchuchi | Twitter

URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension

Profile
 
 
Posted: 28 October 2008 10:02 AM   [ Ignore ]   [ # 8 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  572
Joined  08-31-2005

one question/bug/feature request… it seems that it only validates the field when you click the little icon. I was assuming that it would check it on a submission. I can’t assume that my users will actually remember to push the link button every time. I want to be sure they have a correctly formed url even if they don’t remember to push the icon button.

Also, I noticed that it doesn’t see https:// as a valid url link.

Profile
 
 
Posted: 28 October 2008 02:54 PM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  246
Joined  04-12-2008

Hi

Thanks for getting back to us, we’re aware of the fact that this functionality is not included in the current release, but we’ll incorporate it for the next one.

Currently, we’ve our hands pretty full with client work, as soon as it gets better, we’re release a new version along with an entire new extension (something cool for freeform wink.

Regards
Peter.

 Signature 

Designchuchi | Twitter

URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension

Profile
 
 
Posted: 29 October 2008 04:29 PM   [ Ignore ]   [ # 10 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  572
Joined  08-31-2005

can’t wait for the new updates! right now i can’t really use the extension, because I need the https:// support.

Profile
 
 
Posted: 31 October 2008 03:07 PM   [ Ignore ]   [ # 11 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  246
Joined  04-12-2008

Hi James

You can update to the latest version which fixed the https:// issue as well as the formatting issue, read the comments on our blog on how to fix the formatting.

We also have plans to add CURL checking of URLs so that upon entry submission, the extension would check using CURL is the header response returned from the URL is valid and thus the url itself. This should be more effective than using just a regular expression. Hopefully we’ll be able to release another update addressing this issue.

 Signature 

Designchuchi | Twitter

URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension

Profile
 
 
Posted: 31 October 2008 03:11 PM   [ Ignore ]   [ # 12 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  322
Joined  03-18-2007
peschehimself - 31 October 2008 03:07 PM

We also have plans to add CURL checking of URLs so that upon entry submission, the extension would check using CURL is the header response returned from the URL is valid and thus the url itself.

Hi Peschehimself—thanks for all your work on this. Would it be possible to make curl checking optional (a settings checkbox or something…)?

Thanks,
Matt

Profile
 
 
Posted: 31 October 2008 03:14 PM   [ Ignore ]   [ # 13 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  246
Joined  04-12-2008

Hi Matt

Yes, of course, the CURL will a have a separate settings value, but it will most probably be a global settings instead of a per weblog setting.

 Signature 

Designchuchi | Twitter

URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension

Profile
 
 
   
 
 
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: 64481 Total Logged-in Users: 56
Total Topics: 81017 Total Anonymous Users: 23
Total Replies: 435969 Total Guests: 299
Total Posts: 516986    
Members ( View Memberlist )