Plugin request: URL checker
Posted: 16 May 2008 12:24 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  375
Joined  11-29-2005

Hi. I’m building a site for a nightclub. For each artist that plays one or more shows, we are tracking one or more URLs for that artist.

I use a text field for this, no problem.

What would be cool: a javascript that puts an icon or button next to the text field.  When clicked, the icon will open the URL in a new window.

This lets clients check the URLs they are using before saving them.  I’m useless at PHP, but I imagine someone could create this pretty easily.  I did it once in ColdFusion.

I supposed you could add a new field type called “URL”.

Thanks,

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: 16 May 2008 01:41 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6543
Joined  04-15-2006

Hi Ben,

Not totally sure I understand what you are after but is this something that would help at all?

I think that is what you are asking for isn’t it?

Best wishes,

Mark

 Signature 

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

Profile
 
 
Posted: 16 May 2008 02:14 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  375
Joined  11-29-2005

Mark,

Sort of.  I should have been more specific—I want something that works in EE entries.  See attached. Clicking the icon would simply bring up the URL so one could check it.

Image Attachments
url-checker.gif
Click thumbnail to see full-size image
 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: 16 May 2008 03:09 PM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6543
Joined  04-15-2006

Aha I see what you mean now! wink

Yes that would require an extension to be made to make a new field type as you have mentioned. I would love to say I would give this one a go myself but those kinds of extensions at the moment go a little over my head. I’m sure someone in here will know how to do that though and will post the solution. I’m off to lurk in the shadows hoping someone will come in and let you know how to do that so that I can learn from it wink

Hope some kind soul comes in and helps you out on this one so that we can all get something out of it and sorry for the slight misunderstanding on this one.

Hope it gets sorted soon.

Best wishes,

Mark

 Signature 

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

Profile
 
 
Posted: 16 May 2008 03:18 PM   [ Ignore ]   [ # 4 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6543
Joined  04-15-2006

Also I think that this (I could be wrong on this though) may require some Javascript to do otherwise when the control panel page first loads then there isn’t obviously going to be anything in that field so the button wouldn’t be able to be hard-coded to the value in it. The button would have to pick up the value of the field as it is being typed in to.

Just a thought though.

Best wishes,

Mark

 Signature 

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

Profile
 
 
Posted: 16 May 2008 03:21 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  375
Joined  11-29-2005

Mark,

Indeed, that would be required. I’ve done it before, just can’t remember. You can reach it with something like:

document.formname.fieldname.value

 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: 16 May 2008 03:53 PM   [ Ignore ]   [ # 6 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6543
Joined  04-15-2006

Yep that’s what I was thinking but making an extension to do it is a little over my knowledge at the moment unfortunately downer

Hopefully someone else will have an idea though.

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 06:09 AM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  246
Joined  04-12-2008

Hey guys

URL Field Extension

I just finished creating this. Check it out if you like and get back with feedback.

Bear with me, it’s my first one wink

Regards,
Peter.

 Signature 

Designchuchi | Twitter

URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension

Profile
 
 
Posted: 02 June 2008 06:36 AM   [ Ignore ]   [ # 8 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6543
Joined  04-15-2006

Hi Peter,

Fantastic!! Exactly what was needed and works exactly as it says on the tin!!

I think your documentation on your site needs one more step written in though to tell people to also copy the extensions->images folder to their extensions folder also. Perhaps it might be better if the image location could be an extension setting though so that you don’t have to have the images folder in the extensions folder?

Also would it be possible to get the URL field that shows in the PUBLISH / EDIT panel to be longer. At the moment it is quite short and text-fields in these sections usually stretch to the whole of the control panel width.

Just a couple of very small things though.

Fantastic extension and works brilliantly! Will be looking in to how you did this one so that I can learn from it! wink

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 07:11 AM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  246
Joined  04-12-2008

Hi Mark

Check the update page + extension archive wink

Have fun playing!

 Signature 

Designchuchi | Twitter

URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension

Profile
 
 
Posted: 02 June 2008 07:17 AM   [ Ignore ]   [ # 10 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6543
Joined  04-15-2006

I think it’s still looking in the extensions/images folder though isn’t it?

Also the text field is still the same width?

Am I doing something wrong maybe?

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 07:18 AM   [ Ignore ]   [ # 11 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6543
Joined  04-15-2006

Also I’m not getting any extension settings. Have you updated the download link yet or not perhaps?

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 07:20 AM   [ Ignore ]   [ # 12 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  246
Joined  04-12-2008

Very sorry, forgot to sync with my dev server. Is it working now?

 Signature 

Designchuchi | Twitter

URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension

Profile
 
 
Posted: 02 June 2008 07:24 AM   [ Ignore ]   [ # 13 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6543
Joined  04-15-2006

Hiya,

Yep the extension settings are now showing up and I can place the icon image wherever I want which is fantastic. Would still be great to get the text field the same width as the control panel though? wink

Great work this is.

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 07:26 AM   [ Ignore ]   [ # 14 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  246
Joined  04-12-2008

Glad it works. Try width settings: 100%

Made a separate post for this extension.

 Signature 

Designchuchi | Twitter

URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension

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

Geez I need more sleep. I saw the setting for the icon image and totally overlooked the width setting. It was almost as if it wasn’t there! Seriously I need more sleep wink

98% seemed to work better so have gone with that.

Absolutely awesome extension so well done on this one.

Thanks again.

Best wishes,

Mark

 Signature 

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

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: 64907 Total Logged-in Users: 42
Total Topics: 81849 Total Anonymous Users: 37
Total Replies: 440049 Total Guests: 226
Total Posts: 521898    
Members ( View Memberlist )