I want to show a block from "anonymous users" and hide it for "known" users.
Seems a normal thing to do with this module.
I set the block to show for anonymous and not for known, but it still shows when I've logged in and logged out, and I confirmed I have the cookie.
(the block is user registration via the form_block.)
Comments
Comment #1
doublejosh commentedI'm guessing this means known user roles like my "known" as true in addition to anonymous users not rather than it.
Comment #2
greg.harveyYes, it does add the role rather than switching. We don't want users to be 'authenticated' - they're not and that would be dangerous. This would need carefully testing, and I don't think it's a 'bug'. Patches welcome.
Comment #3
doublejosh commentedDarn, I was hoping I was misunderstanding something.
Only mechanism I can image would be to alter the block setting form to include a checkbox for "[X] Hide block from known user role."
Not sure about much wide usage... but I know that's been a need on two of my projects (hiding introductory content from known users.)
Looks like I'll have to do PHP visibility.
Comment #4
doublejosh commentedThought I found the answer with http://drupal.org/project/block_cpr but it seems that's just for text type content in blocks within the block admin page.
Combining these three would have been perfect for showing the registration form in a block and hiding from folks who don't need it: http://drupal.org/project/formblock http://drupal.org/project/known_user_role http://drupal.org/project/block_cpr ...plus https://drupal.org/project/email_registration Great low barrier registration and return visit experience.
Still looking.