Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Private Social Groups Details »
Private Social Groups
Mod Version: 1.00, by grey_goose (Coder/Designer) grey_goose is offline
Developer Last Online: Mar 2020 I like it Show Printable Version Email this Page

vB Version: 4.1.4 Rating: (0 vote - 0 average) Installs: 10
Released: 15 Jul 2011 Last Update: Never Downloads: 34
Not Supported Code Changes Translations  

Some may not have noticed, but vb4 no longer supports restricting Moderators from viewing Join-To-View/Invite Only content.

This modification does the following:
- Restricts Moderator access
- Hides the display of Social Groups set to Invite Only/Join-To-View (similar to this)

These are file edits. Back up your original files.

Included in the zip are changed files which can be used as replacements; for those that prefer to make the changes manually, here they are.

1) In /group.php
Find (~ line365):

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

2) In /group.php
Find (~ line 653):

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

3) In /includes/functions_socialgroup.php
Find (~ line 699):

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

4) In /includes/functions_socialgroup.php
Find (~ line 1829):

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

5) In /includes/functions_socialgroup.php
Find (~ line 1893):

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

6) In /includes/functions_socialgroup.php
Find (~ line 1967):

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Note: This is marked "Unsupported" as I am not the original author; this was done by a member of my site in his spare time who is allowing the modification to be shared. This works. He simply has no time for troubleshooting.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	member.jpg
Views:	269
Size:	91.5 KB
ID:	131049   Click image for larger version

Name:	non-member.jpg
Views:	221
Size:	87.7 KB
ID:	131050  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 22 Jul 2011, 08:55
HotnHoly HotnHoly is offline
 
Join Date: Feb 2005
Thank you for this solution !
Reply With Quote
  #3  
Old 22 Jul 2011, 16:10
grey_goose grey_goose is offline
 
Join Date: Jun 2009
Very welcome, glad someone else could use it!
Reply With Quote
  #4  
Old 07 Sep 2015, 20:04
smirkley smirkley is offline
 
Join Date: Apr 2008
Just installed. Works like a champ.

Trying to figure out how to apply filter to the Activity Stream now.
Reply With Quote
  #5  
Old 26 Sep 2016, 23:03
KevinL KevinL is offline
 
Join Date: Apr 2005
Originally Posted by smirkley View Post
Just installed. Works like a champ.

Trying to figure out how to apply filter to the Activity Stream now.
Ever figure out how to do that?
Reply With Quote
  #6  
Old 26 Sep 2016, 23:19
grey_goose grey_goose is offline
 
Join Date: Jun 2009
Probably just need to add the viewable permission to the stream SQL query. Unfortunately I don't use that so I can't be much help there.

maybe something like...

WHERE group.canviewcontent != 'No'
OR group.type != 'inviteonly'
Reply With Quote
  #7  
Old 26 Sep 2016, 23:50
KevinL KevinL is offline
 
Join Date: Apr 2005
Thank you I will look into that.

Would the profile page edits be similar to what is listed here also:

http://www.vbulletin.org/forum/showthread.php?t=184715

Also trying remove the group posts from the profile activity stream. When viewing someones profile you are able to see the private groups post. Would that be similar to your last reply?

Thank you for the help!
Reply With Quote
  #8  
Old 27 Sep 2016, 19:34
grey_goose grey_goose is offline
 
Join Date: Jun 2009
Semi-sorta. That link will still let moderators see it (refer to can_moderate in WHERE syntax) whereas my goal was to hide them completely.

And, yes, adjusting the query would remove the private groups post.
Reply With Quote
  #9  
Old 15 Sep 2017, 17:58
IggyP IggyP is offline
 
Join Date: May 2012
Originally Posted by grey_goose View Post
Semi-sorta. That link will still let moderators see it (refer to can_moderate in WHERE syntax) whereas my goal was to hide them completely.

And, yes, adjusting the query would remove the private groups post.
was this ever fully fixed/resolved?

just realized about it...kinda surprising not even vb4 got around to fixing permission issues dam..
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:14.

Layout Options | Width: Wide Color: