Hello, I'm still searching the web but can't find anything: how can I preclude access to content, and enable a user to view something only after he has submitted a form (where he gives me his email and so on...)?? Is it possible only using webform module and core modules? Do I have to download something else?? I know this is maybe a stupid question, but any help'd be very very appreciated
thnx everybody!!

Edited by WorldFallz - moved to appropriate forum.

Comments

joestewart’s picture

Breaking down your questions a little to clarify your needs some.

Do you want to preclude access to all content unless authorized? Basically create a private site? Or only selected articles, blog entries? Or?

Could you use the Profile module and the regular user registration process to get the information? Then you could use roles and permissions for access control. The Logintoboggan module also can assign new registrants to a role.

samwich’s picture

I wanted to do something similar and set up a solution using

NodeAccess
Email Registration
Disable Password Strength Check
LoginToboggan
and the core profile module

Basically I created a new content type to hold the restricted content. Set the permissions using nodeaccess to not allow anonymous users to view that type of content. Used logintoboggan to simplify the registration process, and used core profile fields to gather data from the end user.

I'd be interested to know if anyone else has come up with other solutions.

giozzz’s picture

Ok, you're right, I go more specific: I want users to submit a form created with webform module, to allow them to acces only some content, not the whole site... this content I referr to are mainly flash videos (but maybe in the future something else), so I need a method that can work for pages, flashnodes... anything, if possible. Right now I partially solved the problem the way samwich describes: I've installed NodeAccess and LoginToboggan, so now when an anonymous user wants to view a "restricted" content type, he's automatically redirected to login page... but not to the form, as I originally wanted. I solved this redirecting again users after registration to the form page, but I know this is annoying, and I have to find an alternative (moreover "form page" is not mandatory to submit in order to view flash videos, so it actually turnes out to be just a pain for a user...)
I hope I explained myself better!!!!! if you need more infos just write down, and I'll provide!!!!!!!!!!!!!!!!!!!!! tnx everybody for supporting!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!