HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[Resolved] - v8 Calendar - All day events still not displayed correctly

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#84849 (In Topic #17482)
Avatar

Community saint

Here is the calendar entry for an all-day event:


And here are the calendar_side_block and calendar detail entries:
  












Note that both have ending dates before the starting date even though they are disignated as all-day events and have no ending date designated.

Bob
Back to the top
 
Posted
Rating:
#84866
Avatar

Hopefully this'll fix it:

Attachment
sources/calendar.php
» Download: calendar.php (33 Kb, 79 downloads so far)
Attachment
site/pages/modules/calendar.php
» Download: calendar.php (75 Kb, 71 downloads so far)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#84888
Avatar

Community saint

Chris Graham said

Hopefully this'll fix it:

Attachment
sources/calendar.php
» Download: calendar.php (33 Kb, 79 downloads so far)
Attachment
site/pages/modules/calendar.php
» Download: calendar.php (75 Kb, 71 downloads so far)


This fixed the calendar entry detail page but the problem persists in the side_calendar block.


Cleared block, template and browser caches and also cleared the cache on Cloudflare.

Bob
Back to the top
 
Posted
Item has a rating of 5 (Liked by Robbie Goacher)  
Rating:
#84896
Avatar

Ok, to be honest this code scares me to death so I really hope this works, there is so much maths going on. I think this fixes it…

Attachment
sources/calendar.php
» Download: calendar.php (33 Kb, 79 downloads so far)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#84922
Avatar

Community saint

Chris Graham said

Ok, to be honest this code scares me to death so I really hope this works, there is so much maths going on. I think this fixes it…

Attachment
sources/calendar.php
» Download: calendar.php (33 Kb, 79 downloads so far)

Clear sailing, Chris. Checked out that it did not disrupt anything else and everything appears fine.

Thanks for fixing this.

Bob
Back to the top
 
Posted
Rating:
#84925
Avatar

It works for a negative timezone offset, let's hope it works for positive timezone offsets :).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#84928

Non-joined user

I don't have any entries in my Calendar yet, but when I tried to add one, I got this error message.  Should the updates above fix this?


An error has occurred

PHP NOTICE [8] Undefined variable: first_type in sources/calendar.php on line 230 (version: 8.0, PHP version: 5.3.10, URL: /cms/index.php?page=cms_calendar&type=ad)

Here is the stack trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check ocPortal website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

Code

File    '/home/seeingsh/public_html/bawiki.com/sources/failure.php'
Line    '684'
Function    'get_html_trace'
Args   

File    '/home/seeingsh/public_html/bawiki.com/sources/global2.php'
Line    '979'
Function    '_fatal_exit'
Args   
'PHP NOTICE [8] Undefined variable: first_type in sources/calendar.php on line 230'


File    '/home/seeingsh/public_html/bawiki.com/sources/failure.php'
Line    '217'
Function    'fatal_exit'
Args   
'PHP NOTICE [8] Undefined variable: first_type in sources/calendar.php on line 230'


File    '/home/seeingsh/public_html/bawiki.com/sources/global2.php'
Line    '853'
Function    '_ocportal_error_handler'
Args   
'notice'

8

'Undefined variable: first_type'

'sources/calendar.php'

230


File    '/home/seeingsh/public_html/bawiki.com/sources/calendar.php'
Line    '230'
Function    'ocportal_error_handler'
Args    ...

File    '/home/seeingsh/public_html/bawiki.com/cms/pages/modules/cms_calendar.php'
Line    '345'
Function    'nice_get_event_types'
Args   
2


