When you say the end...

Small mod, that makes locked topics go to the end of the forum view

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

When you say the end...

Postby guru on Thu 25. Dec, 2003 00:14

you mean the end of the view? or the end end end??

for example...
25 threads on a page...2000 threads in forum
I want if i lockthread 5 5
it "becomes" thread 25 and not thread 2000
ie goes to the bottom of viewforum until it falls off the page "naturally"
guru
Poster
Poster
 
Posts: 6
Joined: Sat 29. Nov, 2003 22:11

Re: When you say the end...

Postby Superdeboer on Sun 28. Dec, 2003 18:28

guru wrote:you mean the end of the view? or the end end end??

for example...
25 threads on a page...2000 threads in forum
I want if i lockthread 5 5
it "becomes" thread 25 and not thread 2000
ie goes to the bottom of viewforum until it falls off the page "naturally"

Well the problem that I encountered is, that it first sorts topics by status and then by last post id. That means that all closed topics get placed at the end end end and are thereafter sorted by date. Then you get above that the open topics, which are also sorted by date.

In that way, in very active forums, you get first two pages of open topics and then two pages with closed topics for example. I tried to fool around a bit with the SORT BY statements in viewforum.php, but that didn't help.

Altering
Code: Select all
ORDER BY t.topic_type DESC, t.topic_status ASC, t.topic_last_post_id DESC

into
Code: Select all
ORDER BY t.topic_type DESC, t.topic_last_post_id DESC, t.topic_status ASC


...did not do the trick. That's quite a pity, for when I close a topic in the situation I just mentioned, it will appear on page three instead of at the bottom of page one.

Is there some way to solve this problem? So recently closed topics should not be sorted to the 'end of the end' but to the end of the first page in the viewforum (untill the get to old ofcourse).
Superdeboer
Poster
Poster
 
Posts: 1
Joined: Sun 28. Dec, 2003 18:19

Postby beggers on Tue 20. Dec, 2005 00:58

I realize it's been years, but I just ran across this mod, and yes, I agree that the locked topics should be pushed down to the bottom of the page, not to the very end of the topics. Anyone have a fix for this? Thanks.
beggers
Poster
Poster
 
Posts: 4
Joined: Tue 11. Mar, 2003 09:59


Return to Locked at the end [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 0 guests

cron