Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Custom field date => sort threads by this date ?
cakissimo Offline
Junior Member
**
Posts: 26
Joined: Mar 2014
Post: #5
RE: Custom field date => sort threads by this date ?
I have try your solution and that don't work...output display is always "01 January 1970"

But with this

Code:
^((?:19|20)\d\d)/(0?[1-9]|1[012])/(0?[1-9]|[12]\d|3[01])$

and

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

With this code if i put 2015/12/30 on field, the result is 30 12 2015..it's ok for french format display. But the input method YYYY/MM/DD is bad for french people, i need dd/mm/yyyy input and dd/mm/yyyy output.

Is almost perfect, it's just the input format who is strange for us, so a solution will be add a datepicker jquery...i will try this.

Quote:Sorting is explained in the supplied documentation (the "Documentation" folder in the XThreads download package).
Basically, just reuse MyBB's sortby parameter, eg "forumdisplay.php?fid=2&sortby=tf_myfield"
I'm stupid...for this the problem is solved, that work well ^^

Thank you
(This post was last modified: 04-15-2014 04:58 AM by cakissimo.)
04-14-2014 07:02 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Custom field date => sort threads by this date ? - cakissimo - 04-14-2014 07:02 PM

 Standard Tools
Forum Jump: