Drupal Questions
Question asked by hychanhan on Friday, November 21, 2008
How to push anonymous users to register?
Hi,
In my website i've allowed anonymous user's permission to post the comment of any article.
The question is:
-----------------
How do i push those anonymous users to register in my site after they made that comment? And after they registered successful, their comment will be approved automatically by system.
I ask this question because i want E-mail and User name of those anonymous users.
Please kindly help me!
Thanks,
ChanHan Hy
Answers (3)
Login or register to post answers














hmmm, i don't know of any
By admin on Wednesday, November 26, 2008hmmm, i don't know of any module out there that can do this (correct me if i'm wrong), so i guess you're looking at making a custom module.
To redirect users to register after commenting i'd look a this hook http://api.drupal.org/api/function/hook_comment/5, so when they insert a comment and if they are not already members then redirect the user to register.
As for associating previous comments with the user when they register you'd have to select all comments that have an email address that equals the new users email and then update the comment uid to that of the new user.
It's quite complex i think, but they're maybe a module out there that can help.
Tom
Hi Tom, Thanks you very much
By hychanhan on Thursday, November 27, 2008Hi Tom,
Thanks you very much for almost always answering my questions.
I will try your idea above, if i succeed with it i will let u know.
Thanks,
ChanHan Hy
Ya, Tom´s solution seems
By miguel on Thursday, December 11, 2008Ya, Tom´s solution seems possible but sounds pretty complex.
Were you speaking of something specific in Drupal (like the module Tom suggested) or more SEO-type info in terms of optimizing your site to capture the users´ attention?
When I read your initial question, I thought you were asking more for the 2nd option. If so, I´d suggest creating incentives for your users. You need to provide something to your anon users that they´ll feel is MORE valuable than them signing up & providing their info to you. You have to think like an end-user.
hope that helps,
--miguel