Reverse Order?
Posted by VS
Reverse Order? June 04, 2003 01:12AM |
Registered: 19 years ago Posts: 4 |
I'm very interested in being able to list messages in reverse order (most recent at the top of the page) and have not found any definitive answer on these fourms. Can anyone *please* give a definate answer (and hopefully some instructions) as to how one might list messages in reverse order. Please help. Thanks.
Post Edited (06-04-03 01:46)
Post Edited (06-04-03 01:46)
Re: Reverse Order? June 04, 2003 04:47AM |
Registered: 22 years ago Posts: 6,050 |
Re: Reverse Order? June 04, 2003 10:59AM |
Registered: 19 years ago Posts: 4 |
Re: Reverse Order? June 04, 2003 11:47AM |
Registered: 22 years ago Posts: 6,050 |
Re: Reverse Order? June 04, 2003 12:00PM |
Registered: 19 years ago Posts: 4 |
Thanks I *do* mean read-view. As such I have looked at other posts on the topic and the info I found seems to be outdated. For instance I found on post which has me search for a line in the read.php document. The line which I'm told to search for simply isn't there. I'm using the lastest stable version of Phorum software. I have no problem making an involved change to the code, if need be.
It seems that there are quite a few people interested in this modification. So any detailied instructions would benefit many. Thanks.
It seems that there are quite a few people interested in this modification. So any detailied instructions would benefit many. Thanks.
Re: Reverse Order? June 05, 2003 02:54AM |
Registered: 19 years ago Posts: 4 |
Re: Reverse Order? August 04, 2003 10:30PM |
Re: Reverse Order? August 06, 2003 03:55AM |
Ugh. Not that it WOULD be this simple but it seems that if on clicking on a message thread it would then SELECT every message associated with that thread. THe nature of the query would require that it ORDER BY some criteria, in this case date. That being the case I wonder if you couldn't alter the query (if you can find it) with a DESC rather than either default or ASC.
I KNOW this is totally simplistic, and I haven't even looked at the code since I"m just cruising around trying to decide if I want to try Phorum or not, but if you can try to locate the query which pulls all the messages in the thread you could give it a whirl.
I KNOW this is totally simplistic, and I haven't even looked at the code since I"m just cruising around trying to decide if I want to try Phorum or not, but if you can try to locate the query which pulls all the messages in the thread you could give it a whirl.
Re: Reverse Order? August 06, 2003 05:50AM |
Okaaay...
I'm not SURE I'm doing what it is you were talking about BUT:
When viewing a topic you wanted it to list the NEWEST post up top and oldest at the bottom right?
Try this (Its accomplished what I was trying to do anyway):
<read.php>
~line 389 you see:
@reset($headers);
@reset($bodies);
add just below these lines:
$headers= array_reverse($headers);
$bodies= array_reverse($bodies);
That reverses the order of the arrays holding the message info, and when the code doles out the messages it should do it in reverse order now.
Is that even CLOSE to what you were looking for?
-Martin
I'm not SURE I'm doing what it is you were talking about BUT:
When viewing a topic you wanted it to list the NEWEST post up top and oldest at the bottom right?
Try this (Its accomplished what I was trying to do anyway):
<read.php>
~line 389 you see:
@reset($headers);
@reset($bodies);
add just below these lines:
$headers= array_reverse($headers);
$bodies= array_reverse($bodies);
That reverses the order of the arrays holding the message info, and when the code doles out the messages it should do it in reverse order now.
Is that even CLOSE to what you were looking for?
-Martin
Re: Reverse Order? August 06, 2003 05:56AM |
Re: Reverse Order? November 28, 2005 05:17AM |
Registered: 19 years ago Posts: 190 |
[wrong thread, sorry]
___
Polskie Centrum WebKomiksu
Edited 1 time(s). Last edit at 11/28/2005 05:18AM by godai.
___
Polskie Centrum WebKomiksu
Edited 1 time(s). Last edit at 11/28/2005 05:18AM by godai.
Sorry, you do not have permission to post/reply in this forum.