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

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

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 11: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
add to buddy list
ignore all messages by this user
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 16: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
add to buddy list
ignore all messages by this user

In what file ?
Thank You !
Re: last post - first show [message #8359 is a reply to message #8356] Thu, 23 January 2003 16: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
add to buddy list
ignore all messages by this user
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 18: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
add to buddy list
ignore all messages by this user

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 18:10]

Report message to a moderator

Re: last post - first show [message #8363 is a reply to message #8361] Thu, 23 January 2003 18: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
add to buddy list
ignore all messages by this user
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 18: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
add to buddy list
ignore all messages by this user

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 05: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
add to buddy list
ignore all messages by this user

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 10: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
add to buddy list
ignore all messages by this user
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 03: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
add to buddy list
ignore all messages by this user

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 06: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
add to buddy list
ignore all messages by this user

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 14:53 Go to previous messageGo to next message
y0shi is currently offline  y0shi   Germany
Messages: 9
Registered: December 2005
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 05:32 Go to previous messageGo to next message
y0shi is currently offline  y0shi   Germany
Messages: 9
Registered: December 2005
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 15: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
add to buddy list
ignore all messages by this user
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 07:32 Go to previous messageGo to next message
y0shi is currently offline  y0shi   Germany
Messages: 9
Registered: December 2005
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 07:32]

Report message to a moderator

Re: last post - first show [SOLVED] [message #32706 is a reply to message #32685] Mon, 17 July 2006 01:26 Go to previous messageGo to next message
y0shi is currently offline  y0shi   Germany
Messages: 9
Registered: December 2005
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 15: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
add to buddy list
ignore all messages by this user
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 05:12 Go to previous messageGo to next message
y0shi is currently offline  y0shi   Germany
Messages: 9
Registered: December 2005
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 08:23 Go to previous messageGo to next message
muem is currently offline  muem   Germany
Messages: 2
Registered: August 2014
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 08:55 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
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 02:34 Go to previous message
muem is currently offline  muem   Germany
Messages: 2
Registered: August 2014
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
ok i found it and it works
thanks

in the same file i have to edit it
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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 Dec 14 19:53:49 EST 2017

Total time taken to generate the page: 0.00876 seconds