By Ritu-2 on
I want my login form will not appear to the end user it should display to admin only when url is
http://localhost/drupal/admin/* but currently this is not so login is appearing to everyone who visit the site.
I want my login form will not appear to the end user it should display to admin only when url is
http://localhost/drupal/admin/* but currently this is not so login is appearing to everyone who visit the site.
Comments
Login
I'm not aware of it ever working for me to force the block just to show on the admin side to an unauthenticated anonymous user, what I do is disable the login block and have the user or admin go to /drupal/user to login. Then they will be on the admin side, logged in under their user role and you can now control what blocks the user or admin has use of. The problem with doing it with an unauthenticated user is that everyone is 'anonymous'. Since they aren't logged in you can't really know who they are.
Once logged in you could tell drupal that admin users can see x, y, and z blocks... but a regular user can see only x. Useful for not making drupal so scary to people. hehe.
this will work
You can login by accessing to the url like this.
http://localhost/drupal/user
Once logged in you can enable the login block if U wish.
Sunny
www.gleez.com | www.sandeepone.com
Thanks
Thanx Sandeep,
this works for me,