ISSUE SUMMARY: Hi
I am currently working on our Group Module in JomSocial and I was wondering how to do the following:
I want to make the default setting of all groups created a closed group. I do not want to give the user the option of choosing to make the group closed, it must be automatic and compulsory.
Hi, Brian.
Copy this file:
ROOT/components/com_community/templates/jomsocial/layouts/groups.forms.php
to:
ROOT/templates/your-template/html/com_community/layouts/ (if you don't have those folders - feel free to create them)
In line 40 replace this:
<input type="checkbox" class="joms-checkbox" name="approvals" onclick="joms_checkPrivacy();" value="1"
<?php echo ($group->approvals == COMMUNITY_PRIVATE_GROUP) ? ' checked="checked"' : ''; ?>>
<input type="checkbox" class="joms-checkbox" style="display: none;" name="approvals" onclick="joms_checkPrivacy();" value="1"
checked="checked">
Thank you for your assistance. We really appreciate it!
The coding that you gave us worked 100%. We have the same problem with the event module. We want the events to be closed so that all registered members do not see all the events. Could you possibly give us coding that could assist us with this?
Thank you in advance.
Hi, Brian.
Then do the same thing for this file:
ROOT/components/com_community/templates/jomsocial/layouts/events.forms.php
Line 53:
<input type="checkbox" class="joms-checkbox" name="permission" onclick="joms_checkPrivacy();" value="1"
<?php echo $event->permission == COMMUNITY_PRIVATE_EVENT ? ' checked="checked"' : ''; ?>>
<input type="checkbox" class="joms-checkbox" style="display: none;" name="permission" onclick="joms_checkPrivacy();" value="1"
checked="checked">
Thanks that coding helped us to make our event module a closed event by default, but one problem still remains.
Every event that was created still appears as a post on all the users timeline even if you are not a friend(member) of the creator(group/event admin) of the group/event or were invited to the group or event as a guest.
I dont't want that event post on everyones timeline everytime a new event was created if you are not a friend of the event creator(admin).
Regards
Hi, Brian.
Then browse to Backend -> Components -> JomSocial -> Configuration -> User points and disable event creation rule.
This will stop appearing NEW event posts on stream.
Hi
All Activity Type under User points with the name event in it is Event Update with an Activity Description of "Assign number of points when user update event information". Is that the problem?
I don't see any event creation rule or Activity Type
Regards
Hi, BRian.
You should disable this rule:
i.imgur.com/BIsQ3uS.png
If you don't have it, click "Rule scan button in upper right corner first).