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
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | og_forum.module.patch.r40.txt | 12.15 KB | TSK2006 |
| #20 | og_forum.module.fixed.patch | 11.62 KB | TSK2006 |
| #7 | multiple_forum.patch_0.txt | 10.91 KB | fax8 |
| #6 | multiple_forum.patch.txt | 10.83 KB | fax8 |
Comments
Comment #1
killes@www.drop.org commentedI think this makes sense. I'd add a "realm" column to the og_term table to distinguish the default forum from others.
Comment #2
jo1ene commentedI am interested in seeing this done - especially point #2 above. What help is needed to get this ball rolling?
Comment #3
wheeledone commentedI 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.
Comment #4
aangel commentedI'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.
Comment #5
Steel Rat commentedI'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.)
Comment #6
fax8 commentedThe 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
Comment #7
fax8 commentedAdd a check on _rewrite_sql hook to only show a forum if I'm subscribed and activated by
the group manager.
Comment #8
Steel Rat commentedHow can I apply this patch? Haven't done it before with Drupal.
Comment #9
fax8 commentedHave a look at http://drupal.org/node/22568
I would like to receive some developer review.
Comment #10
rubenk commentedI'll try this out in 4.7 if it is back compat
Comment #11
fax8 commented@rubenk: yes my patch is for 4.7
Comment #12
joshua_cohen commentedHas 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
Comment #13
rubenk commentedGot 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'),
);
}
Comment #14
pbarnett commenteda semicolon after $user would probably do the trick ;-)
Pete.
Comment #15
pbarnett commentedHmm.
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.
Comment #16
Christefano-oldaccount commentedAfter 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.
Comment #17
regx commentedThis 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.
Comment #18
regx commentedI 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.
Comment #19
davea commentedI 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!!!!
Comment #20
TSK2006 commentedThe 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.
Comment #21
TSK2006 commentedComment #22
joshua_cohen commentedIf 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
Comment #23
benthere commentedafaict, these are seperate issues.
Comment #24
darren ohComment #25
darren ohFixed 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.
Comment #26
(not verified) commented