FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » FUDforum 3.0+ » last post - first show
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
last post - first show [message #8353] Thu, 23 January 2003 15:44 Go to next message
Laurentiu is currently offline  Laurentiu   Romania
Messages: 12
Registered: January 2003
Location: Iasi - Romania
Karma: 0
Junior Member

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 #8354 is a reply to message #8353] Thu, 23 January 2003 16:00 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Modify the sorting query to sort in ASC and not DESC order.

FUDforum Core Developer
Re: last post - first show [message #8356 is a reply to message #8353] Thu, 23 January 2003 21:15 Go to previous messageGo to next message
Laurentiu is currently offline  Laurentiu   Romania
Messages: 12
Registered: January 2003
Location: Iasi - Romania
Karma: 0
Junior Member

In what file ?
Thank You !
Re: last post - first show [message #8359 is a reply to message #8356] Thu, 23 January 2003 21:45 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
th.inc I believe or msg_edt.inc

FUDforum Core Developer
Re: last post - first show [message #8361 is a reply to message #8353] Thu, 23 January 2003 23:01 Go to previous messageGo to next message
Laurentiu is currently offline  Laurentiu   Romania
Messages: 12
Registered: January 2003
Location: Iasi - Romania
Karma: 0
Junior Member

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 ... Smile 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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 [message #8364 is a reply to message #8363] Thu, 23 January 2003 23:29 Go to previous messageGo to next message
Laurentiu is currently offline  Laurentiu   Romania
Messages: 12
Registered: January 2003
Location: Iasi - Romania
Karma: 0
Junior Member

I not find yet what file need to be change ...
When I discover I post ...
Thank You !
Re: last post - first show [message #8368 is a reply to message #8364] Fri, 24 January 2003 10:41 Go to previous messageGo to next message
Laurentiu is currently offline  Laurentiu   Romania
Messages: 12
Registered: January 2003
Location: Iasi - Romania
Karma: 0
Junior Member

I not find yet ... Sad
Please give me a clue ...

Thank You !
Re: last post - first show [message #8405 is a reply to message #8368] Mon, 27 January 2003 15:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
logedin.inc.t has the code your are looking for.

FUDforum Core Developer
Re: last post - first show [message #9440 is a reply to message #8405] Fri, 28 March 2003 08:42 Go to previous messageGo to next message
Laurentiu is currently offline  Laurentiu   Romania
Messages: 12
Registered: January 2003
Location: Iasi - Romania
Karma: 0
Junior Member

I use FUDforum 2.3.7 ... I've looked in logedin.inc.t .
I've completed the query lines ( $lsubj and $lmid ) with ".. ORDER DESC " .
It doesent work !

Re: last post - first show [SOLVED] [message #9441 is a reply to message #9440] Fri, 28 March 2003 11:50 Go to previous messageGo to next message
Laurentiu is currently offline  Laurentiu   Romania
Messages: 12
Registered: January 2003
Location: Iasi - Romania
Karma: 0
Junior Member

Huh ...
msg.php and msg.php.t
ASC -> DESC
Re: last post - first show [SOLVED] [message #32674 is a reply to message #9441] Thu, 13 July 2006 18:53 Go to previous messageGo to next message
y0shi is currently offline  y0shi   Germany
Messages: 9
Registered: December 2005
Karma: 0
Junior Member
I have a question to that changing of ASC -> DESC
Im not sure wether to ask it hear but ...

I recently upgraded to 2.7.5 in hope that it will be solved, but it is still the same in 2.7.4 and 2.7.5 - whats my fault?

I change ASC to DESC in msg.php in my default theme and in src msg.php.t - after that order is like I want.
But when a new msg is posted in a forum it is marked as unread an when I read it after that the forum is marked as read again.
But inside the Forum when a new msg is posted inside a topic the topic is marked as unread and keeps marked as unread!
That is confusing for me ans others what is my fault?

thanks in advance!
Re: last post - first show [SOLVED] [message #32680 is a reply to message #32674] Fri, 14 July 2006 09:32 Go to previous messageGo to next message
y0shi is currently offline  y0shi   Germany
Messages: 9
Registered: December 2005
Karma: 0
Junior Member
I use mySQL 5.0.18 and PHP 5.1.2 on apache 1.3.34
Use Persistent Connections: is No
Use MySQL 4.1 Performance Options: is No

(mysqladmin Ver 8.41 Distrib 5.0.18, for pc-linux-gnu on i686)
Re: last post - first show [SOLVED] [message #32685 is a reply to message #32680] Fri, 14 July 2006 19:20 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
y0shi is currently offline  y0shi   Germany
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 Smile

thank you so far

[Updated on: Sat, 15 July 2006 11:32]

Report message to a moderator

Re: last post - first show [SOLVED] [message #32706 is a reply to message #32685] Mon, 17 July 2006 05:26 Go to previous messageGo to next message
y0shi is currently offline  y0shi   Germany
Messages: 9
Registered: December 2005
Karma: 0
Junior Member
Ilia wrote on Fri, 14 July 2006 15:20

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.


I dont find answers to that in this forum - if that is because I am to stupid to search can someone point me to that answer?
I think all they talk about is changing ASC to DESC nothing more to be done?!
Re: last post - first show [SOLVED] [message #32724 is a reply to message #32706] Mon, 17 July 2006 19:20 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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
Re: last post - first show [SOLVED] [message #32743 is a reply to message #32724] Tue, 18 July 2006 09:12 Go to previous messageGo to next message
y0shi is currently offline  y0shi   Germany
Messages: 9
Registered: December 2005
Karma: 0
Junior Member
Thank you a lot!

I edited not just msg.php.t but also msg.php, so no theme rebuild was nessecery and it works just fine!

So here is what I did:

I just edited msg.php and msg.php.t in order to see last post first by keeping the mark as read functionality.

In both files I just changed
ASC to DESC
and
$obj2 = $obj; to if (!$obj2) $obj2 = $obj;

thank you for your help!
Aw: Re: last post - first show [SOLVED] [message #186495 is a reply to message #32743] Thu, 28 August 2014 12:23 Go to previous messageGo to next message
muem is currently offline  muem   Germany
Messages: 2
Registered: August 2014
Karma: 0
Junior Member
Hello,

i woult to try the same.
But i use FudForum 3.0.6RC2

Can someone please help me witch file i have to edit and where i can find the entry.

Sorry for my poor english.

with best regards
Muemmel
Re: Aw: Re: last post - first show [SOLVED] [message #186496 is a reply to message #186495] Thu, 28 August 2014 12:55 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
I'm sure it's still in the same files. Have you checked?
Aw: Re: Aw: Re: last post - first show [SOLVED] [message #186502 is a reply to message #186496] Fri, 29 August 2014 06:34 Go to previous message
muem is currently offline  muem   Germany
Messages: 2
Registered: August 2014
Karma: 0
Junior Member
ok i found it and it works
thanks

in the same file i have to edit it
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Where are the user profile fields stored?
Next Topic: Any Examples of Subject/Body Regex Mangling ?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Oct 31 23:57:02 GMT 2024

Total time taken to generate the page: 0.02381 seconds