Community & Support

How to allow anonymous user to create a content (page or story) and enter his name and email address (similar to comments)?

Hi All,

I am a .NET developer and newbie in drupal development with a week's experience :). I've permitted anonymous user to create a page/story. Now any visiter can create page by entering title and body, however I couldn't find the way to accept his name and email-ID.
The same can be easily achieved in comments section.

Is there any way I can configure drupal to accept name and email-ID?
also i was wondering, if I create a new content type, from which content type it gets derived from?
If I want to automatically send an email to the visitor after approval, which module is best suitable for me?
(Right now I am reading about 'comment notify' module which looks like what i want)

Comments

Drupal does not allow you to do that out of the box.

Drupal does not allow you to do that out of the box.

You may be able to do so by struggling with the module called CCK but in all probability there will be a strange situation when users will use Search to find that name.

For registered users they have to hit "User" tab of search and for this Anon user who used his name they have to hit "Content" tab of search. Moreover search in all probability will expose the email field which in any case or in many cases must be kept private.

You might file an Issue or if you have financial support you may write to Acquia - probably they can help to solve certain per user cases.

But then how does it's allowed in comments?

Hey Kaakuu,

Thanks a lot for the immediate reply!

I completely agree with what you are saying.
but the thing is I am working on such a site where admins will be the only registered users. and site doesn't have anything related with search.
as far as I can understand, the problems you have mentioned are related to search.
also I don't want to expose anon user's email-Id, i just want to send the 'thank you' mail for their precious post.

There must be some workaround.. like somehow if i can create a content type which will have all the functionalities of 'comments' module.
(I've studied few .module files and seems pretty simple due to hooking logic, neatly written code and proper commenting.
thanks to all drupal module developers !!).

_

You could probably do this with cck fields for name and email and optionally use content type permissions and content field permissions to control access to those fields.

New content types aren't derived from any existing content type, there are default settings that new content types have which you can edit.

As for notification, you don't explain what "approval" actually is so it's difficult to recommend a specific solution. Though in general, i use the rules and/or notifications module for this type of stuff. Comment_notify does one thing and does it well-- but it doesn't sound like that's what you need (depending on the "approval" process).

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

Thanks friend, Seems I have

Thanks friend,

Seems I have to study CCK now :)
due to deadlines i don't want to spend lot of time on searching and filtering irrelevant stuff.

Can you guys suggest me few good url's ?

Let us know if you solve this one

I am trying to do the same thing. If you find a solution please share it. There are some videos up on http://www.lullabot.com/articles/free-drupal-cck-views-video-chapters and http://drupaldojo.com/lesson/site-launch which should help with learning CCK. Also the book Using Drupal has much detail.

It is not the answer but the question that is important.

Problem solved !!

I have studied CCK module found that this is exactly the same what I needed. I've created a new content type which is visible and ediatable for annonymous user(through permissions). added the required fields using CCK module's options.
It is really simple to use. You just have to explore a little bit to get the desired outcome.
This is the first CMS i'm working on. N i'm impressed to see how drupal has made web development so simple !! :)

Note: Don't forget to set the field visibility to annonymous users. the fields added by CCK are not visible to anonymous users by default.

hi : how do make drupal

hi :

how do make drupal accepting anonymous's submit?

I have set permission to allow anonymous user create a page, but when
the user submit a page, drupal said "page not found", and i have checked at backend,
there was no page created.

Subscribing, needing the

Subscribing, needing the same..dont know solution yet..
greetings, Martijn

Frustration...

I confess that this is unbelievably frustrating. I, too, was able to get anonymous posts to work just fine with a Drupal 5 installation last year and I'm totally flummoxed by why I can't get it to work in a Drupal 6 installation. This really should work out of the box and while I am incredibly loyal to Drupal and have more than 50 sites with Drupal I think I am going to go to Wordpress on this one. VERY VERY frustrating.

FYI, I've looked at the other posts regarding chaning the user id, (there is none for anonymous), using cck (I have developed, in my tinkering, a for each warning that won't go away... and it is very apparent that there is something posted to the database, but it just isn't completed.

Is it just me or should this be simpler? Build a site and then decide whether you want registered users or anonymous users or both to be able to post to it... hmmm sounds like a plan. Why can't Drupal do it? And why hasn't anyone entered this request since the fall?

Sorry if I sound snarky. I've just wasted four hours on what I thought would be a simple 10 minute completion of a site I need to have up and running for one day only on tuesday.

_

I'm not sure what all the struggling is about on this thread-- as mysticgeek posted above (http://drupal.org/node/544342#comment-1987430) back in august, he got it working with cck.

As for why it's not already in core-- its simple-- probably no one wanted or needed it enough to champion it.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

Please create an issue

@ggevalt

You need to create an issue here http://drupal.org/project/issues for an urgent solution.
There are many vital features added without issues in drupal, some added even if there are objections in the issue but you have to work/walk that route I suppose. Make sure there are no similar or duplicates but going by http://drupal.org/node/544342#comment-1905078 there is NO duplicate. So go ahead and create an issue.

Using CCK is not effective finally because of this http://drupal.org/node/544342#comment-1905014

_

you can overcome that problem with content_profile though it may be a bit like hammering a nail with a sledgehammer, lol.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

nobody click here