Help needed, custom login page

Optalgin - March 27, 2008 - 03:00

I created a drupal 6.x site and wish limit access to content to authorized users only
I set the "access to content" permission of "authorized users" and it works great

The problem is that in my main page, before users login (unathorized) I get the login block
on the sidebar and I get the message "Access denied" in the content area..

I am trying to customize this page to display a nice message like
"Welcome to my community site, please login to see content..."
maybe display a logo or a picture..

I tried the front_page module, but I uses the same access rules as content
display the same "access denied" message to unauthorized uses when "access to content" is
set false for unauthorized users.

I tried the LoginToBegan module, the privacy_by_role which didn't work as expected
I even tried to override the "access denied" page
but that is not a good idea...

I think I am missing something basic, it seems like this is a common need a community site
that requires login to access content.. but I can't find a way to implement it..
any help will be much appreciated..

Thanks

=-=

VeryMisunderstood - March 27, 2008 - 03:01

the frontpage module should have given you the ability to show two a front pag for th anon role and a different one for authenticated ???

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

It does... but...

Optalgin - March 27, 2008 - 08:36

It does and I works great when I grant access to content to all authenticated and anonymous users!

The problem starts when I uncheck "access to content" for anonymous users in the permissions settings
I that case, I get the right front page for authenticated users, but get the "access denied" page for anonymous
For some reason the front-page module use the user permission settings for "access content"

 
 

Drupal is a registered trademark of Dries Buytaert.