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 as a privacy option

10 years 3 months ago
  • Dave's Avatar
    Topic Author
  • Dave
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Expired

Hi, I want to achieve the same thing as described here:
www.jomsocial.com/forum/profile-universa...-as-a-privacy-option

Changing the code as detailed removes the public option from the drop down, however it is still set to public by default.

How do I set a field (or all fields) to "Only Me" as default?

10 years 3 months ago
Licenses:

Hi, Dave.

Browse to Backend -> Extensions -> JomSocial -> Configuration -> Privacy and set privacy as you like, then save and click reset button so it will sett all user settings like global one.


- 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
10 years 3 months ago
  • Dave's Avatar
    Topic Author
  • Dave
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Expired

Hi, thanks for the feedback

I have done the steps outlined, but on the registration page the drop down next to the profile fields are still all set to public by default (the small world icon)

We are collecting private information like passport number and date of birth which must always be set to "only me" by default.

Thanks

10 years 3 months ago
Licenses:

Hi, Dave.

I'm sorry but you haven't specified WHERE you want this change. Original post is related wit PROFILE EDIT. Nevertheless it could be done.

Edit file: ROOT/components/com_community/libraries/privacy.php

And in line 67:

static public function getHTML( $nameAttribute , $selectedAccess = 0 , $buttonType = COMMUNITY_PRIVACY_BUTTON_SMALL , $access = array(), $direction = '' )

change $selectedAccess = 0 from 0 to 40 like this: $selectedAccess = 40. This will select "Only me" by default.

(WARNING! Core file hack! Please, make safe copy of edited file. It means also that this file will be overwritten during upgrade, so please make a safe copy of customized file as well. Some core hacks could not working with future JomSocial releases and/or cause issues that will be not supported)


- 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
10 years 3 months ago
  • Dave's Avatar
    Topic Author
  • Dave
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Expired

Perfect, thanks!

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