[support] Anonymous User Content Publishing

Steve sikileng at gmail.com
Mon Dec 6 19:27:54 UTC 2010


Thanks will try that out and see how it goes

On Mon, Dec 6, 2010 at 8:46 PM, Ted <ted-drupalists at webfirst.com> wrote:

>
> More hints on the rules solution (if you'd rather learn it yourself,
> spoilers ahead).
>
> Create a triggered rule for "After saving new content", with a condition
> that the user has the anonymous role. Add an action to "Send a mail to an
> arbitrary mail address". You probably have an email field on the content
> type of the node that was just created, so use that field as the Recipient.
> The simplest way to generate the unique key for the publish/unpublish link
> is to enable PHP evaluation in rules, which would allow you to, say,
> concatenate the email address, the node timestamp, and the nodeid, then get
> the md5() of that. Include the node id in the url querystring separately.
> The url should point to /activate-my-content, which is just a Page you
> created that contains the error message to show the user if they have a bad
> md5 hash.
>
> Create a new rule, triggered by "User is going to view a page". Add actions
> to "load content by id" (<?php echo $_GET['nodeid'];?>). Then, you just need
> to check the content type and author (anonymous), and redirect if the md5
> matches. You can do that in a custom php action, or by creating a ruleset
> that accepts the node as an argument (and has conditions that check the
> content type, author, and md5) and does the redirect. You should also add an
> action that shows a confirmation message at the top of the page. If the user
> is not redirected, they will see the error message on your
> /activate-my-content page.
>
>
>
>
> On 12/5/2010 4:04 PM, Carl Wiedemann wrote:
>
> The Rules module might be of help http://drupal.org/project/rules
>
> On Sun, Dec 5, 2010 at 6:23 AM, Steve <sikileng at gmail.com> wrote:
>
>> Hi,
>>
>> Scenario
>>
>> I need for anonymous users to post content online for free, the user
>> should be able to add the content to the website and also input his/her
>> email, after posting they get a redirection to a page that will ask them to
>> check their email to activate/publish their content. They should receive an
>> email with an activation link so that they confirm they are ready to
>> publish.
>>
>> Anyone with an idea this is the closest i got *
>> http://www.webscaped.com/articles/2008/08/basic-publishing-workflow-with-drupal-6/
>>
>> *Regards*
>> *
>> --
>> [ Drupal support list | http://lists.drupal.org/ ]
>>
>
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20101206/bde4cf2f/attachment.html 


More information about the support mailing list