Hello -
I am trying to solve what seems like a relatively typical problem, but I haven't see any good solutions in the forums or the mailing lists.
What I am trying to do is the following:
1) Anonymous users have no access to content
2) However, when anonymous users arrive on the site, rather than greeting them with a 'Access denied', I'd like to greet them with something a bit better, like a static page that explains that they need to sign up for a username before viewing the content on the site. I sort-of did this by making a static block on the LHS that said this, but the center content with 'Access Denied' still bothers me.
I found one reference here which suggests that there is no default way to do this, but I'm up for hacks, even for a hack where the homepage is hard-coded to be a certain static node IFF the user is anonymous. Can anyone point me to the right code to change?
The other possibility is to add a new module that doesn't check access permissions, and then set this new module as the default homepage for anonymous users (I want a different homepage for registered users however) - this is discussed here, but again it seems like the homepage will now be the same for anonymous and non-anonymous users, which is not what I want.