File    '/home/seeingsh/public_html/bawiki.com/sources/aed_module.php'
Line    '492'
Function    'get_form_fields'
Class    'Module_cms_calendar'
Object    Module_cms_calendar::__set_state(array( 'lang_type' => 'CALENDAR_EVENT', 'select_name' => 'TITLE', 'orderer' => 'id', 'array_key' => 'id', 'title_is_multi_lang' => true, 'non_integer_id' => false, 'table' => 'calendar_events', 'code_require' => 'calendar', 'permissions_require' => 'low', 'user_facing' => true, 'seo_type' => 'event', 'award_type' => 'event', 'possibly_some_kind_of_upload' => true, 'menu_label' => 'CALENDAR', 'permissions_cat_require' => 'calendar', 'permissions_cat_name' => 'type', 'posting_field_required' => false, 'donext_type' => NULL, 'donext_date' => NULL, 'module_type' => 'calendar', 'redirect_type' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'upload' => NULL, 'cat_aed_module' => Module_cms_calendar_cat::__set_state(array( 'lang_type' => 'EVENT_TYPE', 'select_name' => 'EVENT_TYPE', 'select_name_description' => 'DESCRIPTION_EVENT_TYPE', 'orderer' => 't_title', 'array_key' => 'id', 'title_is_multi_lang' => true, 'non_integer_id' => false, 'protect_first' => 2, 'table' => 'calendar_types', 'permissions_require' => 'cat_high', 'permission_module' => 'calendar', 'javascript' => 'standardAlternateFields(\'file\',\'theme_img_code*\');', 'menu_label' => 'CALENDAR', 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'permission_page' => NULL, 'permissions_cat_require' => NULL, 'permissions_cat_name' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'upload' => NULL, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'seo_type' => NULL, 'award_type' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'table_prefix' => '', )), 'alt_aed_module' => NULL, 'posting_form_title' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_4fa6e0f9cff625.03403441\']="echo ecv(\\$cl,array(),2,\\"EVENT_TEXT\\",\\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_4fa6e0f9cff625.03403441', 1 => array ( ), 2 => 2, 3 => 'EVENT_TEXT', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => NULL, )), 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'javascript' => ' var form=document.getElementById(\'recurrence_pattern\').form; var crf=function() { var s=(form.elements[\'recurrence\'][0].checked); if (form.elements[\'recurrence_pattern\']) form.elements[\'recurrence_pattern\'].disabled=s; if (form.elements[\'recurrences\']) form.elements[\'recurrences\'].disabled=s; if (form.elements[\'seg_recurrences\']) form.elements[\'seg_recurrences\'].disabled=s; }; crf(); for (var i=0;i<form.elements[\'recurrence\'].length;i++) form.elements[\'recurrence\'][i].onclick=crf; var crf2=function() { var s=document.getElementById(\'all_day_event\').checked; document.getElementById(\'start_hour\').disabled=s; document.getElementById(\'start_minute\').disabled=s; document.getElementById(\'end_hour\').disabled=s; document.getElementById(\'end_minute\').disabled=s; } crf2(); document.getElementById(\'all_day_event\').onclick=crf2; form.old_submit=form.onsubmit; form.onsubmit=function() { if (form.elements[\'end_day\'].selectedIndex!=0) { var start=new Date(form.elements[\'start_year\'].value,form.elements[\'start_month\'].value,form.elements[\'start_day\'].value,form.elements[\'start_hour\'].value,form.elements[\'start_minute\'].value); var end=new Date(form.elements[\'end_year\'].value,form.elements[\'end_month\'].value,form.elements[\'end_day\'].value,form.elements[\'end_hour\'].value,form.elements[\'end_minute\'].value); if (start>end) { window.fauxmodal_alert(\'An event cannot finish before it starts!\'); return false; } } if (typeof form.old_submit!=\'undefined\' && form.old_submit) return form.old_submit(); return true; }; ', 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'table_prefix' => '', ))
Type    '->'
Args   

