Hi!

I really love this module. I have 3 feature requests that I'm willing to pay a developer a "reasonable" sum to complete soon.

1) I would like there to be a gui where you can simply create a list of "reserved tokens" (i.e. short URLs that you want to reserve).

2) A block where you can enter only the short URL token to go directly to the node

3) Integration with the Token module, so that you can use the ShortURL ending of the full URL to insert into Titles and various other things.

Please contact me if you would be willing to do this.

Thanks,

CarbonPig

Comments

irakli’s picture

Hey,

not sure if you found somebody willing to work on this, but if you did:

1. I am open to providing a hook so not just one, but potentially any module is able to provide those. There could be more than GUI use-case for this. The GUI thing we can integrate in the main distribution.

2. Not sure how this is different from the Path module functionality i.e. if this does not already exist.

3. Sounds like a good feature. Again - open to integrate a patch for this, if you get this done (that way you won't have to keep patching when new releases come out and will help the project, too :) )

CarbonPig’s picture

Hi Irakli!

I like your thinking on this. I have found some folks willing to work on this for some pay, but haven't started the project because I would like to keep it open to the community for suggestions before we begin and improve the module for everyone. Maybe some people have suggestions or ideas now and might even be willing to do some of the work for fun!

I'm trying to figure out the best way to:

1) Reserve paths from being allocated - theoretically you could do this using the path module by adding aliases, but you have to do it one at a time. Is there a way to bulk upload aliases and not have them associated with nodes? For example, I don't want people to be able to choose or randomly be assigned http://example.com/ABC

2) Have an administrative interface where you can define what characters are used: http://drupal.org/node/515124 (E.G. only "A, B, C, D, E, 1, 2, 3, etc."

3) Integrate the module with the Token Module so that you can use the short URL aliases wherever you want.

4) Have the block display only the short URL characters generated at the end of the URL alias (e.g. only show ABC when the short URL is http://example.com/ABC) and when you click on the characters they all highlight for easy copying and there is an email option (i.e. "email this Short URL extension")

5) A block where you can enter the Short URL alias extension and it will take you directly to the node (e.g. "Enter the Short URL Extension [__ABC___] (submit)" will take you directly to http://example.com/ABC which in turn will redirect you to the node.

6)Integration with the Path-Auto module (if you need to), so that you can use the token I'm suggestion for Short URLs to rename the path. That way users would create a node and then immediately see http://example.com/ABC as the URL.

Do you have any suggestions or ideas?

-CarbonPig

irakli’s picture

1), 3), 4), 5) should be part of the administration interface and I think shorturl_ui module should host them. It should still be part of shorturl project, so users do not get confused, but separation of API and UI (while shipping them together) seems to be a popular trend in new drupal modules and seems to work really well.

2) is somewhat complicated, since it actually deals with the math being used to produce short urls. If you guys build the UI part, I will try to help with the algorithm part, though.