First of all, i'd like to say hello to all of you.

Second, i'm looking for a way in drupal to redirect members to different pages, sort of a login/member system. The key should be that each user can't access the other user area. While reading through functions, and playing with the source of the system, i couldn't find anything that suits my needs.

Did anyone else tried something like this? If so, please let me know.

Thanks in advance.

Mike

Comments

Dublin Drupaller’s picture

Hi Mike,

Drupal is ideal for setting up a public/private site where registered users/subscribers have access to specific areas.

Probably the best way to go about it and as a starting point is to setup new ROLES for your users...i.e.

go to ADMINISTER ->> USERS -->> CONFIGURE -->> ROLES

And add in a new role or user type...such as REGISTERED MEMBER or PLATINUM MEMBER..

Then go to ADMINISTER -->> USERS -->> CONFIGURE -->> PERMISSION

and you can specify which pages/elements PLATINUM or REGISTERED users have access to...

So, out of the box, drupal allows for access-only-areas and control of that very simply.

The flexibility of Drupal allows you to go even further and there are add ons like the Taxonomy_access module which allows you to control role-based-content-access rules you want to apply to various areas/content types.. and get even deeper into your members area.

One module I use constantly is the front_page.module which a collegue and I hacked a while back. It allows you to setup a front page to your drupal site for logged in users and automatically displays a seperate front_page for non-logged in users.

There is also the ability to automatically REDIRECT logged in users to a specific page.

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/front/

(front_page.module is designed to work with drupal 4.5)

Hope thats of use...

Dublin Drupaller

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

mike_’s picture

Hey Dublin Drupaller,

Thanks for the reply, that's a way of doing it, but i thought it was way to much work to implement taxatonmy access terms, etc...

So i browsed the module archive again and found Organic Groups. It's ideal for this kind of situation. After hacking a few lines in the module to make it more member friendy... instead of starting with the user edit page it works like a charm.

Using generated blocks from the content and showing these only on specific pages i've found a great way of making a neat, clean and perfectly working member area.

I would advise everyone that's looking for something like this to check this out. Since you don't have to work with roles and taxatony terms anymore.

Authentication is based on subscription of a user to a group.

But thanks for helping me out!

Mike