![]() |
Thread Creation Date - Enhanced Version
Thread Creation Date - Enhanced Version v1.3.5
Version: 1.3.5 vB Version: 3.0.4 Developer: Ocean Install Difficulty: Moderate Description: This hack will add a new sortable column to your ForumDisplay, as well as the UserCP for Subscribed Threads, that will show the Date of Creation of each of your threads. In addition, you can also sort by Creation Date via the Display Options of ForumDisplay. Release History: Version 1.3.5 Notes: Fixed the column span issue for Searches Version 1.3.4 Notes: Fixed the column span issue for Thread Redirects Version 1.3.3 Notes: Fixed the column span issue for Announcements and Soft Deleted Threads Version 1.32 Notes: Minor changes to code being searched for (Updating for most recent version of vB). If you successfully installed 1.31, you don't need to worry about 1.32. Version 1.31 Notes: I have added the sort by Creation Date option for the Display Options of ForumDisplay Version 1.3 Notes: I have added the ability to sort by Creation Date for both ForumDisplay, as well as Subscribed Threads. (Thanks, KirbyDE for your help with this!) Version 1.2 Notes: This hack was originally released by VBDev. There were a number of issues, however, that needed to be dealt with. As VBDev was no longer responding to his Thread on vBulletin.org, nor was he responding on his home forum, I updated this hack to correct the following issues: 1. The "Threadbit" template had changed between 3.0.0 and 3.0.3. 2. The original version of this hack did not support the Subscribed Threads section in your UserCP. 3. The original version of this hack caused problems with the Subscribed Threads section of the UserCP. An additional empty column was created, where the Thread Creation Date should have been - but that threw the synchronization off between column headers and data. |
how many queries does this hack adds to a board?
|
Quote:
How's that? :) |
Quote:
|
I think this will also cause problems with the forumdisplay_announcement and threadbit_deleted templates - though it's just a simple colspan issue. Easily fixable.
|
Quote:
|
Unless you make changes in these templates, an announcement will not span the whole width of the table, same with a soft-deleted thread (due to the column you add here). Make an announcement on a board with this hack installed, I'm pretty sure you'll see what I mean.
|
Quote:
Thanks, sblum, for the heads up! :) |
does this show a creation date column in the search results as well? if so, how could you make the creation date the default sort order?
|
Quote:
For making this change on a person by person basis, in the Advanced Search window, under "Sort Results By" field, just choose "Thread Start Date" and save your search preferences. If you wanted to make it the defautl for vB in general - I think you would have to edit the Search.php file to set that, as I don't think it's availabel as an option in the AdminCP. |
Ocean, thanks for the reply
thats what i was getting at. do you know how i might modify the search.php file to make the default sort by creation date? |
Quote:
PHP Code:
2. Change it to this: PHP Code:
3. Now, Find: PHP Code:
4. And change that to this: PHP Code:
That should do it! :) |
|
Quote:
In the "Search.php" file, Find: PHP Code:
Replace it with this: PHP Code:
|
I tied that as well, no luck ......theres another instance of laspost just after that as well that i tried changing to no work either.
|
Quote:
|
Quote:
|
I tried to install this but I cant.
******************************** 30. Now, Find: ********** case 'postusername': $sqlsortfield = $sortfield; break; ******************************** That is to find on the subscription.php fiel but I cant find that in there. Im runing VB 3.0.3 How can I do it? |
Quote:
In addition, a lot of text editors have a problem doing searches that include a line break. So, try searching for just "case 'postusername':" and make sure that the instance you find is the correct one by visually matching the surrounding code to the code specified it the Instructions. :) |
Ah great Ocean
btw one question How can I had a new template to the VB? Im trying to add some other hacks that require a new template but I dont knwo hwo to find it. I'll let you know in a bit how this hack of yours works :) (if I got it installed.) |
Quote:
|
Tks so much I got that hack working.
As for yours (I think it is since Im trying to install so many of them) I got the column thread started working but not showing the date or time, so Im going to install this again maybe I doen something wrong. Once again Ocean thank you very much. |
Quote:
And as something to consider - the template changes are what will create the columns - but the PHP changes are what provide the data. If you wanted to narrow down the possible areas that you might have mis-installed, that should help you - but if you're going to go over and redo everything, than good for you for being thorough. :) |
I have just released v1.3.4 of this hack.
I corrected the missing column for Thread Redirects. :) If anyone needs to upgrade from v1.3.3 to v1.3.4 - all you need is to follow Steps 19-20 in the v1.3.4 file. Optionally, here are the changes: Open the Threadbit Template, and Find: Code:
Below, Add: Code:
And that's it! :) |
Very nice hack Thx! :)
|
Quote:
|
Quote:
|
@Ocean, I PMt you with some questions :)
|
Quote:
|
Quote:
|
Quote:
Anyway, as a quick overview - the template changes create the column itself, but the PHP file changes are what supply the data. So, if you have the column, but no data - chances are that you made a mistake with the code changes for the PHP files. Depending on where you're seeing the problem, that will tell you which file(s) you need to look at. For example, if it's the main forums that are not showing the data, than you need to recheck the changes to ForumDisplay.php. If the problem is with the Search results, than you need to check Search.php, and if the problem is with Subscribed Threads in the UserCP, than you should check Subscription.php. :) |
OK, solved Thanks a lot for your lighting speed HELP :)
|
Quote:
|
Quote:
|
Quote:
However, I believe that the problem is that you did not execute all of the instructions properly in regards to the SUBSCRIBE Template. Those changes are what would affect the columns in the UserCP/Subscribed Threads page. Double check that you have correctly implemented those code changes, and we can take it from there. :) |
Quote:
|
Quote:
Make sure that you performed steps 5 and 6: Code:
I am also assuming that you are not making the mistake of viewing a style that is unaffected by the style you made these template changes to. In addition, the fact that the data isn't showing up suggests a problem in the PHP file changes. Make sure that you made the changes to Subscription.php (singular) and NOT Subscriptions.php (plural). It's a common mistake. If you didn't make any of the above mistakes, PM me with your email, and I'll ask you to ZIP up some files for me so that I can examine your code. :) |
Quote:
|
I have given up on this hack. I reverted all my templates. Thanks for your time anyways.
|
HI, thanks Ocean
|
All times are GMT. The time now is 04:37 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|