By Sebastia Abogados Tributarios S.L. on Wednesday, 14 March 2018
Posted in General Issues
Replies 9
Likes 0
Views 512
Votes 0
Is possible that when I create a new page, event and/or group, by default it is created private, not public ?
Hey,

Unfortunately this isn't configurable but with a slight tweak to the theme file, you can actually alter the behavior. You would need to edit the following files,

/media/com_easysocial/apps/fields/event/type/themes/default/content.php
/media/com_easysocial/apps/fields/group/type/themes/default/content.php
/media/com_easysocial/apps/fields/page/type/themes/default/content.php

Then, search for codes that contains this,

[gist]
<?php if ($value == 2) { ?>
[/gist]

Change this to:

[gist]
<?php if ($value == 2 || !$value) { ?>
[/gist]


Also, search for the codes below,

[gist]
<?php if ($value == 1 || !$value) { ?>
[/gist]

Replace it with,

[gist]
<?php if ($value == 1) { ?>
[/gist]
·
Wednesday, 14 March 2018 22:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi
I do this but I don´t get what I want when I create for example a new page (see atached file) : by default private page, event or group
·
Friday, 23 March 2018 00:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Can you attach your modified php file here so that we can take a look at your changes?
Thanks.
Sam
·
Friday, 23 March 2018 10:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Here are
·
Friday, 23 March 2018 18:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Before file is for pages and this one for events.
·
Friday, 23 March 2018 19:04
·
0 Likes
·
0 Votes
·
0 Comments
·
This one for groups
·
Friday, 23 March 2018 19:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You should be able to change them on your workflow currently(based on each groups/events/pages respectively) as you can see here http://take.ms/9KlH3. You can change them accordingly. Maybe you can revert back all changes on your site and see how it goes.

Please give it a try and see how it goes.
·
Friday, 23 March 2018 19:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes Abdul, it works. Then it wasn´t necessary changes I made in :

/media/com_easysocial/apps/fields/event/type/themes/default/content.php
/media/com_easysocial/apps/fields/group/type/themes/default/content.php
/media/com_easysocial/apps/fields/page/type/themes/default/content.php

?
·
Friday, 23 March 2018 21:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Sebastia,

Ah yes we actually added this as a feature but yeah, you may revert those changes on those files.
·
Saturday, 24 March 2018 00:25
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post