Home › Forums › Plugin Support › Date Calendar does not show Year Navigation
- This topic has 7 replies, 5 voices, and was last updated 12 years, 11 months ago by 
idglabs.
 
- 
		AuthorPosts
 - 
		
			
				
July 18, 2012 at 11:38 pm #1727July 23, 2012 at 10:09 pm #1752
bluantinoo
MemberSorry for bumping this post, but I really need to fix this “bug”.
please any idea would be appreciated!
July 25, 2012 at 10:47 pm #1769Khaled
MemberHello,
Year navigation is currently not available. We are hopeful to add this with next release.Thanks.
July 25, 2012 at 10:55 pm #1771bluantinoo
MemberHi Khaled,
thanks for reply.do you have an idea on when will be released next version?
if it will be too far may I ask a little help to hack it?July 25, 2012 at 11:16 pm #1772bluantinoo
MemberI found out how to implement year change in calendar.
It’s quite easy actually.This is how to do it
1) open file user-meta/views/generateForm.php at lines 161 and 162
change this:
$(".um_datetime").datetimepicker({ dateFormat: 'yy-mm-dd'});
$(".um_date").datepicker({ dateFormat: 'yy-mm-dd'});into this:
$(".um_datetime").datetimepicker({ dateFormat: 'yy-mm-dd', timeFormat: 'hh:mm:ss', changeYear: true, yearRange: '-110:-13' });
$(".um_date").datepicker({ dateFormat: 'yy-mm-dd', changeYear: true, yearRange: '-110:-13' });Just adding 2 parameters:
– changeYear => set true to add a dropdown in calendar to change year
– yearRange => the range of years that you want users to select2) Do the same changes in the file user-meta/controllers/pro/umBackendProfileController.php at lines 125 and 126
First point adds year select in public forms (registration, profile), second point adds it in the backend profile management.
I hope it can help someone (and that will be included in next release!)
September 14, 2012 at 9:16 pm #2089coji
MemberExcellent solution bluantinoo! Just the thing i need, you are brilliant
September 15, 2012 at 4:52 am #2092laurentiu
MemberCongratulations for the solution. I’m pretty sure everyone using a dob input field was looking for a simple way to navigate through years.
However, in order to be complete i’d say it would have to stop throwing the error about date not being in proper format when the user selects the year before the day/month.
A solution for running the verification script on input content only after all the date selection clicks are done would be greatly appreciated.
December 8, 2012 at 1:49 am #2615idglabs
MemberCould you help me pls
I need to show month and day name in Italian Language
What I need to modify ?
thank you
idglabs - 
		AuthorPosts
 
- You must be logged in to reply to this topic.
 
