By Hideto on Thursday, 27 July 2017
Posted in Technical Issues
Replies 5
Likes 0
Views 554
Votes 0
Hello,

Currently when trying to create a Teamblog, default privacy is "Team members only".
Will you advise me how to set default privacy to "Everyone"?

Thanks,
rikao
Hi there,

Currently, it is not possible for you to change its default and it is requires you to do modifications on the cores files. Here are the path ../administrator/components/com_easyblog/views/teamblogs/view.html.php and you can change those code accordingly on line 111-113

Please give it a try and see how it goes

Note:
You are required to do backup on this files as once you made any update/upgrade, this file will be overwritten with its default value.
·
Thursday, 27 July 2017 16:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Abdul,

Thanks for the advice.
I played around a little bit with the code below, but couldn't achieve what I want...

$blogAccess[] = JHTML::_('select.option', '1', JText::_( 'COM_EASYBLOG_TEAM_MEMBER_ONLY' ) );
$blogAccess[] = JHTML::_('select.option', '2', JText::_( 'COM_EASYBLOG_ALL_REGISTERED_USERS' ) );
$blogAccess[] = JHTML::_('select.option', '3', JText::_( 'COM_EASYBLOG_EVERYONE' ) );


Will you please provide detailed instruction?

Thanks,
rikao
·
Thursday, 27 July 2017 22:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You can applied my codes below.

$blogAccess[] = JHTML::_('select.option', '2', JText::_( 'COM_EASYBLOG_ALL_REGISTERED_USERS' ) );
$blogAccess[] = JHTML::_('select.option', '1', JText::_( 'COM_EASYBLOG_TEAM_MEMBER_ONLY' ) );
$blogAccess[] = JHTML::_('select.option', '3', JText::_( 'COM_EASYBLOG_EVERYONE' ) );


By the way, may i know which end a re your referring to? Those files as gave is for backend only. And if you wanted to change them on your frontend, you have to change it here .../administrator/components/com_easyblog/includes/privacy/privacy.php

Please advice.
·
Friday, 28 July 2017 10:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, I mean frontend.
I was able to achieve what I want by editing the privacy.php.

$options[] = JHTML::_('select.option', '3', JText::_('COM_EASYBLOG_EVERYONE'));
$options[] = JHTML::_('select.option', '2', JText::_('COM_EASYBLOG_ALL_REGISTERED_USERS'));
$options[] = JHTML::_('select.option', '1', JText::_('COM_EASYBLOG_TEAM_MEMBER_ONLY'));


Thanks,
rikao
·
Friday, 28 July 2017 21:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Hideto, glad that your issues are resolved now
·
Friday, 28 July 2017 21:40
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post