![]() |
Display threads creation date
Display thread's creation date
Total hack's description : http://www.vbulletindev.net/forums/h...hack&hackid=69 Please click https://vborg.vbsupport.ru/ if you like this hack 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) |
I can't post .gif attachment :(
The page load stops at 39% :disappointed: here is an exemple : http://www.vbulletindev.net/forums/f...splay.php?f=46 with the style 760 |
Not too shabby. I'll install this.
|
Nice - I'll be switching to this one from the other.
|
Zip updated, the first mod to do is not in the showthread.php but in forumdisplay.php
|
Quote:
*installed* |
but basicly same here: https://vborg.vbsupport.ru/showthread.php?t=63791
Do you have options to show it in serach results? |
Quote:
Do you know reading ? |
The mod for search.php you state to find xxxx ...
That doesnt exist for v3.0.1 ... Mines much different. |
sorry.. missed it first time ;) good one so ;)
|
Hi! Quick question...
I want to have the Creation Date column come AFTER the "Last Post" column, not before. How do I do this? |
Quote:
But now, I have one other question - the "Date of Creation" column that's added is the only column you can't sort by. What do I have to change in order to make this column sortable? |
How about adding this to the "Similar Threads" feature? Also, does this work with 3.01?
|
Would be great if you can sort from oldest to newest or newest to oldest
|
Nice one, although I wrote that myself about half a year ago (with ability to sort by thread creation date) ;)
Adding sorting should be fairly straightforward: In Template FORUMDISPLAY REPLACE Code:
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[date_creation]</a></span></td> Code:
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=asc&sort=threadstarted">$vbphrase[date_creation]</a> $sortarrow[threadstarted]</span></td> In forumdisplay.php FIND PHP Code:
PHP Code:
|
vBDev, with vBulletin 3.0.3, some of the code has changed - especially in the ThreadBit Template.
Is there any chance you can update this hack for vB 3.0.3? Thanks! :) |
Works fine @ 3.0.3
What changes in threadbit do you mean? There are no changes in threadbit. :surprised: |
Quote:
The threadbit has changed with 3.0.2. In order to make sure that there are no conflicts/problems, I was hoping that the hack code could be brought up to date. |
There are a number of issues that need to be dealt with, for this hack.
1. The "Threadbit" template has changed between 3.0.0 and 3.0.3, but VBDev has not yet updated his code to reflect that. 2. This hack does not support the Subscribed Threads section in your UserCP. 3. This hack causes problems with the Subscribed Threads section of the UserCP. An additional empty column is created, where the Thread Creation Date should have been - if it were supported - but that throws off the synchronization between column headers and data. Since VBDev no longer seems to be responding to this Thread, nor is he responding on his home forum, I've updated this hack to correct the issues listed above, and to add support for Thread Subscriptions - if anyone is interested. I've listed it as a Revised Version 1.2. Use it if you like. If you want to use it, however, and you've already installed the original 1.0 version - I suggest that you replace the end section of the "Threadbit" template with the Default code before applying that portion of my revision. I made my instructions so that they interfered as little as possible with the original code. Personally, I dislike hacks that say "find this entire huge section, and *replace* it with this one", when they could have just specified the few lines that needed to be changed. If you guys use this revised version, let me know if it works well for you. :) Version 1.3 Update I took KirbyDE's code suggestions and integrated/modified them. Now, you can sort by Creation Date in both ForumDisplay, as well as Subscribed Threads. :) Version 1.31 Update I added the Sort by Creation Date option to the ForumDisplay "Display Options" menu. Upgrade Instructions: Upgrade from v1.2 to 1.3: 1. Open the ForumDisplay Template and Find: Code:
2. Replace the above code with: Code:
3. Repeat steps 1 and 2 for the SUBSCRIBE Template. 4. Open the ForumDisplay.php file and Find: Code:
5. Below, Add: Code:
6. Repeat steps 4 and 5 for Subscription.php Upgrade from v1.3 to 1.31: In the ForumDisplay Template, Find: Code:
Below, Add: Code:
And you're done! |
Hi,
Everything looking good, I hit a snag right at the start: Quote:
-snake :) |
Quote:
|
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. -snake |
thanks ocean, yours worked great!
;) |
Quote:
-snake |
actually no, i didnt know it was supposed to do that, i wouldnt want it to do that anyway..
yes i am on 3.0.3 :) |
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 |
KirbyDE's instructions work to sort by Creation Date - follow those after using Ocean's code and you should be apples ...
This is of course dependant on whether you want to be apples ... |
Quote:
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, KirbyDE! |
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? |
Quote:
|
Ocean - thank you! :)
I only have two questions: - How do I make this the default order for all forums? - Only the column's heading is clickable to select this. In the dropdown for "Sorted by", should there also be an option for "Date of Creation"? I only have the (usual) options from the dropdown: Thread Title Last Post Time Number of Replies Number of Views Thread Starter Thread Rating -snake |
Quote:
2. Oops! I never use that, so it just slipped right past me. I've revised my original post. We're now up to v1.31. I have upgrade instructions from 1.3 to 1.31 at the bottom of that post. :) |
Quote:
The ONLY item I still have on my wishlist is to be able to set this as the default sort order for all forums. (On a per-forum would be better, but I'd settle for a global setting.) Now, if anyone out there can advise on how to acomplish this, I think this mod can be classified as 100% perfect for my needs. I'd appreciate any input on this, perhaps if someone could supply the code, it could be added to the mod in a final revision? Anyone? -snake PS - Thanks once again to Ocean and KirbyDE for helping me implement the most requested change of all time to my forums. :) |
really good mod here, thanks.
what do you suggest if i want to setup a few of my forums to sort this way by default? not the entire forums, just certain ones. thanks again, good mod. |
Quote:
In forumdisplay.php FIND PHP Code:
PHP Code:
|
My wish is complete! :-)
Just made the change to sort like this globally, and it's working 100% perfectly. I cannot express enough thanks for this mod. It's great to finally get this feature working (that I feel should be part of the default vb choices, but that's a separate issue). Thank you very much for your help. It is really appreciated. -snake - one happy camper! :-) |
So here is a solution for doing this on a per-forum basis.
@Ocean Feel free to include this too if you want. @snake-boy If you want to use this instead, undo the previous change first. |
Although I am 100% satisfied with the results as I have them right now, I would be interrested to hear if it is possible with vBulletin to have the sort method be selectable on a per-user basis in his/her profile settings?
It does seem reasonable to me that users may wish to set a sort order that THEY want. I don't know enough about the internal workings of vBulletin to know if this is viable to consider? If so, perhaps a feature request or a mod? Is this do-able and if so, is it a major undertaking? -snake (still a very happy camper ;) |
This is pretty easy. I'll post smth. tomorrow :)
|
All times are GMT. The time now is 04:45 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:
|