Useful posts for configuring OG

Last modified: November 26, 2005 - 15:59

this is another interesting discussion "Relocalization Network beta launch, fork of organic groups"
http://drupal.org/node/22902

also some work towords "Show all content for a particular group (Organic Groups)?"
http://drupal.org/node/26559

this might be of some use "OG - Tweaking the UI for very large numbers of groups"
http://drupal.org/node/28224

sure wish we could sort search results on drupal.org *sigh*

Travis

quickie - change manager

tobyspark - May 22, 2006 - 09:15

just worked out something that wasn't intuitive to me - to change the owner of a group, change the author of the group homepage. requires administer node permissions.

toby

Hide "no public posts in this group" message from og

lsabug - June 12, 2007 - 17:19

This may have been answered somewhere else, I can't find it though, but is there a disable feature in groups that can hide this message? I see it in the module itself - line 1075 - but didn't want to comment it out unless I absolutely had to (for fear I'd forget the next time I updated).

*****edited June 12 07 ****
Didn't find anything after searching the forums/issues areas so I ended up commenting out the message text output in og.module here lines 1080-1085:

From this:

    $msg = t('No posts in this group.');
  }
  else {
    $msg = t('No public posts in this group.');
    if (!$user->uid) {
      $msg .= ' '. t('You must <a href="!register">register</a> or <a href="!login">login</a> and become a subscriber in order to post messages, and view any private posts.', array('!register' => url("user/register", $dest), '!login' => url("user/login", $dest)));

to this:

/**    $msg = t('No posts in this group.'); **/
  }
  else {
/**    $msg = t('No public posts in this group.'); **/
    if (!$user->uid) {
/**      $msg .= ' '. t('You must <a href="!register">register</a> or <a href="!login">login</a> and become a subscriber in order to post messages, and view any private posts.', array('!register' => url("user/register", $dest), '!login' => url("user/login", $dest))); **/

Frustrating

mikemccaffrey - March 30, 2008 - 04:04

I wish there was a good way to handle this problem. I chose to make string replace statements in my page.tpl.php file:

<?php
    $messages
= str_replace("<div class=\"messages status\">\nNo posts in this group.</div>", '', $messages);
   
$messages = str_replace("<div class=\"messages status\">\nNo public posts in this group.</div>", '', $messages);
   
$messages = ereg_replace("<div class=\"messages status\">\nNo public posts in this group. You must <a href=\"/register\?destination=node\%2F".arg(1)."\">register</a> or <a href=\"/user/login\?destination=node\%2F".arg(1)."\">login</a> and become a subscriber in order to post messages, and view any private posts.</div>", "", $messages);
?>

Messy, but at least it does not involve hacking module code.

try string overrides

dugh - July 7, 2008 - 22:49

See also the string overrides module.

You can override any t("...") string with a different message, or blank I assume.

 
 

Drupal is a registered trademark of Dries Buytaert.