File    '/home/seeingsh/public_html/bawiki.com/sources/aed_module.php'
Line    '196'
Function    'ad'
Class    'standard_aed_module'
Object    Module_cms_calendar::__set_state(array( 'lang_type' => 'CALENDAR_EVENT', 'select_name' => 'TITLE', 'orderer' => 'id', 'array_key' => 'id', 'title_is_multi_lang' => true, 'non_integer_id' => false, 'table' => 'calendar_events', 'code_require' => 'calendar', 'permissions_require' => 'low', 'user_facing' => true, 'seo_type' => 'event', 'award_type' => 'event', 'possibly_some_kind_of_upload' => true, 'menu_label' => 'CALENDAR', 'permissions_cat_require' => 'calendar', 'permissions_cat_name' => 'type', 'posting_field_required' => false, 'donext_type' => NULL, 'donext_date' => NULL, 'module_type' => 'calendar', 'redirect_type' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'upload' => NULL, 'cat_aed_module' => Module_cms_calendar_cat::__set_state(array( 'lang_type' => 'EVENT_TYPE', 'select_name' => 'EVENT_TYPE', 'select_name_description' => 'DESCRIPTION_EVENT_TYPE', 'orderer' => 't_title', 'array_key' => 'id', 'title_is_multi_lang' => true, 'non_integer_id' => false, 'protect_first' => 2, 'table' => 'calendar_types', 'permissions_require' => 'cat_high', 'permission_module' => 'calendar', 'javascript' => 'standardAlternateFields(\'file\',\'theme_img_code*\');', 'menu_label' => 'CALENDAR', 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'permission_page' => NULL, 'permissions_cat_require' => NULL, 'permissions_cat_name' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'upload' => NULL, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'seo_type' => NULL, 'award_type' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'table_prefix' => '', )), 'alt_aed_module' => NULL, 'posting_form_title' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_4fa6e0f9cff625.03403441\']="echo ecv(\\$cl,array(),2,\\"EVENT_TEXT\\",\\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_4fa6e0f9cff625.03403441', 1 => array ( ), 2 => 2, 3 => 'EVENT_TEXT', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => NULL, )), 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'javascript' => ' var form=document.getElementById(\'recurrence_pattern\').form; var crf=function() { var s=(form.elements[\'recurrence\'][0].checked); if (form.elements[\'recurrence_pattern\']) form.elements[\'recurrence_pattern\'].disabled=s; if (form.elements[\'recurrences\']) form.elements[\'recurrences\'].disabled=s; if (form.elements[\'seg_recurrences\']) form.elements[\'seg_recurrences\'].disabled=s; }; crf(); for (var i=0;i<form.elements[\'recurrence\'].length;i++) form.elements[\'recurrence\'][i].onclick=crf; var crf2=function() { var s=document.getElementById(\'all_day_event\').checked; document.getElementById(\'start_hour\').disabled=s; document.getElementById(\'start_minute\').disabled=s; document.getElementById(\'end_hour\').disabled=s; document.getElementById(\'end_minute\').disabled=s; } crf2(); document.getElementById(\'all_day_event\').onclick=crf2; form.old_submit=form.onsubmit; form.onsubmit=function() { if (form.elements[\'end_day\'].selectedIndex!=0) { var start=new Date(form.elements[\'start_year\'].value,form.elements[\'start_month\'].value,form.elements[\'start_day\'].value,form.elements[\'start_hour\'].value,form.elements[\'start_minute\'].value); var end=new Date(form.elements[\'end_year\'].value,form.elements[\'end_month\'].value,form.elements[\'end_day\'].value,form.elements[\'end_hour\'].value,form.elements[\'end_minute\'].value); if (start>end) { window.fauxmodal_alert(\'An event cannot finish before it starts!\'); return false; } } if (typeof form.old_submit!=\'undefined\' && form.old_submit) return form.old_submit(); return true; }; ', 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'table_prefix' => '', ))
Type    '->'
Args   

