ThWboard Support-Forum (Archiv)

Ort: / Boardübersicht / English support board / Display threads in reverse order


Seite 1 von 1

Erik Verkuil schrieb am 24.04.2002 um 07:49 Uhr

Hello,

Is it possible to display the threads in reverse order: so that the last posting appears at the top of the page and not at the bottom?

Sie können im Deutsch antworten.

Danke.

Erik

Erik Verkuil schrieb am 24.04.2002 um 15:57 Uhr

I have changed

ORDER BY post.posttime ASC to

ORDER BY post.posttime DESC in showtopic.php

The last posting appears at the top of the page now, but the numbering of the threads does not. So the numbering stays ascending.

I hope someone can help me with this.

Thanks,

Erik

Jonas schrieb am 24.04.2002 um 18:23 Uhr

sorry, but if the numbers would count down, there would be a great problem, because you'd have to REWRITE EVERY postnumber everytime you post a new answer...

Adrian schrieb am 24.04.2002 um 19:06 Uhr

Jonas postete
sorry, but if the numbers would count down, there would be a great problem, because you'd have to REWRITE EVERY postnumber everytime you post a new answer...


and that would be veeeeeeeeeeeeeeeeeeery slow

Jonas schrieb am 24.04.2002 um 19:40 Uhr

that's the point i aimed at ;)

dp schrieb am 24.04.2002 um 20:28 Uhr

I guess you're talking about the increasing post number above the username?
Actually, it's neither complicated nor slow.

open up your showtopic.php, near line 61
replace
$i = $post_start;
with
$i = ($postings - 1) - $post_start;

~line 200
replace
$i++;
with
$i--;

that should work ..

Jonas schrieb am 24.04.2002 um 20:42 Uhr

oh...
oups...
i thought it was saved in the database *gd&r*

Erik Verkuil schrieb am 24.04.2002 um 20:43 Uhr

Thanks Darth Paul,

This was exactly what I was looking for.

Erik

Seite 1 von 1