![]() |
Wait...doesn't this allow you to change the default sort settings of the threads within a forum? So when they go to the forum it defaults to sorting ASC/DESC ordered by title, posts, views, or whatever you choose?
|
Yes. It sorts the Threads in the specified Forum. But i don't use any thread-properties. The Threads inside the Forum were sorted like my choose in the CP. eg. Title, ASC.
With my Part 1 of the Hack, to override the User-Settings how old threads should be shown, this is perfect or an archive. Thats why i develop this Hacks. When all is done, i will release on big Hack named Advanced Forum properties. |
I don't understand how you would be ordering threads a certain way by using properties that apply to the forum. It doesn't make sense...threads should be ordered by their own properties - replies, views, titles, starter, last poster, etc...not by the forum's properties. Just one example(because I'm too tired to list them all) - you wouldn't sort threads by the 'allowposting' option :)
|
D'oh!
Now I understand you. I must be blind... :D Thanks DarkReaper! It works, because the filed-names in both tables were nearly the same... I Updated the hack. The Changes were small, but now it is better. Update: First go to the New Menu. Sort Preselection. Disable all Columns. (You not disable rows, if you are shure, the they are in both tables the same! e.g. title) Opel admin/forum.php: Search for: PHP Code:
PHP Code:
That's all! |
I did install as you said and but it seems that ascending doesn't work. it always display in descending order. (note i changed to ASC in my forum properties) pls tell me what should i need to fix.
|
If you installed all Correctly, it must work. So please take a look, if you changed all correctly, and upload your files again.
I think you forgot some Code in forumdisplay.php |
I had the same problem, I restored the original forumdisplay.php and reapplied the code just for that page and it works now.
Thanks for the great hack, its just what I needed! :D |
Two questions:
1. Will this work with 2.2.6? 2. Can you add the option to allow a sort by the date the thread was started? |
I haven't tested it with 2.2.6
You can chooser yourself which Table-Fields are Displayed in the Drop-Down Box. I am just not shure if this Date is in one of the Fileds, if yes you can do It by Yourself. Otherwise i must take a look to the DB-Structure. |
I got it to work with 2.26.
I had one problem, though - I had to modify forumdisplay.php Find: PHP Code:
PHP Code:
I also made a template modification to allow everyone to sort on threadid...I modified this template: forumdisplay_threadslist Find: PHP Code:
PHP Code:
Okay, that should be it. A small improvement...hope it helps someone :nervous: |
All times are GMT. The time now is 09:43 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:
|