Community Documentation

Organic Group Forum: Private forum for a group

Last updated September 4, 2009. Created by highermath on April 22, 2006.
Edited by bekasu, LeeHunter, Amazon. Log in to edit this page.

The organic group forum module creates a forum container for that group, with a single sub-forum. The forum can be restricted to be only seen by members of that group. Forums for group members are very useful to maintain privacy of a groups discussions as it begins to organize and accomplish the groups mission.

A category term for the group is created to tie the organic group with it's forum container.

You can:

Subform Magic

If you have numerous subforums that should not be displayed on the main index and need to hide them, Michelle provided me with a bit of helpful code.

In og_forum.module

find:

function theme_og_forum_list($forums, $parents, $tid) {
global $user;

right after that add:

$hide_subs = TRUE;

find:

else {
$new_topics = _forum_topics_unread($forum->tid, $user->uid);
$forum->old_topics = $forum->num_topics - $new_topics;
if (!$user->uid) {
$new_topics = 0;
}

right after that add:

if($forum->depth <= 1) {
$description = '' . "\n";
} else {
if ($hide_subs) {
continue;
} else {
$description = 'depth . '">' . "\n";
}
}

This is used in conjunction with Michelle's advanced forum for great results.

Comments

subforum magic

why is this not integrated into the module itself as an optional feature somehow?

About this page

Drupal version
Drupal 4.6.x, Drupal 4.7.x, Drupal 5.x

Site Building Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here