Hi,
does anyone know how to default new elements, like messages, comments, task lists, etc. to Private? I'm probably going to have some clients in my userbase, and I don't want them to accidentally see things that wasn't ment for them.
I must say I find it a little strange that when you have clients in the system, new elements default to not private. I'd rather explicit tell when to share something with "outsiders", than the other way around.
Hi, I know how to do that but it requires a change in the code.
E.g. for message you need to change file
/projectpier-0.8.0.3/application/views/message/add_message.php
and change the line with
array_var($message_data, 'is_private'), lang('yes'), lang('no'))
to
array_var($message_data, 'is_private', true), lang('yes'), lang('no'))
Do you still need this?
A dirty fix I use is to insert the following code to the beginning of the code inside the yes_no_widget() function in application/helpers/form.php
//MOD - make all private choices default to yes
if(strpos(strtolower($name),"is_private") != false) {
$value = true; //set to private YES default
}
This makes any yes/no form widget that uses the is_private key default to private. Works with milestones, messages, task lists, files etc.
I tried to follow these instructions but it did not work for me. Can you detail it a little more for me please?
In beta 3 there is an option in configuration of Features:
Default setting for private option:
No need to fix code anymore.