Page 1 of 2

[3.2][BETA] Calendar Mono Input

Posted: Sat Sep 22, 2018 11:14 am
by martti
Extension Name: Calendar Mono Input
Author: martti
Extension Description:
This phpBB extension provides a single Calendar event per topic input for the Calendar Extension Set
Extension Version: 0.5.2
Requirements:
When it's not possible for you to have PHP compiled with --enable-calendar see the PHP Ext Calendar extension for a solution.

Extension Download: https://github.com/marttiphpbb/phpbb-ex ... master.zip The files are to be put into ext/marttiphpbb/calendarmonoinput
Github repository: https://github.com/marttiphpbb/phpbb-ex ... rmonoinput
Languages: en
Templates: Prosilver
Screenshots:

Posting:

Image

ACP Range

Image

ACP Forums

Image

ACP Placement

Image

ACP Date Format

Image

ACP Placeholder

Image

Re: [3.2][BETA] Calendar Mono Input

Posted: Sat Sep 22, 2018 11:18 am
by martti
Issue: When editing a Calendar date that got out of range (configured), the date gets reset. A way to tackle this can be to prevent editing dates that got out of range, but at the same time providing a permission to edit dates out-of-range for moderators. TO DO.

edit: This is now solved in version 0.3.0

Re: [3.2][BETA] Calendar Mono Input

Posted: Sun Sep 23, 2018 8:38 am
by martti
martti wrote:
Sat Sep 22, 2018 11:18 am
Issue: When editing a Calendar date that got out of range (configured), the date gets reset. A way to tackle this can be to prevent editing dates that got out of range, but at the same time providing a permission to edit dates out-of-range for moderators. TO DO.
Maybe a better way will be to base the range on the starting moment of the topic instead of "now". No shift will take place doing so.

Edit: This is done in version 0.3.0

Re: [3.2][BETA] Calendar Mono Input

Posted: Mon Sep 24, 2018 7:43 am
by martti
The new version 0.3.0 takes the topic creation time as reference for the allowed date range. (instead of "today", which could cause troubles when editing, because "today" shifts and the topic creation time doesn't.)

Image

Re: [3.2][BETA] Calendar Mono Input

Posted: Wed Oct 03, 2018 8:18 pm
by leschek
Thanks for the extension. It seems I found a little issue - when I write into placeholder (BTW it's really nice feature) non English characters, they are not rendered correctly, but as ??.

Re: [3.2][BETA] Calendar Mono Input

Posted: Wed Oct 03, 2018 8:25 pm
by martti
leschek wrote:
Wed Oct 03, 2018 8:18 pm
Thanks for the extension. It seems I found a little issue - when I write into placeholder (BTW it's really nice feature) non English characters, they are not rendered correctly, but as ??.
Hi, thanks for your interest. Can you give an example of such a character or characters? Then I can try for myself.

Re: [3.2][BETA] Calendar Mono Input

Posted: Wed Oct 03, 2018 8:58 pm
by leschek
Sure. I used Czech word Začátek (it means "Beginning"). It renders as this: Za????tek.

Re: [3.2][BETA] Calendar Mono Input

Posted: Wed Oct 03, 2018 10:03 pm
by martti
leschek wrote:
Wed Oct 03, 2018 8:58 pm
Sure. I used Czech word Začátek (it means "Beginning"). It renders as this: Za????tek.
Ok, I see the solution for this. I will post an update tomorrow.

_$multibyte_ has to be set to true for unicode handling:

Code: Select all

$message = $request->variable('message', '', true);

Re: [3.2][BETA] Calendar Mono Input

Posted: Thu Oct 04, 2018 4:27 am
by martti
leschek wrote:
Wed Oct 03, 2018 8:58 pm
Sure. I used Czech word Začátek (it means "Beginning"). It renders as this: Za????tek.
This should be solved now in version 0.3.1.

Re: [3.2][BETA] Calendar Mono Input

Posted: Thu Oct 04, 2018 12:45 pm
by leschek
martti wrote:
Thu Oct 04, 2018 4:27 am
leschek wrote:
Wed Oct 03, 2018 8:58 pm
Sure. I used Czech word Začátek (it means "Beginning"). It renders as this: Za????tek.
This should be solved now in version 0.3.1.
Thank you for quick fix.

Re: [3.2][BETA] Calendar Mono Input

Posted: Mon Oct 08, 2018 5:41 am
by martti
The quote below was copied from the Calendar Mono topic.
leschek wrote:
Sun Oct 07, 2018 7:37 pm
LapouX wrote:
Sat Sep 22, 2018 7:57 pm

When I create a new topic I can enter a date.
When I modify the 1st post of this topic I can't modify the date or Add a date if none was enter at the creation.
I have the very same problem. When I try to edit first post of topic I can't enter date, because there are not fields for it.
What is your template (Prosilver)? What are the "range" settings for this extension in the ACP? What is the "placement" setting (before, after the title) of the in the ACP? Is the Calendar input just enabled or required in the ACP?

Re: [3.2][BETA] Calendar Mono Input

Posted: Mon Oct 08, 2018 8:53 pm
by leschek
  1. What is your template (Prosilver)?
    Yes, I use prosilver.
  2. What are the "range" settings for this extension in the ACP?
    Lower limit when a event can start: 0
    Upper limit when a event can start: 720
    Minimum duration of an event in days: 1
    Maximum duration of an event in days: 30
  3. What is the "placement" setting (before, after the title) of the in the ACP?
    Before
  4. Is the Calendar input just enabled or required in the ACP?
    On my (testing) board I have only default forum tree:
    "Your first category"
    - "Your first forum"
    Category: no "enabled", no "required"
    Forum: yes "enabled", no "required"

Re: [3.2][BETA] Calendar Mono Input

Posted: Sat Oct 13, 2018 6:54 pm
by martti
leschek wrote:
Mon Oct 08, 2018 8:53 pm
  1. What is your template (Prosilver)?
    Yes, I use prosilver.
  2. What are the "range" settings for this extension in the ACP?
    Lower limit when a event can start: 0
    Upper limit when a event can start: 720
    Minimum duration of an event in days: 1
    Maximum duration of an event in days: 30
  3. What is the "placement" setting (before, after the title) of the in the ACP?
    Before
  4. Is the Calendar input just enabled or required in the ACP?
    On my (testing) board I have only default forum tree:
    "Your first category"
    - "Your first forum"
    Category: no "enabled", no "required"
    Forum: yes "enabled", no "required"
So far it's not different from my setup.

Re: [3.2][BETA] Calendar Mono Input

Posted: Thu Jan 17, 2019 11:46 pm
by martti
Version 0.4.0
  • Inclusion of fisharebest/ext-calendar dependency as fallback when PHP is not compiled with --enable-calendar. When you don't have the calendar functions in PHP, make sure to run composer update or download the packed build from the latest release. (Github Issue)
  • Possible bugfix of calendar input not showing up in edit (I can't test it myself. This bug never occurred in my installation.)
Thanks mentos for helping in both issues. Soon my other extensions from the Calendar Set will also have the fisharebest/ext-calendar dependency included.

Re: [3.2][BETA] Calendar Mono Input

Posted: Fri Jan 18, 2019 3:58 pm
by martti
Version 0.5.0:
Removes again the fisharebest/ext-calendar dependency. Instead, when you can't have the PHP calendar functions (PHP compiled with --enable-calendar), install the PHP Ext Calendar extension.