Wedge
Public area => The Pub => Features => Topic started by: ziycon on April 25th, 2013, 10:40 PM
-
This is just a nice to have, not sure if there is a generic datepicker already available in the code but it would be nice to have a generic/global datepicker that could be used for any date filed for example on th forum profile page where you select your date of birth or in any admin pages and also to make the datepicker available to any mods/plugins developed in the future. :D
-
It's already in there.
jQuery UI is already implemented for the occasions it is needed and includes that.
-
Nice, will it be added to the 'Birthdate' field in forum profile(?area=forumprofile)?
-
The short answer is no.
-
Grand, no harm in asking.
-
Now I have a few more moments, there's a reason why the answer is no, and it's not what you think.
You can (quite legitimately) insert a date without a year into the birthday option. And both SMF and Wedge will quite happily accept it, so you can put in your birthday without having to give away your full age, perhaps so you can join in the birthday celebrations and appear on the calendar but keep your age private.
(Internally, they are converted to y-m-d with a year of 4, so leap year processing works too)
-
I understand your thinking behind, makes sense in hindsight, thanks for the explanation.
-
I've had time to mull this over. What would be neat is if we were to offer an option for 'no year' and 'with year' and offer a nice UI for both, perhaps with date pickers where appropriate.
-
BTW, as SMF Wedge does not accept year only and I find that some users (including me) prefer to show only the year of birth, but not the exact date. That is mostly for privacy reasons. Of course it's easy to achieve with custom fields, but still why duplicate something in-build.
-
There are technical reasons why that isn't properly supported. I'm not entirely sure we can actually fix that either.