Right now each group gets its own container and one "generic discussion" forum inside that. This feature request centres around allowing groups to define multiple forums. There are a few components to this:

1. Evaluate these feature requests
- http://drupal.org/node/61179: specify a forum container for og_forum
- http://drupal.org/node/68108: Making og_forum compatible with the standard forum

and see if they can somehow be utilized during this transition, both to make the module more flexible, and also not to pick the best direction in which to go; making this change will require changing almost all function in the module anyway, so might as well do it right. :P

2. Under administer >> settings >> og, establish a "template" of forums that will be created automatically for each group. For example:

General Discussion
Help and Support
Feedback

When og_forum_hook_nodeapi fires, these will get created automatically.

3. Provide a user interface for a group admin to add/edit/delete forums for their group. Some of this code might be able to be taken from og_vocab; more or less a hook_form_alter on the taxonomy term administration pages?

4. We also need a way to specifiy the "default" forum -- this is where the taxonomy selection will go by default, and also where og2list will send mailing list mailings.

5. API functions og_forum_get_forum and og_forum_get_container will need to be made more intelligent, probably to take an argument of which forum/container or if none is specified, return the default

Comments

killes@www.drop.org’s picture

I think this makes sense. I'd add a "realm" column to the og_term table to distinguish the default forum from others.

jo1ene’s picture

I am interested in seeing this done - especially point #2 above. What help is needed to get this ball rolling?

wheeledone’s picture

I may be willing to sponsor ($$) work on this ticket, with my main interest being compatability with "standard" forums. Feel free to contact me to discuss specifics.

aangel’s picture

I'll put in some $$'s, too. I really need multiple forums per group -- without nixing the regular forums. And the idea of having some standard forums set up when a new group is set up is attractive, too.

Steel Rat’s picture

I'm all for this enhancement too, would really help me a lot.

In addition, I'd lke the group owner to be able to create "private" forums and/or topics for specific members of the group (The owner will always have access to all of the group forums and topics.)

fax8’s picture

Status: Active » Needs review
StatusFileSize
new10.83 KB

The patch add multiple forum feature.

Group manager now have a "manager group forums" on the group block which
point them to a CRUD page for group forums.

The patch has been created from og_forum 4.7 version.

Fabio

fax8’s picture

StatusFileSize
new10.91 KB

Add a check on _rewrite_sql hook to only show a forum if I'm subscribed and activated by
the group manager.

Steel Rat’s picture

How can I apply this patch? Haven't done it before with Drupal.

fax8’s picture

Have a look at http://drupal.org/node/22568

I would like to receive some developer review.

rubenk’s picture

I'll try this out in 4.7 if it is back compat

fax8’s picture

@rubenk: yes my patch is for 4.7

joshua_cohen’s picture

Has anyone else used this patch sucessfully? I would really like the ability to add multiple forums as well as a "default template" too. This would be a huge help.

Thanks,

Josh

rubenk’s picture

Got this error

Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in ..../og_forum/og_forum.module on line 31

in this block

/**
* Implementation of hook_menu().
*/
function og_forum_menu($may_cache) {
global $user

$items = array();

if ($may_cache) {
$items[] = array(
'path' => 'og_forum',
'callback' => 'og_forum_page',
'type' => MENU_CALLBACK,
'access' => user_access('access content'),
);
}

pbarnett’s picture

a semicolon after $user would probably do the trick ;-)

Pete.

pbarnett’s picture

Hmm.

A semicolon after $user would probably do the trick ;-)

Not that the variable is being accessed anyway.

Having said that, I looked at OG Forums a while ago and decided that the concept was sound even though the implementation was dodgy.

If we want it enough, we can fix it...

Pete.

Christefano-oldaccount’s picture

After trying it, this patch appears to add a "manage group forum" link to the group block where more forums can be created for the group (and only that group). That's more functionality than there was in og_forum, but my understanding was that this patch allowed users in a group to post in forums outside of their group, too.

I'm interested in this, but I'm going to investigate MikalH's "groupforum" (discussed at http://drupal.org/node/91396) for now.

regx’s picture

This patch is exactly what I need, however I am only getting partial functionality. The patch applied fine, but I do not see the manage group forums item in the group block or in the forum when logged in as the forum owner. If I manually enter ?=og_forum/3811
I get the following error:

warning: implode(): Bad arguments. in /var/www/vhosts/twbdev.dgswa2.com/httpdocs/site/modules/node.module on line 362.
user warning: You have an error in your SQL syntax near '' at line 1 query: SELECT DISTINCT(n.nid), n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /var/www/vhosts/twbdev.dgswa2.com/httpdocs/site/includes/database.mysql.inc on line 120.

regx’s picture

I am an idiot, I had themed the og block to remove the create links and therefor was not seeing the manage_forum links.
So, works great exactly what I needed - Thank You!

Can you please remove my previous post? I forgot that issues are not editable or would not have included urls in the error.
Thank you.

davea’s picture

I have installed this patch as well do to the need I had for the functionality that it provides. I tried it twice. I had to uninstall and reinstall this module with the patch to see the new menu item and the results of the new features.

Thanks!!!!

TSK2006’s picture

StatusFileSize
new11.62 KB

The last patch wasn't allowing other group managers to manage groups forums. I've implemented such a functionality. I know the database query I did isn't optimal, but at least it works.

TSK2006’s picture

StatusFileSize
new12.15 KB
  • Added a function to check if the user is a group manager.
  • Replaced the group owner check for the group manager flag check
joshua_cohen’s picture

Title: Allow multiple forums per group » Allow multiple forums per group - Update to 5.X

If interested in getting a 5.X port of this patch working, please see http://drupal.org/node/109573

Hopefully someone much smarter than I can help out with this one.

Thanks,

Josh

benthere’s picture

Title: Allow multiple forums per group - Update to 5.X » Allow multiple forums per group

afaict, these are seperate issues.

darren oh’s picture

Version: master » 4.7.x-1.x-dev
darren oh’s picture

Status: Needs review » Fixed

Fixed in CVS commit 57500.

I modified the group forums link to show the forums container so all the group's forums can be seen.

Theming is still a problem. The group theme is maintained on the container view and the topic view, but not on the forum view.

Anonymous’s picture

Status: Fixed » Closed (fixed)