File    '/home/seeingsh/public_html/bawiki.com/sources/zones.php'
Line    '424'
Function    'run'
Class    'standard_aed_module'
Object    Module_cms_calendar::__set_state(array( 'lang_type' => 'CALENDAR_EVENT', 'select_name' => 'TITLE', 'orderer' => 'id', 'array_key' => 'id', 'title_is_multi_lang' => true, 'non_integer_id' => false, 'table' => 'calendar_events', 'code_require' => 'calendar', 'permissions_require' => 'low', 'user_facing' => true, 'seo_type' => 'event', 'award_type' => 'event', 'possibly_some_kind_of_upload' => true, 'menu_label' => 'CALENDAR', 'permissions_cat_require' => 'calendar', 'permissions_cat_name' => 'type', 'posting_field_required' => false, 'donext_type' => NULL, 'donext_date' => NULL, 'module_type' => 'calendar', 'redirect_type' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'upload' => NULL, 'cat_aed_module' => Module_cms_calendar_cat::__set_state(array( 'lang_type' => 'EVENT_TYPE', 'select_name' => 'EVENT_TYPE', 'select_name_description' => 'DESCRIPTION_EVENT_TYPE', 'orderer' => 't_title', 'array_key' => 'id', 'title_is_multi_lang' => true, 'non_integer_id' => false, 'protect_first' => 2, 'table' => 'calendar_types', 'permissions_require' => 'cat_high', 'permission_module' => 'calendar', 'javascript' => 'standardAlternateFields(\'file\',\'theme_img_code*\');', 'menu_label' => 'CALENDAR', 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'permission_page' => NULL, 'permissions_cat_require' => NULL, 'permissions_cat_name' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'upload' => NULL, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'seo_type' => NULL, 'award_type' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'table_prefix' => '', )), 'alt_aed_module' => NULL, 'posting_form_title' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_4fa6e0f9cff625.03403441\']="echo ecv(\\$cl,array(),2,\\"EVENT_TEXT\\",\\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_4fa6e0f9cff625.03403441', 1 => array ( ), 2 => 2, 3 => 'EVENT_TEXT', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => NULL, )), 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'javascript' => ' var form=document.getElementById(\'recurrence_pattern\').form; var crf=function() { var s=(form.elements[\'recurrence\'][0].checked); if (form.elements[\'recurrence_pattern\']) form.elements[\'recurrence_pattern\'].disabled=s; if (form.elements[\'recurrences\']) form.elements[\'recurrences\'].disabled=s; if (form.elements[\'seg_recurrences\']) form.elements[\'seg_recurrences\'].disabled=s; }; crf(); for (var i=0;i<form.elements[\'recurrence\'].length;i++) form.elements[\'recurrence\'][i].onclick=crf; var crf2=function() { var s=document.getElementById(\'all_day_event\').checked; document.getElementById(\'start_hour\').disabled=s; document.getElementById(\'start_minute\').disabled=s; document.getElementById(\'end_hour\').disabled=s; document.getElementById(\'end_minute\').disabled=s; } crf2(); document.getElementById(\'all_day_event\').onclick=crf2; form.old_submit=form.onsubmit; form.onsubmit=function() { if (form.elements[\'end_day\'].selectedIndex!=0) { var start=new Date(form.elements[\'start_year\'].value,form.elements[\'start_month\'].value,form.elements[\'start_day\'].value,form.elements[\'start_hour\'].value,form.elements[\'start_minute\'].value); var end=new Date(form.elements[\'end_year\'].value,form.elements[\'end_month\'].value,form.elements[\'end_day\'].value,form.elements[\'end_hour\'].value,form.elements[\'end_minute\'].value); if (start>end) { window.fauxmodal_alert(\'An event cannot finish before it starts!\'); return false; } } if (typeof form.old_submit!=\'undefined\' && form.old_submit) return form.old_submit(); return true; }; ', 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'table_prefix' => '', ))
Type    '->'
Args   

File    '/home/seeingsh/public_html/bawiki.com/sources/site.php'
Line    '1,016'
Function    'load_module_page'
Args   
'cms/pages/modules/cms_calendar.php'

'cms_calendar'


File    '/home/seeingsh/public_html/bawiki.com/sources/site.php'
Line    '785'
Function    'request_page'
Args   
'cms_calendar'

true


File    '/home/seeingsh/public_html/bawiki.com/cms/index.php'
Line    '50'
Function    'do_site'
Args   


Dave
Back to the top
 
Posted
Rating:
#84931
Avatar

Ah yes, I think you found a bug that is happening to super-moderators but not users or admins.

Try this:
Attachment
sources/calendar.php
» Download: calendar.php (33 Kb, 80 downloads so far)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#84934

Non-joined user

Yep, the new Calendar.php fixed the issue above.

Back to the top
 
Posted
Rating:
#84938
Avatar

Community saint

I am going to assume that this has been scooped up in 8.0.1, but if it hasn't I will come back and take the patches.

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#84940
Avatar

Nope, 8.0.1 was before this.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#84942
Avatar

Community saint

Chris Graham said

Nope, 8.0.1 was before this.

Thanks for the info. I'll take them as soon as I've done my upgrade.

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: