[3.3][BETA] Calendar Mono Input

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

[3.3][BETA] Calendar Mono Input

Post 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.7.0
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
Last edited by martti on Wed Apr 08, 2020 9:23 am, edited 10 times in total.
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Calendar Mono Input

Post 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
Last edited by martti on Mon Sep 24, 2018 7:38 am, edited 1 time in total.
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Calendar Mono Input

Post 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
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Calendar Mono Input

Post 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
leschek
Registered User
Posts: 838
Joined: Tue Jul 18, 2006 12:49 pm
Contact:

Re: [3.2][BETA] Calendar Mono Input

Post 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 ??.
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Calendar Mono Input

Post 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.
leschek
Registered User
Posts: 838
Joined: Tue Jul 18, 2006 12:49 pm
Contact:

Re: [3.2][BETA] Calendar Mono Input

Post by leschek »

Sure. I used Czech word Začátek (it means "Beginning"). It renders as this: Za????tek.
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Calendar Mono Input

Post 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);
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Calendar Mono Input

Post 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.
leschek
Registered User
Posts: 838
Joined: Tue Jul 18, 2006 12:49 pm
Contact:

Re: [3.2][BETA] Calendar Mono Input

Post 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.
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Calendar Mono Input

Post 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?
leschek
Registered User
Posts: 838
Joined: Tue Jul 18, 2006 12:49 pm
Contact:

Re: [3.2][BETA] Calendar Mono Input

Post 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"
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Calendar Mono Input

Post 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.
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Calendar Mono Input

Post 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.
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Calendar Mono Input

Post 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.
Post Reply

Return to “Extensions in Development”