I've created this hack, and I saw then that it was already done here, but with my hack, you can display the date from the searcH.php and it adds a new column :nervous:
With this small hack, you'll add the thread's creation date in the forumdisplay (and search results)
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Doh! Sorry, I opened my eyes and followed the instructions, and everything went fine (installation-wise), but now I have a problem:
The sort creation date column is there, but I should mention that column "Date of Creation", although it is there, it is not clickable. And in the dropdown options "Sort By", I don't have an option to sort by Creation Date?
Threads still appear to be sorted by most-recently-replied to.
Update: I just went through all the changes I made to make sure I didn't miss something, and everything's there.
Do I need to rebuild something or enable this feature in the admincp somewhere before it becomes active? Your advise would be greatly appreciated to acomplish this.
Ocean - I guess maybe I missed the point? Does your hack allow sorting by thread creation date or not? If not, then I guess it is working correctly, (my misunderstanding), but I would like to ask if you could give us the code that will allow sorting by this new column. (newest to oldest preferrably)?
I know frighfully little about php, but surely this can't be too hard to do now that there is a field that can be sorted?
I'd really appreciate it if you could add this feature to this mod?
Ocean - I guess maybe I missed the point? Does your hack allow sorting by thread creation date or not? If not, then I guess it is working correctly, (my misunderstanding), but I would like to ask if you could give us the code that will allow sorting by this new column. (newest to oldest preferrably)?
I know frighfully little about php, but surely this can't be too hard to do now that there is a field that can be sorted?
I'd really appreciate it if you could add this feature to this mod?
-snake
That was one improvement I had not gotten around to testing. The changelog in my post and the Instructions lists the new features/fixes that I put in.
Even without the sorting (which I will hopefully add to my instructions soon), it's still worth using over VBDev's, because of all of the other improvements.
But I'll try to update my instructions soon to add Sorting.
I have revised my instructions (which are now Version 1.3).
I added KirbyDE's code modifications so that you can sort by Thread Creation Date on ForumDisplay. However, I did some further modification so that you can also sort by Creation Date for Thread Subscriptions as well.
Thanks a mil for this! I have just downloaded this, but as I already made the V1.2 changes, I'm not sure which parts are 'new'.
Would it be possible to have a 'diff' of the two versions so that I can upgrade the code to allow the sorting, or must I go through it all again going over the changes I previously made?
Thanks again for this long awaited mod
-snake
Edit: Oh, and how do I make this the default sort order?