How to add a new Input Field Type?
nier3 Offline
Member
***
Posts: 125
Joined: Jul 2012
Post: #22
RE: How to add a new Input Field Type?
Thank youuuuu Rate Biggrin Biggrin Biggrin Now works perfectly!

So the code is:

Text Mask Filter (regex): ^(0?[1-9]|[12]\d|3[01])\-(0?[1-9]|1[012])\-((?:19|20)\d\d)$

Input Formatter: <?=strtotime({VALUE})?>

Input Field HTML:

Code:
<input type="text" class="textbox"{NAME_PROP}{MAXLE​​N_PROP}{WIDTH_PROP_SIZE}{TABINDE​X​_PROP}{REQUIRED_PROP} value="<if {VALUE} && !$mybb->input['my_post_key'] then><?=my_date('d-m-Y',{VALUE})?><else>{VALUE}</if>" id="datepicker" />


Display Format: <?=date('d-m-Y', {VALUE})?>

Now when I edit or create a new thread I haven't more problems with format date and if I don't add a date isn't a problem. And no problem with 1970 Biggrin

Thank you again Biggrin

09-23-2015 08:07 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: How to add a new Input Field Type? - nier3 - 09-23-2015 08:07 AM

 Standard Tools
Forum Jump: