![]() |
Default Sort Field/Order for Forumdisplay
Default Sort Field/Order for Forumdisplay
Description This Hacks allows you to specify default Sort Field/Order for Thread Display on a System, Forum and User basis. It also adds Thread Start Date. Please note: Current selection > User Default > Forum Default > Board/System Default. Details 1 Product XML with 2 Queries, 12 Plugins, 19 Phrases and 2 Settings 4 Template Edits History 1.0.0 Initial Version 1.0.1 Added missing Template Edit in readme.txt (shame on me for forgetting this in first place!) and fixed a slight issue with "Default" not working properly. 1.0.2 Updated for RC3 => Code cleanup :) Thread Start Date is now also being displayed in UserCP, Subscribed Threads and Search. Subscribed Threads can be sorted by Thread Starte Date. Please only click Install if you actually have installed/are using this Hack, and click Uninstall whan you don't use it any longer! Attention This Modification does not work with vBulletin 3.6+ as this is a built-in feature now. To upgrade an existing board from 3.5.x to a newer version:
|
You rock, Kirby. :)
Thanks! |
Awesome Kirby! Thanks...
|
Kirby, is there a way to add the start time as well as the start date to this?
|
That's a secret ;)
Place $thread[creationtime] where you want to have it in Template threadbit |
Thanks! The reason I asked is because I changed the phrase Today to read Today at and now it looks kind of wierd. ;)
|
Nice. This is something I was going to make myself.
How do you get the admincp settings to come out in the product XML? I've been having trouble with that. |
Hmm ... they should be installed automatically.
Did you import this as a Product? |
I mean in the hack I'm creating, I can't get the CP settings to come out for other people to install, even though they're associated with the product. I'm sure yours works fine. :)
|
Did you check that they are actually in the XML?
|
When I export my product, I get the phrases for the settings in the XML, but not the optiongroups or whatever. It's over here: https://vborg.vbsupport.ru/showthread.php?t=93308
|
I have problem in installing this plug in.
I get an error message: Warning: Invalid argument supplied for foreach() in /includes/functions/php on line 769 Can u tell me how to fix this? I am using vb 3.5.0 beta 3. Do I have to upgrade? |
This is a Product XML, does Beta 3 support Products?
|
I installed a test board with RC1, there too I get the same error.
So it seems I am doing something wrong. Can somebody tell me how to install this Mod step by step. |
Did you import this as a Product (ACP / Plugin System / Manage Products)?
|
I'm not sure if this is working. I installed it (RC2) and edited the templates. I can go to a forum page and sort it by "thread started", and it works fine. However if I set "default sort field" in "forum display options" to "thread start date" and then visit my forums, they are all still sorted by last post.
If I change the setting on an individual forum, it is also still sorted by last post. |
Hi Kirby, how are you?
I just made a request, without seeing this. Anways; I have a personals/classifieds section that I want to have sorted by Thread Creation Date. It's the only forum on my board that I need to have set up like this, but I'm a little confused about my options... From my understanding this has 2 queries. Are they executed as the search is being performed, or everytime a forum dex is loaded? Also, my users are very basic people and I do not want to load them with too many buttons and menus. That said, I would really like to just go "bare bones" and only install the admin part, is that possible? Please respond in n00b speak... I'm still learning vB terminology. Thank you. :) |
RC1 installed :D
everything seems to work except: the thread sort option does NOT appear in the USER CP. admin ones seem to be fine. But the User CP one is MIA. :( any thoughts? did I forget something? |
LOL I never noticed that until you posted. I don't have it in the User CP either. ;)
|
Just what I was looking for :D Thanks mate!
|
LOL. I totally forgot the Template Edit for the UserCP part in the readme and nobody noticed so far ^.^
Works fine for me on RC2, except that there was slight issue that selecting "Default" in Forum Manager did not work. Should be fixed now @Brinnie This does not add any queries upon execution. You can just leave out the modifyoptions Template Edit and you will only have the Admin Part. |
Do we need to un-install and then re-install?
|
I don't see the additional file edits in the readme text file. And the files have a 7/28 date stamp on them. And, yes, I cleaned my cache before downloading the zip file. ;)
|
I thought I did upload it ... hmm, uploaded again.
Just import and tick Overwrite, then make the missing Template Edit. |
It uploaded fine this time. Thank you, sir. ;)
|
Quote:
|
Quote:
|
Quote:
(i always click install) |
Quote:
|
Uninstall, make sure you don't have any Plugins enabled (as those could interfere and cause Problems), then Reinstall
|
I upgraded to rc2, uninstalled and reinstalled it..
Wow.. it started working.. This was a strange problem in my beta4 & rc1 problems. Thanks... KirbyDE |
XML file not work, install an empty hook.
I added manually the hooks and phrases, but how I add settings? Edit: Settings can be add over phpMyAdmin :devious: *hrhr* |
Common Mistake: You imported this as a Plugin while it is a Product and must be imported this way.
|
Thanks for pointing me in this direction from the older topic kirby installed and so far its working like a charm.
|
KirbyDE,
Another great hack. -Wilky49 |
Quote:
Shouldn't require any template mods, just XML bitfield and XML admincp. |
Lite Version = Don't do the Template Edits :)
Btw: Bitfield XML? |
Kinda random to ask this here, but is there a way to have the creation date appear in its own column (similar to this thread)? Thanks in advance :)
|
Sure - edit the Templates as needed.
|
Updated for RC3.
Details see first Post. |
All times are GMT. The time now is 04:02 AM. |
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:
|