I'm setting up a more general site, but one of the features is providing a forum for members only. I've that working where only logged in members can access, however if they go to make a post, they are presented with the Category selection, which presents them with the choice of which forum area... fine, but also the Access choices of Members and Public that I created for the backend control.

They won't need nor do I want them presented with this selection since I don't want them having to decide or even wonder about member or public access, and it is irrelevant since the forums will only be accessible by members anyway.

Is there anyway to hide or remove this?

thanks

Comments

ragsman’s picture

do you mean you created a taxonomy vocabulary as the method to hide the private forum, and they have the option of selecting both the forum to post in AND the vocabulary that you created, and you want to hide the vocabulary?
Or are you saying you don't want members to have access to the public forum? I'm a bit confused by what you are saying, or how you accomplished the private forum.
I created a private forum using tac-lite (access by role), then I did NOT associate any (except the default) vocabulary to the forums. Members are presented with only a selection of which forum to post to. If you want to hide the public forums from the members, then change tac-lite (access by role) to reflect this.

Ragsman

identity’s picture

Sorry for the confusion...

I'm still figuring things out so I may be missing something somewhere.

I created a vocabulary called Access, which has two terms, Member and Public. I then assign Public to the pages to be accessible for everyone (although maybe I only need to set the Member for private and anything else will show publicly) and the Public for open access.

Right now, the only thing that is private access is the Forums.

The issue is that when a member goes to post, they get presented with the Category selection, which has the "which forum" selection, but below that is the Access and the choice of Member of Public. So I don't want that choice as all forum items should be member only. Perhaps some day there will be some public and some member forums, but for now, the entire forum is private.

It seemed like when I turned off the vocabulary for the Forum and logged out, even though the Forum link was no longer present, I was able to go to a forum post with the direct URL... but sometimes even when I'm logged out it seems like it doesn't completely log out and I've been able to get into things directly, so maybe that was the issue.

Identity Developments

ragsman’s picture

An easier way to set up a private forum using tac-lite is to hide the forums using 'tac_lite access by role' instead of using a vocabulary term to control the access. Either use the 'authenticated user' role, or create a new role, then give them access to the forums through tac_lite access by role. Ensure you have not given 'anonymous' users access to the forum as well.
Do not assign any vocabularies to the forum except the default existing 'forum' vocabulary.
This method will only give forum access to authenticated users, and will not confuse them with a vocabulary choice when making forum posts. It will, however, prevent you from classifying forum posts using vocabulary terms.

Ragsman

identity’s picture

Thanks. Not having vocabulary on the forums is probably the least of concerns, since most posts will be placed into a particular forum area... although it would be nice to be able to do both.

The concern I have is that if I logout, and then go to domain.com/forum/2 then it takes me to the topic at that node, even though I'm logged out. So are the forums really private and this is just some kind of cacheing going on in Drupal or could someone who knew what they were doing still access these private nodes directly?

Thanks for the help.

Identity Developments

ragsman’s picture

Probably a cache issue, I have a few issues like that myself from time to time. Clear your cache, and/or try accessing from a different browser.

Ragsman

identity’s picture

Yes, I was doing all my admin work in FF and my testing in IE, but was signed in and then out in IE, but IE is also setup not to cache anyway.

I just tried Opera which has never accessed the site before in any way, and tends to run pretty well removed from either of the other two browsers, and I was still able to access the forum section directly with the URL.

Identity Developments

ragsman’s picture

One thing you can try is to delete the forums then re-create them, to ensure the permissions are applied. Old content will not have the tac-lite restrictions applied to them, you will have to edit/save/re-create for the restrictions to take place.

Ragsman

identity’s picture

Deleted and recreated forum and test topic, but the forum is still accessible through direct URL, and so is the post unless I turn on the Access vocabulary for the forum topics and then set the post to Members.

Identity Developments

ragsman’s picture

I guess I can't help you, what I posted earlier works fine for me, and I have no idea why it doesn't work for you. Good luck.

Ragsman

identity’s picture

no worries, thanks for all the help. I guess I'll just have to continue playing with it to see if I can figure things out.

Let me ask this... where or how are you able to specifically provide or deny access to the forum section? I've created an additional role and have provided access to both authenticated users as well as the Member role to the Member content, but I'm not really seeing any specific way to deny or allow for the actual Forum section... am I missing something?

Thanks

Identity Developments

ragsman’s picture

Ok, I'll try to go through it one more time, in more detail.
1. I have tac-lite installed and enabled.
2. in the admin menu, under 'categories', I have the default 'forum' vocabulary, and under 'edit vocabulary' it is only associated with type 'forum topic' (default)
3. any other vocabularies you have created should NOT be associated with type 'forum topic'
4. in the admin menu, under 'access control' I have the proper permissions set for the 'anonymous', 'authenticated user', and my 'private user' role that i created for the 'forum module'. I have not allowed 'administer forums' and have allowed the other 2 options on that page.
5. under 'access control' then the 'tac_lite' tab, I have selected the vocabularies that I want to control access with. Ensure the one called 'Forums' is highlighted at a minimum, and ensure you 'save configuration'.
6. uder 'access control' then 'tac_lite' tab then then 'tac_lite access by role' tab I have the specific forums that I want each role to access highlighted, and the private forums are NOT highlighted for the roles that should not have access. again, 'save configuration'.

That's it, and it works fine for me. If I am not signed in, and click on the forum link, none of the private forums show up. If I paste a direct link to the forum in my browser, I get a forum page but there are no topics or posts visible.
Again, any old content will not have the access rules applied to it unless it is edited and saved.
I hope this helps you. Good luck!

Ragsman

identity’s picture

Okay, that did it, but it seems very wrong. Step 5, I didn't select Forums, since I wasn't looking to control access by a Forums vocabulary per se, but by the specific Access vocabulary that I created.

So it works, but now, I'll have to remember to enable access for any new forums created, when I rather just make a global statement that forums are only accessible to members, and then any new forums would be convered by that rule. Which in my mind, creating a separate Access vocabulary, and then being able to create a default rule for forums and covering all posts within forums, would have made it a one-time task... a set it and forget it deal.

Anyway, at least it works. Thanks again much for all the help.

Identity Developments

dtabach’s picture

If I correctly recall, the Taxonomy Access Control module, the 'full' version, not the lite, may do the things you want.

- Assign more than one vocabulary for forums, and select the one you want to control visibility.
- Set default permissions automatically for new terms (forum topics) in a vocabulary.
- Hide the category selection form for a specific vocabulary and specific role, by disabling 'create'.

Check it out: http://drupal.org/project/taxonomy_access

Durval Tabach

Durval Tabach

identity’s picture

Thanks, I haven't looked at the non-lite version yet, but sounds like it might at least be worth a good review.

Identity Developments