[3.2][RC] JQuery UI Datepicker (helper ext)

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!
Suggested Hosts
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)
Post Reply
User avatar
martti
Registered User
Posts: 684
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

[3.2][RC] JQuery UI Datepicker (helper ext)

Post by martti » Thu Jul 19, 2018 5:28 am

Extension Name: JQuery UI Datepicker (helper ext)
Author: martti
Extension Description:
This phpBB extension provides loading of the JQuery UI Datepicker for use by other extensions.
Extension Version: 0.2.0
Requirements: PhpBB 3.2.1+ PHP 7.1+
Extension Download: https://github.com/marttiphpbb/phpbb-ex ... master.zip The files are to be put in ext/marttiphpbb/jqueryuidatepicker
Github repository: https://github.com/marttiphpbb/phpbb-ex ... datepicker
Languages: en (ACP only) The translation of the datepicker widget is provided by JQuery UI. See the available translations.

Templates: all
Screenshots:

ACP:

Image

Image

Other theme and translation (Dutch):

Image

How to use (for extension developers):

In your controller:

Code: Select all

$ext_manager = $phpbb_container->get('ext.manager');

if ($ext_manager->is_enabled('marttiphpbb/jqueryuidatepicker'))
{
    $listener = $phpbb_container->get('marttiphpbb.jqueryuidatepicker.listener');
    $listener->enable();
}
Last edited by martti on Wed Sep 12, 2018 10:27 am, edited 2 times in total.

User avatar
martti
Registered User
Posts: 684
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][RC] JQuery UI Datepicker (helper ext)

Post by martti » Sun Jul 29, 2018 8:12 pm

martti wrote:
Thu Jul 19, 2018 5:28 am
How to use (for extension developers):

In your controller:

Code: Select all

$ext_manager = $phpbb_container->get('ext.manager');

if ($ext_manager->is_enabled('marttiphpbb/jqueryuidatepicker'))
{
    $listener = $phpbb_container->get('marttiphpbb.jqueryuidatepicker.listener');
    $listener->enable();
}
This code will load the files for the datepicker. The javascript part you still have to do yourself.

The purpose of this extension:
  • Not pollute your own extension with dependency software For maintainability, focus, clarity and flexibility it is better to containerize code (In the case of phpBB: small extensions that focus on doing one thing).
  • Provide configuration for the style of the datepicker
  • Automatically load a translation file for the datepicker in case the user language is not English.

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: No registered users and 17 guests