vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Social Group Discussion for Group members only? (https://vborg.vbsupport.ru/showthread.php?t=266467)

Wolver2 07-08-2011 09:47 AM

Social Group Discussion for Group members only?
 
I am trying to hide the Groups from other members on the forum who are not in the group .
But I cannot find the option.

Is it even possible to hide the group from non group members?

kh99 07-08-2011 12:55 PM

It doesn't look like that's possible. You can have a user group that can't use groups at all, but there doesn't seem to be any way to configure a group to be visible to members only. (I could have missed it, in which case I'm sure someone will let us know ;))

You might be able to fake it. I created a plugin using hook group_start_postcheck and this code:

PHP Code:

if (!empty($group) AND empty($group['membertype']) AND in_array($group['groupid'], array(123)))
{
    
print_no_permission();



and that gives a "you have no permission" if you try to view a group with id 1, 2, or 3 and you're not a member. It doesn't hide the existence of the group (it still shows up in the list of groups). And it seems to work for any access through group.php but I don't know if there's any other way to view group messages that might have to be handled separately.

vBMerkezi 07-10-2012 10:35 AM

thank you


All times are GMT. The time now is 09:07 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01496 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete