Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Group Privacy

9 years 3 months ago
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

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.

9 years 3 months ago
Licenses:

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"' : ''; ?>>

With this:
<input type="checkbox" class="joms-checkbox" style="display: none;" name="approvals" onclick="joms_checkPrivacy();" value="1"
                    checked="checked">

This will enable "Closed group" option by default and hide that filed so user can't opt-out.
If you want to see if field is checked by default just remove style="display: none;" from snippet.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Brian
9 years 3 months ago
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

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.

9 years 3 months ago
Licenses:

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"' : ''; ?>>

Change with:
<input type="checkbox" class="joms-checkbox" style="display: none;" name="permission" onclick="joms_checkPrivacy();" value="1"
                    checked="checked">


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
9 years 3 months ago
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

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

9 years 3 months ago
Licenses:

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.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
9 years 3 months ago
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

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

9 years 3 months ago
Licenses:

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).


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
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