Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Hidden Invite Only Social Groups Details »»
Hidden Invite Only Social Groups
Mod Version: 1.02, by XiZa (Contributor) XiZa is offline
Developer Last Online: Nov 2008 I like it Show Printable Version Email this Page

vB Version: 3.7.2 Rating: (2 votes - 3.00 average) Installs: 12
Released: 08 Jul 2008 Last Update: 08 Jul 2008 Downloads: 73
Not Supported Code Changes  

Hello,

I've made a code modification to hide invite only social groups from the group.php page (including search). If you are an admin, you will still see those groups listed even if you are not a member of them.

Anyway so this hack does the following:

- Removes all invite only social groups from the group list page.
- Shows an error when you try to access the group by URL if you're not a member or not invited.
Same for picture page, etc.

I just made this today and it seems like it works, but please for now test it locally first!


I didn't make a plugin since there don't seem to be hooks in the locations that I need.

Instructions:

Download the new group.php and replace your old one. Alternatively, find all the sections labeled //WESLEY mod and do the replacements manually.

UPDATE:

I also added two other replacement files, you can either just download them or follow along here to do the updates yourself..

To also remove the invitation only social groups from the list on the profile page, open includes/class_profileblock.php and go to line 1130 or so.

Remove this:


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

Replace by this


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

Lastly, if you do not want to show a link to the social group from the last activity bit ("Viewing social group: link") open includes/functions_online.php

Go to line 2182

Change


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

to


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

If the group is invite only it will now just display "Viewing social group".

Download Now

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

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.
  #16  
Old 17 May 2011, 21:54
grey_goose grey_goose is offline
 
Join Date: Jun 2009
Found another one:


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

The last line should be:

print_no_permission();

Note that the 's' is removed from permission. I guess this is a 3.8 change?
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 10:34.

Layout Options | Width: Wide Color: