How to add a new Input Field Type?
hansolo Offline
Junior Member
**
Posts: 22
Joined: Sep 2015
Post: #28
RE: How to add a new Input Field Type?
Update: It isn't enough just to check if the script is 'editpost.php'.

If the user clicks preview, or makes an error on attempting to submit the edit, editpost.php passes the text value of the textbox to the next page. This text value then gets put through the date() function, leading to the 1970 date problem.

The solution is to check if the 'processed' flag is set:

Code:
<if THIS_SCRIPT == 'editpost.php' && !isset($mybb->input['processed']) then>


Updated the previous post's code.

03-14-2016 03:15 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-14-2016 03:15 AM

 Standard Tools
Forum Jump: