boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

newest comments at top

 
Post new topic   Reply to topic    boardom Forum Index -> How to ?
View previous topic :: View next topic  
Author Message
flowerglen



Joined: 27 May 2003
Posts: 24

PostPosted: Tue Jan 20, 2004 12:49 am    Post subject: newest comments at top Reply with quote

how do you do this. i know there has to be a way.
Back to top
View user's profile Send private message
gooified



Joined: 09 Jul 2003
Posts: 19

PostPosted: Mon Jan 26, 2004 12:08 am    Post subject: Reply with quote

*bump* I would like to know as well. I just started using pop up comments instead, and for some reason the newest comments are showing at the bottom. argh!
Back to top
View user's profile Send private message Visit poster's website
gooified



Joined: 09 Jul 2003
Posts: 19

PostPosted: Mon Jan 26, 2004 12:39 am    Post subject: Reply with quote

I found it!

find:
Code:
$queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content NOT LIKE '%<trackback />%' AND comment_content NOT LIKE '%<pingback />%' ORDER BY comment_date";


the last part where it says comment_date, right after that put DESC, so it looks like this:

Code:
$queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content NOT LIKE '%<trackback />%' AND comment_content NOT LIKE '%<pingback />%' ORDER BY comment_date DESC";
Back to top
View user's profile Send private message Visit poster's website
SideSwipe



Joined: 14 Feb 2004
Posts: 1

PostPosted: Sat Feb 14, 2004 2:14 am    Post subject: Reply with quote

Gotta love PHP and SQL. Very Happy

Thanks - this was just the thing I was looking for,
Back to top
View user's profile Send private message
scottie



Joined: 01 Mar 2004
Posts: 1

PostPosted: Mon Mar 01, 2004 8:37 pm    Post subject: Reply with quote

Thanks! I was wondering the same thing Razz
Back to top
View user's profile Send private message Visit poster's website
hazel



Joined: 20 Jan 2004
Posts: 34
Location: Philippines

PostPosted: Wed Mar 03, 2004 10:05 am    Post subject: Reply with quote

gooified wrote:
I found it!

find:
Code:
$queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content NOT LIKE '%<trackback />%' AND comment_content NOT LIKE '%<pingback />%' ORDER BY comment_date";


the last part where it says comment_date, right after that put DESC, so it looks like this:

Code:
$queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content NOT LIKE '%<trackback />%' AND comment_content NOT LIKE '%<pingback />%' ORDER BY comment_date DESC";


From what file is this? b2config?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> How to ? All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group