How do I make the Drupal-Core Forum display only to members, and ask for login details otherwise
Posted
by Busk
on Stack Overflow
See other posts from Stack Overflow
or by Busk
Published on 2010-05-27T02:15:42Z
Indexed on
2010/05/27
2:21 UTC
Read the original article
Hit count: 253
I'm trying to create a website, that has a menu based on Primary Links on the top of the site. The one menu item is for a 'Members Forum'.
I want this menu item visible to all users (Anonymous/Authorized), but if an Anonymous user clicks on the item, instead of displaying "Access Denied", I'd prefer to show a custom message "such as please login to access the forum". If an Authorized user clicks it, obviously I want them to go straight to the page.
In the Forum module, I've set up a container for the forum that is only viewable for Authorized users, so that when an Anonymous user clicks the menu item, they get the Access Denied error.
Thank you
© Stack Overflow or respective owner