ANSWERED: Limit Privacy Settings
ANSWERED: Limit Privacy Settings
I am trying to figure out how to limit the privacy permissions at the bottom of an event creation.
What I am trying to do is create two calendars. Personal Calendar, and Community Calendar. In each of these calendars, I want to set it so that the user has no choice when choosing privacy settings. Instead, I want the personal calendar to always have the privacy settings to "private event", and the community calendar to always be set to "public event".
Isn't there already functionality to do this? As far as I could find, the only way something like this could be done, is if you set the link parameters to show only private events. This doesn't make any sense to me, because it doesn't give you control over calendars and privacy settings. Why would you want to just globally set it so that users can or cant see private or public events based on the link to the component? This would also confuse the frontend user, when they create a "public event" and because the link is set to only show private events.
Also, when I set the the parameters in to the link to "show only private events", all events are still shown. So it doesn't work anyway.
- jon
- New User
-
-
-
- 9 Posts
Re: ANSWERED: Limit Privacy Settings
Any Help?
- jon
- New User
-
-
-
- 9 Posts
Re: ANSWERED: Limit Privacy Settings
There is currently no functionality to lock a user into which settings are allowed for the different calendars. You could, however, have a custom developer change the settings automatically for your private calendar.
* Please note that all support is handled on this forum.
** Please read the FAQs and Documentation before posting:
Docs: Advanced Search | Agora | JCal Pro | RSVP | sh404SEF
FAQs: Advanced Search | Agora | JCal Pro | RSVP | sh404SEF
- Toni Marie
- Developer
-
-
-
- 770 Posts
Re: ANSWERED: Limit Privacy Settings
Could you point me in the right direction on which files would need adjusting. I figure it might be something somewhat simple, setting it so that all new events made on the calendar as private, instead of having the drop down.
- jon
- New User
-
-
-
- 9 Posts
Re: ANSWERED: Limit Privacy Settings
I'm not the code person myself but most of this stuff happens in site/include/functions.inc
Line number 456 starts with : function display_event_form and that is what builds the form where people can add events. If I were doing it (with my limited programming knowledge) I'd probably limit the selection of events' privacy there so that the others are not a choice.
* Please note that all support is handled on this forum.
** Please read the FAQs and Documentation before posting:
Docs: Advanced Search | Agora | JCal Pro | RSVP | sh404SEF
FAQs: Advanced Search | Agora | JCal Pro | RSVP | sh404SEF
- Toni Marie
- Developer
-
-
-
- 770 Posts
Re: ANSWERED: Limit Privacy Settings
Thanks, but i'm not finding "display_event_form" at line 456. For mine, its on line 911. Also, with my limited php knowledge, I also cant find any actual selections for the dropdown near there.
I am finding this:
Code:
$template_add_event_form_do_not_show_calendar, $template_add_event_form_show_private, $template_add_event_form_do_not_show_private,
Which has something to do with building that form dropdown. That's as good as I can do. I created a backup file, and have tried some different things with no luck.
- jon
- New User
-
-
-
- 9 Posts
Re: ANSWERED: Limit Privacy Settings
Is there someone with coding knowledge that can help me?
I would think making a small change like this would be fairly easy, but I don't understand php, and I cant find the form for privacy settings.
- jon
- New User
-
-
-
- 9 Posts
Re: ANSWERED: Limit Privacy Settings
I eventually found the code that calls out the three different options in the dropdown. I cant remember exactly what lines they were right now. I will post later for others to see what to edit if they want to.
MODERATOR UPDATE: It appears your issue is resolved. Please update this thread if the issue comes up again or create a new post.
If you do decide to share you solution I thank you in advance for sharing it with other subscribers.
- jon
- New User
-
-
-
- 9 Posts
Re: ANSWERED: Limit Privacy Settings
I have the same exact problem.. I found codes in functions.inc.php as below;
Code:
// calculate private event select list
$privateLabels = array(JCL_EVENT_PRIVATE => $lang_add_event_view['private_event'],
JCL_EVENT_PRIVATE_READ_ONLY => $lang_add_event_view['private_event_read_only'], JCL_EVENT_PUBLIC => $lang_add_event_view['public_event']);
$private = '';
foreach ($privateLabels as $key => $label) {
$selected = isset($form['private']) && $form['private'] == $key ? 'selected="selected"':'';
$private .= "\t<option value='" . $key . "' $selected>". $label ."</option>\n";
}
But I am not sure which bit I should amend. I would like 'private, but other can read' as a default.
Please help and thanks!
- janehancox
- Integrator
-
-
-
- 10 Posts
Re: ANSWERED: Limit Privacy Settings
I have submitted a ticket for the developers to review these requests and see if there is a workaround or feature that can be easily implemented.
Forum Legend
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked



Assistance with technical questions, product inquiries and customer service can be found in our 