hide members in a group

Support for IntegraMOD 140

Moderator: Integra Moderator

hide members in a group

PostAuthor: manish at gmail » Wed Jun 20, 2007 12:26 am

I am using Inegramod 1.4.0 on PHPBB 2.0.17
(I know I must upgrade, but I don't want to disturb my set-up, if it's not very important.)

I would like to create groups, where people can join, or be added.
But I don't want the people who have been added, to see the other members in that group.

Basically, then I would be able to add people (or even auto-join) into groups, where, the identity of the other members in the same group can be kept private.

Has anybody tried that before?

I searched the forums for "hide members in a group" but the results weren't encouraging.

So could somebody please help me?

Thanks in advance
Last edited by manish at gmail on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

manish at gmail
Newbie
Newbie
 
Posts: 3
Likes: 0 post
Liked in: 0 post
Joined: Mon Jun 11, 2007 9:55 pm
Cash on hand: 0.00

Re: hide members in a group

PostAuthor: Mighty Gorgon » Thu Jul 05, 2007 2:50 am

I guess you have to modify groupcp.php...

I don't know if it works on your version, but you can try this... which will disable users parsing for hidden groups where the user is not moderator...

FIND:
Code: Select all
&#32; &#32;  &#32;  for($i = $start; $i <min>assign_block_vars('member_type', array(&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  'L_TYPE' => ( $group_members[$i]['group_moderator'] ) ? $lang['Group_Moderator'] ],&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  )&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  );&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $color = false;&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $last_member_type = $group_members[$i]['group_moderator'];&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $color = !$color;&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $row_class = ( $color ) ? $theme['td_class1'] : $theme['td_class2'];&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  // set the row class &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $template->assign_block_vars('member_type.member_row', array(&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  'ROW_CLASS' => $row_class,&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  'USER_ID' => $user_id, &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  )&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  );&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  @reset($user_maps['PHPBB.groupcp']['fields']);&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  preProcessUserConfig($group_members[$i]);&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  while (list($field_name, $field_data) = @each($user_maps['PHPBB.groupcp']['fields']) )&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $val = pcp_output($field_name, $group_members[$i], 'PHPBB.groupcp');&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  if(!$val){&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $val = " ";&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $template->assign_block_vars('member_type.member_row.member_fields', array(&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  'FIELD' => $val,&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  'WIDTH' => $width,&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  )&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  ); &#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  if ($is_moderator)&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  if ( !$group_members[$i]['group_moderator'] || ($group_members[$i]['group_moderator'] && ( ($group_moderator['user_id'] == $userdata['user_id']) || ($userdata['user_level'] == ADMIN) )&#41; )&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $template->assign_block_vars('member_type.member_row.switch_mod_option', array()&#41;;&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  } 


REPLACE WITH:
Code: Select all
 &#32;  &#32; if ( ($group_info['group_type'] == GROUP_HIDDEN) && !$is_moderator )&#32;  &#32;  {&#32;  &#32;  &#32;  &#32;  for($i = $start; $i <min>assign_block_vars('member_type', array(&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  'L_TYPE' => ( $group_members[$i]['group_moderator'] ) ? $lang['Group_Moderator'] ],&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  )&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  );&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $color = false;&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $last_member_type = $group_members[$i]['group_moderator'];&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $color = !$color;&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $row_class = ( $color ) ? $theme['td_class1'] : $theme['td_class2'];&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  // set the row class &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $template->assign_block_vars('member_type.member_row', array(&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  'ROW_CLASS' => $row_class,&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  'USER_ID' => $user_id, &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  )&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  );&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  @reset($user_maps['PHPBB.groupcp']['fields']);&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  preProcessUserConfig($group_members[$i]);&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  while (list($field_name, $field_data) = @each($user_maps['PHPBB.groupcp']['fields']) )&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $val = pcp_output($field_name, $group_members[$i], 'PHPBB.groupcp');&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  if(!$val){&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $val = " ";&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $template->assign_block_vars('member_type.member_row.member_fields', array(&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  'FIELD' => $val,&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  'WIDTH' => $width,&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  )&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  ); &#32; &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  if ($is_moderator)&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  if ( !$group_members[$i]['group_moderator'] || ($group_members[$i]['group_moderator'] && ( ($group_moderator['user_id'] == $userdata['user_id']) || ($userdata['user_level'] == ADMIN) )&#41; )&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  {&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  $template->assign_block_vars('member_type.member_row.switch_mod_option', array());&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  &#32;  &#32;  }&#32;  &#32;  }&#32;  


Let me know.
Last edited by Mighty Gorgon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Luca
User avatar
Mighty Gorgon
Dev Team
Dev Team
 
Posts: 31
Likes: 0 post
Liked in: 0 post
Joined: Wed Nov 08, 2006 5:35 am
Cash on hand: 0.00
Location: Borgo San Michele

Re: hide members in a group

PostAuthor: manish at gmail » Thu Aug 23, 2007 6:43 am

Thank You Luca,

Wasn't around for a long time, so didn't know that somebody actually took a shot at this problem.

I will try your solution, and tell you, how it goes.

Thank you, once again
Last edited by manish at gmail on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

manish at gmail
Newbie
Newbie
 
Posts: 3
Likes: 0 post
Liked in: 0 post
Joined: Mon Jun 11, 2007 9:55 pm
Cash on hand: 0.00


Return to IntegraMOD 140

Who is online

Registered users: Bing [Bot], Google [Bot]

cron