I'd love to see an integration with the popular Link module (http://drupal.org/project/link). Basically, it would be great if you could submit a URL in a link field and then have the submitted link automatically shortened and saved.

Ideally, it could be a checkbox on the link field edit settings that would enable the automatic shortening of submitted links. This would be similar to the current input filter except designed for use by the Drupal 7 field UI.

Thoughts?

--Ben

Comments

icecreamyou’s picture

This is certainly a reasonable request, but it's been a very long time since I've used the Link module and I won't have time to play with it for awhile. (Of course, patches appreciated...)

icecreamyou’s picture

Title: Integration with Link module » Integrate Shorten URLs with Link
Project: Shorten URLs » Link

This is really something the Link module should handle. Shorten URLs is mainly just an API provider.

dqd’s picture

Status: Active » Closed (works as designed)

this will lead more to a seperate module, because there're many shorten link providers out there to be handled. Its like with the image style actions and manual crop etc. It should be cared of seperately and be able to get turned off as an exra module. Would be a nice add on module for link module so far, great idea and thanks for your thoughts!++

anyone who wants to jump in? :)

icecreamyou’s picture

Status: Closed (works as designed) » Active

Um, Shorten URLs is that separate module. It handles over 25 URL shortening services.

dqd’s picture

Ooops, .. strange ... sorry 4 that.
I was going thru' quite a lot of issues too quickly last night and missunderstood the request obviously. I am assigned to the link module since only 2 days now - to remove D7 stable release blockers in the first place and move things forward. And I had 2 killer-nights of that.

At first I thought #1 wanted to have the same like what your module provides build in. I just wondered about the self refering link in the starting post. Only at second I saw that you moved it over here afterwards.

I took a quick look on your module: Looks very promising. So far so good. But since you moved the issue over here please provide some more info to help with implementation.

Another question is if we should concentrate on such a task in the moment (please read here why -> #1269718: Blockers to a 7.x-1.0 release?), since maintainance status of your module is unknown and your last release was half a year ago. Don't get me wrong, your module is very attractive and useful to Drupal users, but I am not sure if this is a good decision in the moment...

icecreamyou’s picture

But since you moved the issue over here please provide some more info to help with implementation.

There is documentation for the API -- basically all you have to do is call shorten_url($url) and it will return a shortened URL.

Another question is if we should concentrate on such a task in the moment

Probably not a release blocker. And it wasn't my request. Just something to consider I think.

maintainance status of your module is unknown and your last release was half a year ago

Last release date isn't a great way to check how well maintained a module is. In Shorten URLs' case it hasn't had a release in a few months because it's extremely stable and doesn't need a new release. After all it's mainly just an API module and most modules will only need to call a single function (shorten_url()). But check the commit log -- I commit to the module actively (every few days for the past month) and the issue queue (only 4 unfixed issues) and issue queue stats (only 4% active, only 1 open bug [and it's minor], average support request lifetime is 14 hours over the last month, bug reports get resolved in 2-3 weeks on average). These stats are way better than most Drupal modules with comparable usage rates (currently used on 2315 sites according to d.o). You can also check my profile if you want -- I maintain several relatively high-profile modules and I take good care of their issue queues.

dqd’s picture

IceCreamYou,

Thanks for your long reply and explanation. I appreciate it very much, since I have to run thru many open issue here to catch up with no time for goose chases. But if that's the case - how you say "just calling the function" (good job from you!) , - than it shouldn't be ignored!

I'll put it on our list! Thanks for your effort to clarify and sorry for our momentary needed severity. Your module is a very impressing contribution!

icecreamyou’s picture

I have to run thru many open issue here to catch up with no time for goose chases.

Yep, I definitely sympathize. Let me know if you need any additional information.

dqd’s picture

Issue tags: +scheduled for beta1

thanks IceCreamYou!

summit’s picture

Hi, tried to make custom formatter for shorturl link, but until now unsuccesfull. Would lOve to have this functionality with link module.
See my attemp on: http://drupal.org/node/1379704#comment-5400646
EDIT; I was succesfull in this, see: It was a link module problem, see this issue-patch http://drupal.org/node/1309658#comment-5168960

Greetings, Martijn

dqd’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I am really sorry that we hadn't the resources to further work on this back in the days. All the input has been much appreciated here. I'll close this issue due to inactivity for 12 years and upcoming EOL of Drupal 7 in January 2025. While the project version for Drupal 7 will keep providing support for security issues and website breaking bug fixes for Drupal 7, we should try to minimize the open issues for Drupal 7 in the queue as much as possible. Thanks for the report and all the efforts in here. Feel free to re-open if you can provide a fix or found an additional related problem which increases the issue priority to "Critical" here.