[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!
Ideas Centre
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.2][RC] JQuery UI Datepicker (helper ext)

Post by martti »

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();
}
For adding moon phases to the date picker, see here
Last edited by martti on Tue Oct 13, 2020 12:22 pm, edited 3 times in total.
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

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

Post by martti »

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.
DHiort
Registered User
Posts: 6
Joined: Thu Feb 26, 2015 6:56 am

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

Post by DHiort »

Hello,

I may be stupid here but I cant find a way to add events to the calendar :(
I installed the following:

Calendar Mono 0.5.0
Calendar Mono Input 0.6.0
Calendar Month View 0.8.0
Menu Items
User avatar
ViolaF
I've Been Banned!
Posts: 1609
Joined: Tue Aug 14, 2012 11:52 pm

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

Post by ViolaF »

it seems you're "out of topic"

search.php?keywords=calendar&fid%5B0%5D=456
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

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

Post by martti »

DHiort wrote: Sat Feb 08, 2020 4:29 pm Hello,

I may be stupid here but I cant find a way to add events to the calendar :(
I installed the following:

Calendar Mono 0.5.0
Calendar Mono Input 0.6.0
Calendar Month View 0.8.0
Menu Items
It is a bit off-topic here because this extenstion is only a helper extension for the other extensions of the Calendar Set.

See here an overview of all the extensions needed for a basic calendar.

Then configure in the ACP the calendar extension settings under the "Extensions" tab. Most defaults are probably ok but you must select at least one forum in "Calendar Mono Input" to be able to make topics "calendar events".
mwh65
Registered User
Posts: 209
Joined: Sat Jul 12, 2003 11:10 pm

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

Post by mwh65 »

Trying this out on my phpBB 3.3 forum and functions fine.

However I cannot change the theme despite changing it in the ACP ...

It always looks like this ...
always.png

and I have this set, as an example ...
shouldbe.png
shouldbe.png (7.7 KiB) Viewed 2075 times
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

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

Post by martti »

mwh65 wrote: Tue Oct 13, 2020 8:29 am Trying this out on my phpBB 3.3 forum and functions fine.

However I cannot change the theme despite changing it in the ACP ...

It always looks like this ...
always.png

and I have this set, as an example ...
shouldbe.png
It works for me. Did you press the submit button after selecting another theme in the ACP?

Image

(edit: the moon phases in my screenshot are because of my extra moon phase extension that I use.)
Last edited by martti on Tue Oct 13, 2020 12:24 pm, edited 1 time in total.
mwh65
Registered User
Posts: 209
Joined: Sat Jul 12, 2003 11:10 pm

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

Post by mwh65 »

Yes I did. :roll:
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

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

Post by martti »

mwh65 wrote: Tue Oct 13, 2020 11:10 am Yes I did. :roll:
Ok, on which phpBB version are you? I'm still on phpBB 3.3.0.
mwh65
Registered User
Posts: 209
Joined: Sat Jul 12, 2003 11:10 pm

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

Post by mwh65 »

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

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

Post by martti »

mwh65 wrote: Tue Oct 13, 2020 11:45 am3.3.1
Can you check if the page is trying to load the theme? You can see this in the "developer tools > network request > css" of your browser. (Disable the cache!)

Apart from the basic theme, you should see something like this (for the eggplant theme):
./ext/marttiphpbb/jqueryuidatepicker/assets/jqueryui/themes/eggplant/theme.css?assets_version=67

The basic theme is this:
./ext/marttiphpbb/jqueryuidatepicker/assets/jqueryui/themes/base/datepicker.css?assets_version=67

Developer tools in Firefox (usually function key F12 in browsers)
Image
mwh65
Registered User
Posts: 209
Joined: Sat Jul 12, 2003 11:10 pm

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

Post by mwh65 »

There are 2 being loaded, namely ...

https://pgls.golfladders.co.uk/forums/ext/marttiphpbb/jqueryuidatepicker/assets/jqueryui/themes/base/datepicker.css?assets_version=25192

https://pgls.golfladders.co.uk/forums/ext/marttiphpbb/jqueryuidatepicker/styles/all/template/datepicker.css?assets_version=25192

The currently selected theme is 'black-tie' and by the look of it 'base' is being loaded.
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

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

Post by martti »

I tried now in phpBB 3.3.1 and I don't see anything unusual. If I switch to "eggplant" then I get theme "eggplant".

hat's an unusual high assets version number in your url btw. 25192 ?
mwh65
Registered User
Posts: 209
Joined: Sat Jul 12, 2003 11:10 pm

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

Post by mwh65 »

I can now confirm it works properly on a vanilla installation of phpBB3.3.1, which also rules out any issues with me updating PHP recently to 7.4.11 on my server.

Are you saying the asset_version number being so high is an issue, or could be?
User avatar
RMcGirr83
Former Team Member
Posts: 22011
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

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

Post by RMcGirr83 »

Purging the cache increases the asset number. Apparently there's been a lot of cache purging.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
Post Reply

Return to “Extensions in Development”