Hello Experts-
I'm hoping for an answer on an OG Forum question. I have implemented the advice here (as I had issues with Views and OG): http://drupal.org/node/174563. Everything works great but now I'd like to add a link to the group forum (since with my changes I can't really use the OG Menu anymore). The issue is that group forums have another id than the group. So I can't simply grab the $gid and pass it to the forum page. Does anyone know how to translate a group id to a group forum. I can't hard code every id into the menu. I'd like to add this functionality.
Here's what I have right now:
if (module_exists('og')) {
$group_node = og_get_group_context();
$gid03 = $group_node->title;
$gid02 = $group_node->nid;
$gid = (int)$gid02;
if ($gid02 === null) $gid = 0;
$output .= "<a href=\"http://mysite/node/$gid\"><h2>$gid03</h2></a><div class=\"item-list\"><a title=\"Content\" href=\"http://mysite/og/ogcontent/$gid\">Content</a> | <a title=\"Tasks\" href=\"http://mysite/og/ogtasks/$gid\">Tasks</a> | <a title=\"Forum\" href=\"http://crystal01:8080/bic/forum/$gid\">Forum</a> | <a title=\"Calendar\" href=\"http://mysite/og/ogcalendar/$gid\">Calendar</a> | <a title=\"Search\" href=\"http://mysite/og/search/$gid\">Search</a>
</div>";
print $output;
}
Obviously Forum is not going to work.. Any help would really be appreciated!
Thanks in advance!
Jim Orbin