Closed (fixed)
Project:
OG Forum
Version:
5.x-2.0
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
29 Aug 2007 at 02:02 UTC
Updated:
1 Jan 2008 at 04:21 UTC
Core Forums table just keeps getting deeper from top to bottom of the page. Forums do not page 1,2,3... When a group is created a default discussion forum is created. Group manager can then add MANY forums extending the overall core table size to unmanageable.
How can OG Forums either not be integrated into core Forum or limited to 1 or 2 forums per group for example?
Drupalgirl
Comments
Comment #1
mightyiam commentedIs it possible to use views to display only a certain group's forums?
The option to limit the number of forums will be nice.
Comment #2
rconstantine commentedBy management, what are you referring to? I mean, which URLs are you going to that concern you?
OG Forums cannot be separated from regular forums if you're referring to separation of tables and such as og_forum is designed to enhance, and not replace regular site-wide forums. As for limiting the number of forums that can be added to a group, that seems to be a reasonable request. I'll throw that on the pile. See my comment at the end of this post as well.
Regarding paging, I assume you refer to the actual 'forum' path? As admin user 1, you will see all forums both in and out of groups. You're right in observing that this is potentially a very, very long listing. As a regular user, you will only see site-wide forums and those belonging to groups to which the user belongs. Presumably, the user's listing is considerably shorter and usually fits on one page (were paging to be employed) and therefore paging would only be necessary for admins. As for paging the listing, that is a good idea as well. However, I have yet to cut my teeth when it comes to that sort of thing. Do I need to use the 'views' module to do it, or is there something simple I can do? Patches are welcome. One other thing regarding the length of forum listings - if you prefer to have all forums in groups, you can either try to just remove the create forum topic link from main create content menu, or you can prevent forum topic creation at the site level using my content type by og module.
As for displaying a certain group's forums, that can presently be done by visiting a group and selecting 'Group forum' (I think that's the link) from the group menu block. You will then only see that group's forums.
One last thing - I think that there is a permission on the permissions table (user access) for creating new forums, is there not? If you simply don't give that permission to group owners, then they can't add forums to their groups and they will be limited to one forum per group. Also, I think in the latest version, I added the ability to specify the name of the default forum so that it doesn't have to be 'general discussion', didn't I? With so much going on, I often forget what I've released compared to what is still on my personal working version.
Comment #3
drupalgirl commented@rconstantine
These are the only references for forum modules in Access Controls.
forum module
- administer forums
- create forum topics
- edit own forum topics
og forum module
- make forums public
I would think that paging containers would be the solution for forums module so I will submit a request to that project. The problem with og forums being in a container of forums view is that if you have 100 og forums and a user is subscribed to 100 groups you end up with 3 yard long forums page for individual user. Another problem is that site admin should have the option of NOT displaying group forums with site-wide forum table. That would prevent group owners from impacting the feel of the sites mission causing confusion.
Just a thought.
Drupalgirl
Comment #4
rconstantine commentedThanks for the input. Looks like it might be good to implement another permission to 'administer own group forums' or something. Or maybe that's not a good name for it.
Comment #5
rconstantine commentedComment #6
AmirTheSeventh commentedCan't it be done using this module: OG User Roles http://drupal.org/project/og_user_roles ???
Comment #7
rconstantine commentedIt can't be done that way because roles aren't checked and roles depend on permissions anyway. So if there is no underlying permission, then roles can't be setup to do anything. I think I'll be adding this permission today.
Comment #8
rconstantine commentedI added the permission, so now group owners will have to have permission to edit their own forums in their groups.
Next, I'll add a numerical setting to limit the number of forums a group can have. This will apply site-wide, and not group by group. I think what I'll do so site admins can get around this for their site-wide forums it to enforce this only for forum creation and not containers. In other words, since groups only have one container, group owners will only be able to add the limit number of forums, but since site-wide, as many containers can be added as you want, you can just add more containers to add more forums. A value of 0 will turn this feature off. A value of 1 will keep it so only the default group forum (general discussion) is created and no others can be. Higher values will allow creation with the limit.
I'll let you know when this is done. It will be in the next release.
Comment #9
rconstantine commentedNevermind. It was way easier to apply the limit only to group forums, so that's what I did. Site-wide forums can still be unlimited without any work arounds.
When I release this, you should find that both the link from in the forum admin table within groups is gone and you aren't able to go to a forum-add URL directly if the limit has been reached.
Those with the 'administer forums' permission can bypass this limit. It is a soft limit, meaning it we only deny permission to make them, not actually subvert the creation of them. So site-wide admins, whether assigned or user 1, should both be able to do whatever they want. This should be good for the case where the site-admin runs any groups and wants to go past the limit within the group.
Make sense?
Comment #10
drupalgirl commentedWow! You've been busy. I read release notes.
I see limit number of forums feature in screenshots. Does this notice mean that MySQL 5 must be installed before feature works? Hosted server is 4.1.22-standard.
Thanks for your work!
Drupalgirl
Comment #11
rconstantine commentedPerhaps I should change that message to be more clear. The nested queries are for regular operation, not any new features. You should get errors unless you've changed the fundamental queries used in the hook_rewrite_sql function to work with MySQL 4. If you aren't getting errors when running version 2.1 on MySQL 4.x, I'd like to hear about it and ask you a few things regarding how some features are operating for you; for example, the drop down list which allows you to select a forum should be limited to the forums of the group you are in if you used 'Create forum' from the group home page.
To answer your question directly, the limit itself does not depend on nested queries, and therefore does not need MySQL 4-specific code to work.
Comment #12
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.