We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

how to set default privacy settings to "Only Friends" [Solved] | Forum

Topic location: Forum home » Support » General Questions
siddharth raja
siddharth raja Sep 29 '14
hello, i referred some forum post and found the answer that i need to change default value in classes/event_handler file to FRIENDS_ONLY from "everybody"

but photo plugin and newsfeed plugins have different structure, pls tell me how can i make them friends only default privacy settings.


thank you.

The Forum post is edited by ross Sep 30 '14
ross Team
ross Sep 29 '14
classes/event_handler file 


for photo: 


line 823: 

 'defaultValue' => 'everybody'


for newsfeed: 

line 1656

'defaultValue' => NEWSFEED_BOL_Service::PRIVACY_EVERYBODY,

siddharth raja
siddharth raja Sep 30 '14
i knw this, but what i need to change in this to make default value friends only....

pls help me on that, also for newsfeed if i make it PRIVACY_FRIENDS_ONLY, its not wrking...

The Forum post is edited by siddharth raja Sep 30 '14
ross Team
ross Sep 30 '14
change the value everybody to friends_only for photo
and PRIVACY_FRIENDS_ONLY for newsfeed.
siddharth raja
siddharth raja Sep 30 '14
this is the event handler file for my photo plugin, i cant find  'defaultValue' => 'everybody' in it anywhere...pls see
Attachments:
  event_handler.zip (10Kb)
siddharth raja
siddharth raja Sep 30 '14
and this is the error that i am getting if i change in newsfeed events handler file:

Fatal error: Undefined class constant 'PRIVACY_FRIENDS_ONLY' in /home/nek109e9/public_html/ow_plugins/newsfeed/classes/event_handler.php on line 1656



ross Team
ross Sep 30 '14
what software version do you have?
siddharth raja
siddharth raja Sep 30 '14
oxwall 1.7.1 the latest
ross Team
ross Sep 30 '14
what about plugins? are they up-to-date?
The Forum post is edited by ross Sep 30 '14
ross Team
ross Sep 30 '14
your photo plugin is already changed to friends only on 823 line.
siddharth raja
siddharth raja Sep 30 '14
ok, what about newsfeed, n yes all my plugins are updated
ross Team
ross Sep 30 '14
ok for newsfeed:

for newsfeed: 

line 1656

'defaultValue' => "friends_only",


siddharth raja
siddharth raja Sep 30 '14
ok, thank you so much, it worked.....

thanks once again....

oxwall is great...

siddharth raja
siddharth raja Sep 30 '14
thank u so much for this help, one more help i wanted, if i want to change "avater" to as "profile pic". how can i do that. i mean i just want to change the string, jus the button name, rest same functionality. pls help me how to do these settings....

thank you...

siddharth raja
siddharth raja Sep 30 '14
sorry for this question, this thing is solved...

thanx

ross Team
ross Sep 30 '14
Great! I'm going to mark this post as Solved. 
Fabrice
Fabrice Nov 27 '17
On oxwall 1.8.4 this solution doesn't work for newsfeed..... the line is the 1718, i edited it but nothing is changed
The Forum post is edited by Fabrice Nov 27 '17
Steve
Steve Jun 6 '18
@Fabrice


Did you succeed finally?