Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

how to set default value for the checkbox This is a closed group

8 years 7 months ago
Licenses:
JomSocial Expired

I need to create all my group as private, is there a way to by default have checked the checkbox This is a closed group.

thanks

8 years 7 months ago
Licenses:

Hi,

please copy groups.forms.php from /components/com_community/templates/jomsocial/layouts/ to /templates/[front end template folder]/html/com_community/layouts/

edit it, at line 41
change the code from

<?php echo ($group->approvals == COMMUNITY_PRIVATE_GROUP) ? ' checked="checked"' : ''; ?>>
to
<?php echo ($group->approvals == COMMUNITY_PRIVATE_GROUP || $isNew) ? ' checked="checked"' : ''; ?>>

and remove this code from line 48
<?php echo ($group->approvals == COMMUNITY_PRIVATE_GROUP) ? '' : ' disabled="disabled"'; ?>

Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW