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.

Any way to make default for posts public but keep profile for friends only?

9 years 11 months ago
  • John's Avatar
    Topic Author
  • John
  • Offline
  • Fresh Boarder
  • Posts: 51
  • Thank you received: 0
Licenses:
JomSocial Active

ISSUE SUMMARY:
Is there any way to make the default for posts public but keep the members profiles for friends only? Right not the only way to make posts public is to make Profiles public. I would like to make the defaults for posts public but member's profile for friends only. They should not really be connected. Is there anything I can change at a database to do this?

The problem at the moment is most people first log in and see an empty stream. They quickly lose interest. If default posts were public they would have interesting stuff to look at and make friends. Once they person agrees to be a friend then they would be able to see their profile, but not before. At the moment my community is very stagnant and this would help alot.

9 years 11 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi John,

yes this is possible, you can set profile to friends only, and when you create new status you should change the status privacy to public.

I hope it will help.

9 years 11 months ago
  • John's Avatar
    Topic Author
  • John
  • Offline
  • Fresh Boarder
  • Posts: 51
  • Thank you received: 0
Licenses:
JomSocial Active

hi

yes I am aware of this, but I want the default for statuses to be public. So people do not have to change it.

9 years 11 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi John,

You need hack the code for this components/com_community/libraries/privacy.php, add this code :

$access = array();
after this code :
// Initialize default options to show

this is not tested yet, but I hope it will work

thank you

9 years 10 months ago
  • John's Avatar
    Topic Author
  • John
  • Offline
  • Fresh Boarder
  • Posts: 51
  • Thank you received: 0
Licenses:
JomSocial Active

Hi

Added the line. Logged out and in again and first post was not public. It was still defaulting to friends only.

9 years 10 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi John,

I am sorry wrong file, this file components/com_community/templates/default/jomsocial/layouts/status.form.php, find this code :

<?php echo CFactory::getUser($my->id)->getParams()->get("privacyProfileView"); ?>
replace to :
10

9 years 10 months ago
  • John's Avatar
    Topic Author
  • John
  • Offline
  • Fresh Boarder
  • Posts: 51
  • Thank you received: 0
Licenses:
JomSocial Active

Thank you. Can you confirm? I replace that line of code with the number "10"?

9 years 10 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

yes right, 10 is default number code for public pivacy

9 years 10 months ago
  • John's Avatar
    Topic Author
  • John
  • Offline
  • Fresh Boarder
  • Posts: 51
  • Thank you received: 0
Licenses:
JomSocial Active

Thank you. Last question before I make the change. What do I set the privacy setting for profiles to in admin. Do I set it to friends only? Does this hack make posts public by default and leaves profiles as whatever is in backend.

Thanks so much for your help with this.

9 years 10 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

this hack only will effected on sharebox, so every user / admin who wanna post a new status, the default privacy will public

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