Closed (won't fix)
Project:
Drupal.org CVS applications
Component:
new project application
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Anonymous (not verified)
Created:
1 Nov 2010 at 10:04 UTC
Updated:
14 Apr 2019 at 12:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedon sites, where anonymous users are allowed to post content, theres sometimes the problem, that the users can't edit the content they posted afterwards. this module creates a link the anonymous user can use to edit his node afterwards.
Comment #2
avpadernoHello, and thanks for applying for a CVS account. As per requirements, the motivation message should also include a description of the module features, and a comparison with the existing solutions.
Comment #3
Anonymous (not verified) commentedi looked at all the modules containing the word anonymous in the description and found no module that does something like my module. there was a problem description in july (http://drupal.org/node/844780) which the editlnk module could solve.
the module features: after commiting content as an anonymous user, the module provides a link to the user, which he or she can use to edit the content afterwards without having to register at the site.
Comment #4
jonhattanHi MCP. I haven't run the module but looking at the code here are some things to improve:
1/
Coding standards: You are using different indentation across functions. Drupal standard is two whitespaces. Also some docstrigs are not well formed. You can use coder module for this purpose.
2/
instead use
url("/node/".$node->nid."/edit/".$password, array('absolute'=>TRUE)).3/
it is just a suggestion: inform the user that the edit link is valid for a period of N days.
4/
other suggestion:
you can create a function called editlnk_load() and use
$items['node/%node/edit/%editlnk']so it loads an editlnk object and pass it to editlnk_access().5/
I think you're showing an edit link for everyone and it should only be given to anonymous users.
6/
other suggestion: remove edit links (via hook_cron) two or three days after the link has expired.
7/
perhaps instead of selecting valid content types. Make it work for content types which anynymous is allowed to post.
8/
This code raises a warning in E_STRICT mode and also in php 5.3. Create the object first.
9/
leverage user_password() to obtain a random alphanumeric string.
10/
I wanna use this module! :)
Comment #5
Anonymous (not verified) commented1/ fixed (coder says so ;))
2/ fixed
3/ fixed
4/ i will look into that
5/ fixed
6/ fixed (not tested yet)
7/ working on that
8/ fixed, i hope
9/ fixed
10/ thanks ;)
the module now saves a timeout-timestamp (when the editlink won't be valid anymore) in the database. so if the period of days is changed afterwards, that only effects new nodes. but its easier to delete the old editlinks that way. comments?
Comment #6
Anonymous (not verified) commented7/ is now also fixed
Comment #7
Anonymous (not verified) commentedwould be great if someone could take a look at this request again
Comment #8
avpadernoComment #9
zzolo commentedHi. Please read all the following and the links provided as this is very important information about your CVS Application:
Drupal.org has moved from CVS to Git! This is a very significant change for the Drupal community and for your application. Please read the following documentation on how this affects and benefits you and the application process:
Migrating from CVS Applications to (Git) Full Project Applications
Comment #10
avpadernoI am changing the status to Won't fix, since the OP doesn't have an account anymore.
Comment #11
avpaderno