Thanks will try that out and see how it goes<br><br><div class="gmail_quote">On Mon, Dec 6, 2010 at 8:46 PM, Ted <span dir="ltr"><<a href="mailto:ted-drupalists@webfirst.com">ted-drupalists@webfirst.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
<br>
More hints on the rules solution (if you'd rather learn it yourself,
spoilers ahead).<br>
<br>
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.<br>
<br>
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.<div><div></div><div class="h5"><br>
<br>
<br>
<br>
On 12/5/2010 4:04 PM, Carl Wiedemann wrote:
<blockquote type="cite">The Rules module might be of help <a href="http://drupal.org/project/rules" target="_blank">http://drupal.org/project/rules</a><br>
<br>
<div class="gmail_quote">On Sun, Dec 5, 2010 at 6:23 AM, Steve <span dir="ltr"><<a href="mailto:sikileng@gmail.com" target="_blank">sikileng@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
Scenario <br>
<br>
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.<br>
<br>
Anyone with an idea this is the closest i got <b><a href="http://www.webscaped.com/articles/2008/08/basic-publishing-workflow-with-drupal-6/" target="_blank">http://www.webscaped.com/articles/2008/08/basic-publishing-workflow-with-drupal-6/</a><br>
<br>
</b>Regards<b><br>
</b>
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a>
]<br>
</blockquote>
</div>
<br>
</blockquote>
<br>
</div></div></div>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>