last post - first show [message #8353] |
Thu, 23 January 2003 15:44 |
|
Hello !
I use FUDforum 2.3.1 ... and my users want to show in topic last posts first ...
How I can do that ?
It's any variable to sort reply's by date ascendently or descendently ?
Thank You !
|
|
|
|
|
|
Re: last post - first show [message #8361 is a reply to message #8353] |
Thu, 23 January 2003 23:01 |
|
I install on my computer for test only ... and I find in file :
/include/theme/default/isearch.inc line 95 from 244
+++
$r = q("SELECT id,subject,thread_id,length,foff,file_id FROM fud23_msg ORDER BY thread_id,id ASC");
+++
now my forum are instaled on webhosting server and I see other directory structure ... it's a new directory 777 ... now it's complicated to write in this file isearch.inc...
+++
bash-2.05a$ ls -al isearch.inc
-rw-r--r-- 1 nobody nobody 7373 Sep 27 07:55 isearch.inc
+++
I not have write permision ... this directory are owned by webserver
I will try to find a way ...
Thank You !
[Updated on: Thu, 23 January 2003 23:10] Report message to a moderator
|
|
|
Re: last post - first show [message #8363 is a reply to message #8361] |
Thu, 23 January 2003 23:07 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Use the admin control panel which locks/unlocks files. By unlocking the files you will be able to modify them.
FUDforum Core Developer
|
|
|
|
|
|
|
|
|
|
Re: last post - first show [SOLVED] [message #32685 is a reply to message #32680] |
Fri, 14 July 2006 19:20 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Basically the marking of read logic takes the id of the last message in the list (presuming it to be the latest message) and uses that for mark read. Since you've reversed the order you need to adjust the code to take the 1st message in the list.
FUDforum Core Developer
|
|
|
Re: last post - first show [SOLVED] [message #32697 is a reply to message #32685] |
Sat, 15 July 2006 11:32 |
y0shi
Messages: 9 Registered: December 2005
Karma: 0
|
Junior Member |
|
|
hm, I do not really understand php files, I just changed ASC to DESC. So now I dont see myself adjusting the code.
Can you or someone else help me with that?
Or can you point me to some help?
Because my server is very slow it is a big improvement that new messages are shown first - no more scrolling that much ...
So it would be very nice to help me
thank you so far
[Updated on: Sat, 15 July 2006 11:32] Report message to a moderator
|
|
|
|
Re: last post - first show [SOLVED] [message #32724 is a reply to message #32706] |
Mon, 17 July 2006 19:20 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You need to edit msg.php.t and find a line which says $obj2 = $obj; and change it to
if (!$obj2) $obj2 = $obj;
FUDforum Core Developer
|
|
|
|
|
|
|