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.

Remove "Public" from status update privacy option

11 years 6 months ago
  • Steve's Avatar
    Topic Author
  • Steve
  • Offline
  • Fresh Boarder
  • Posts: 43
  • Thank you received: 5
Licenses:
JomSocial Active Socialize Expired

ISSUE SUMMARY:
I run a private network where only logged in users can see status posts (or any jomsocial content). I want to remove the "Public - can be seen by everyone" option when creating a status update (and pretty much everywhere else such as album privacy) so that member can be assured that their posts are not being seen by the general public. The old hack of changing the privacy.php file and removing the "$access[ 'public' ] = true;" line no longer works.

I've also tried removing it from the stream.selectprivacy.js but that does not seem to have any effect either.
privacies = [
// [ 'public', 10, window.joms_lang.COM_COMMUNITY_PRIVACY_PUBLIC, 'earth' ],
[ 'site_members', 20, window.joms_lang.COM_COMMUNITY_PRIVACY_SITE_MEMBERS, 'users' ],
[ 'friends', 30, window.joms_lang.COM_COMMUNITY_PRIVACY_FRIENDS, 'user' ],
[ 'me', 40, window.joms_lang.COM_COMMUNITY_PRIVACY_ME, 'lock' ]
];

How can I remove the public option from the privacy drop down lists?

11 years 6 months ago
Licenses:

Hi Steve,

you cant do that. that because all javascript files compressed to bundle.js. the solution only using CSS.

.joms-postbox-dropdown.privacy-dropdown li:nth-child(1) {
  display: none;
}

put it at /templates/rt_iridescent/css/rt_iridescent-custom.css

Regards

The following user(s) said Thank You: Steve
11 years 6 months ago
  • Steve's Avatar
    Topic Author
  • Steve
  • Offline
  • Fresh Boarder
  • Posts: 43
  • Thank you received: 5
Licenses:
JomSocial Active Socialize Expired

Thank you.

For anyone else attempting to do this, there are two items to change:

1) Add the CSS that Albertus provided to your custom css file:
.joms-postbox-dropdown.privacy-dropdown li:nth-child(1) {
display: none;
}
This will remove the public option from the stream postings.

2) In /components/com_community/libraries/privacy.php, remove the line "$access[ 'public' ] = true;"
This will remove the public option from create photo album and the video upload pages.

The following user(s) said Thank You: Albertus
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