I am new to advanced profile, so sorry if this is clear to everyone. May be helpful for other beginners.

I try to figure out something relatively simple
a) how I can block access to advanced user profiles for anonymous users
b) allow access for authenticated users

Of course you can just use the global "access user profiles" permissions to achieve this, but the result is that you get the generic access denied page. Instead it would be more user-friendly if the blocked user gets a helpful message saying something like: "To access user profiles, please sign " or something like that.

How to do it?

Yesterday, I found somewhere a post which recommended to use panel3 to selection rule. Unfortunately, I don't find this post anymore. I still did what the guy recommended and it worked ok only that I still have access to track. It seems not to be easy to turn track off, see http://drupal.org/node/237135 except to turn it off completely.

If somebody could provide the link it would be great.

Now I see that there also is a view apk_user_posts, so I can change the permissions there!

So, it seems to work now. I think this is what i done:

  • Disable core tracker (if enabled)
  • Change permission of view apk_user_posts to role authenticated
  • Create a new variant for user_view that shows up viewed by unauthorized user
  • Enable Permission "access user profiles"

Comments

michelle’s picture

Thanks, this will help folks until I get the documentation finished.

Michelle