-- Detailed description of the module --
Do you need random URLs like http://example.com/kT6xl4a?
If it is, this module is for you.
This module provides random alpha numeric tokens such as 'o8jXwlsu.'
Main purpose of this token is to use as URLs. This type of URLs are
used on YouTube and many other sites.
-- Project Page --
For a full description of the module, visit the project page:
http://drupal.org/sandbox/takah/1879162
-- Git Access --
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/takah/1879162.git
-- REQUIREMENTS --
This module is for Drupal 7.
Token module is required.
Pathauto module is not required, but we intend to use this module with pathauto to generate random alpha numeric URLs automatically.
-- CONFIGURATION --
No configuration at all. Just enable this module.
You can use token such as [random:alphanum:8] in
Administration >> Configuration >> Search and metadata >> URL aliases.
The last parameter "8" is length. If you use [random:alphanum:11],
it generates a 11-length string.
Comments
Comment #1
kasperg commentedREADME is good, project page a bit sparse but describes the module.
A few comments and questions:
range()function to simplify the candidate letters and numbers?It would be nice to see this functionality implemented one way or the other.
Cheers!
Comment #2
blc commented1. The git URL is http://git.drupal.org/sandbox/takah/1879162.git
2. The repository still has a master branch. This needs to be removed.
3. There are 92 lines of code (including comments), and 2 functions. According to the guidelines at http://drupal.org/node/1587704, a minimum of 120 lines and 5 functions are required for approval. This is a pretty simple module, and I don't know what could be added/expanded to meet these requirements.
4. No security issues found
5. Documentation looks good
6. Coding standards look good. http://ventral.org/pareview/httpgitdrupalorgsandboxtakah1879162git
7. If the given length is outside of the coded range (5-35), 8 is assumed. Perhaps set it to a min or max instead. For example, If <4, use 4. If >36, use 36.
All in all, a pretty simple, straightforward module. Just a few things to work on for approval.
Comment #3
takah commentedThank you for reviewing my module.
I fixed all problems you two pointed out.
I know this is pretty short module, but I believe there's
someone who wants to have this module. I have used this
module internally for years since Drupal 6.
If enough people use this module and token module maintainers
want to include this functionality, I submit a patch for it.
But I think it's better to have separate module for now
if it's allowed to promote to.
Anyway, sorry for responding too late. I thought it would
take several weeks to be reviewed and I haven't received
notifications for this issue for some reason.
Comment #4
takah commentedComment #5
klausiWe are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)
Comment #6
yareckon commentedHi takah,
This is a nice (very) little module. Elegantly implemented, but I am also wondering if it is long enough to qualify you for full project permissions. But that's for others to decide... I've also submitted a little module, so I live in a glass house, I guess. But, you do look like you're capable of writing very nice code. Is this the project you want to submit?
If so, and you need more lines, you might offer another token that generates alpha only instead of alphanumeric. Numeric only is provided by token module standard I see. Or you could go all crazy and allow folks to provide a set of their own chosen characters to be used in the random string. That plus a settings form for it would pad out your module. Somehow, I don't think this is what you want to spend your time doing though, mostly because it would be useful to only .00034%* of the population.
On to the actual review... what there is of it.
Nit picking ....
I would be helpful if your git clone statement included the desired module folder name
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/takah/1879162.git random_alpha_numeric_tokeninstead of
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/takah/1879162.gitotherwise the folder name becomes 1879162...
Crazy nit picking....
I believe alphanumeric is one word?
Oh, and the module works, have tested it. I'm setting this to reviewed and tested, because it seems you need some opinion / attention from higher up on the meta issues above.
* did you know that 63% of all statistics are just made up?
Comment #7
stborchertHi.
Unfortunately this project is way too short to approve you as git vetted user. We are currently discussing how much code we need, but everything with less than 120 lines of code or less than 5 functions cannot be seriously reviewed. However, we can promote this single project manually to a full project for you.
Please also consider providing the functionality as a patch to the Token-module instead of publishing it as a single project. I'm sure the maintainer of Token would be happy about your contribution.
Comment #8
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #9
thiago78 commentedHey, what happened to the code? did it get to token?
Comment #9.0
thiago78 commentedfixed the URI of the git repository.
Comment #10
drupal-son commentedI came across this functionality.
Git repo cloned, module enabled and working as promised.
Easy, nice and clean.
Many thanks.
Comment #11
travismark commentedServes its purpose. Simple and very useful! Thanks
Comment #12
avpaderno