Hi there,

This is "almost" exactly what I need. Here's what I need

I want to filter the content... into 3 main groups. General, over 15 years old and over 18.

They enter their date of birth on sign up.

So let's say that the $ for their date of birth is profiledateofbirth, then I want that they automatically get a role based on their age... for example : "general" or in other words they keep the simple "authenticated ueser". for those who didn't put an age or who are under 15, 15to18 for those in that group and over18. Then, when I created or edit nodes, I can simply chose to which roles they are visible.

They aren't in a group to which it's supposed to be visible? A personalised text shows up... for example... "You need to be registered (FREE) and over 18 to see this page" and let us include htmp or php in the message so if we want to offer links to the main page, login, or whatever...
we can.

While you're at it, I'm not very the "patch" type of guy, you could simplify that a bit please? Would be VERY appreciated :D

Thanks in advance,

P.S. : I can't "permit" myself to put this as critical since obviously you sureley have tons to look at, but "IF" you'd have a possibility to do something quickly about this, I'm still searching for ANYTHING CLOSE that could do some sort of filtering... in vain... :'(

merlinregis

Comments

AlexisWilke’s picture

Status: Closed (works as designed) » Active

You need to use a module that defines the access of a node, not the menu. Unless you are thinking of menus going out (External menus).

If you want to prevent a user from seeing a node, then you need the node to be locked, not just the menu.

http://drupal.org/project/content_access is probably what you want. With that you can define a role with "general", "15to18", "over18" and assign those to your node. Then with content_access, you define who can see what based on role.

Another way to do what you want is to create 3 different types of nodes (Page, Page15, Page18). That way, you can mark the entire set of nodes with a role instead of having a way to select while editing the node.

How you assign the role is also not part of this module.

Trying to make it even clearer...

* Create node "test"
* Create menu item that points to "test"
* Make menu item accessible only to "over18"
* Go the to node as in: http://www.example.com/test

What do you notice? Going to the node always works, whether or not you are a member of over18. Only the menu item visibility changes.

This module is a funny one in Drupal 6. 8-)

Thank you.
Alexis Wilke

AlexisWilke’s picture

Status: Active » Closed (works as designed)

Status: Active » Closed (works as designed)