How to add a new Input Field Type?
hansolo Offline
Junior Member
**
Posts: 22
Joined: Sep 2015
Post: #27
RE: How to add a new Input Field Type?
Edit: scratch that. I got confused how to combine the code in the above posts.

Fixed it as follows:

Used this Input Field HTML:

Code:
1
2
3
4
5
6
7
8
9
<if THIS_SCRIPT == 'editpost.php' && !isset($mybb->input['processed']) then>

<input type="text" class="textbox"{NAME_PROP}{MAXLE​​N_PROP}{WIDTH_PROP_SIZE}{TABINDE​X​_PROP}{REQUIRED_PROP} value="<?=date('d-m-Y', (int){VALUE})?>" id="datepicker" style="position: relative; z-index: 10000;" />

<else>

<input type="text" class="textbox"{NAME_PROP}{MAXLE​​N_PROP}{WIDTH_PROP_SIZE}{TABINDE​X​_PROP}{REQUIRED_PROP} value="{VALUE}" id="datepicker" style="position: relative; z-index: 10000;" />

</if>

(This post was last modified: 03-14-2016 03:10 AM by hansolo.)
03-11-2016 01:24 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? - hansolo - 03-11-2016 01:24 AM

 Standard Tools
Forum Jump: