Restrict Privacy Options (Group Settings)
-
Hi,
I am asking myself whether it is possible to deactive certain privacy option when you are setting up a new group. E.g. that you only can create “Public Groups”. Does anyone have a clou?
Thank you in advance.
Kind regards,
pasen
-
It’s being considered https://buddypress.trac.wordpress.org/ticket/1125 — related to https://buddypress.trac.wordpress.org/ticket/4119
@marcime:
Thank you for your quick response.
I not pretty sure wheter you got me right in the first place. It is not about an additional Group Setting but about a general restriction. For my page I don’t want my members to set up private or hidden groups at all.
Every group should be public.
@ all:
Maybe I can amend the source code. Does anybody know how?
Thank you in advance and kind regards,
Pasen
If you have a child theme of bp-default theme, the simple way would be to copy over:
a) https://buddypress.trac.wordpress.org/browser/tags/1.5.4/bp-themes/bp-default/groups/create.php
to wp-content/themes/YourChildThemeFolder/groups/create.php
– above line 90 per linked file add “
– below line 106 per linked file add “b) https://buddypress.trac.wordpress.org/browser/tags/1.5.4/bp-themes/bp-default/groups/single/admin.php
to wp-content/themes/YourChildThemeFolder/groups/single/admin.php
– above line 69 per linked file add “
– below line 87 per linked file add “Note that if you as Site/Super Admin don’t even want to create a hidden or private group yourself, then delete lines 90-106 from create.php and delete lines 69-87 from admin.php
I want to only allow private groups, so I’ve commented out the equivalent of lines 81-88 & 99-106 in create.php and 59-67 & 79-87 in admin.php. Now when a user creates a new group, it does only show the private option, but it remains unchecked unless they click on it, so if they don’t, the group’s status remains as ‘public’ when they continue to the next stage. How do you set the radio button to be checked by default?
- The topic ‘Restrict Privacy Options (Group Settings)’ is closed to new replies.