Topic: reverse order post and replies
I have a PunBB 1.4.2
Is there a way to have newest posts and replies build from the top down and not placed on the bottom of the topic ?
Thanks in advanced
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.4 troubleshooting → reverse order post and replies
I have a PunBB 1.4.2
Is there a way to have newest posts and replies build from the top down and not placed on the bottom of the topic ?
Thanks in advanced
Hi,
you can achieve that by replacing two lines of code in viewtopic.php
line 285:
'ORDER BY' => 'p.id',
change it to:
'ORDER BY' => 'p.id DESC',
line 320:
'ORDER BY' => 'p.id'
change it to:
'ORDER BY' => 'p.id DESC'
Hi,
you can achieve that by replacing two lines of code in viewtopic.phpline 285:
'ORDER BY' => 'p.id',
change it to:
'ORDER BY' => 'p.id DESC',line 320:
'ORDER BY' => 'p.id'
change it to:
'ORDER BY' => 'p.id DESC'
how about if first post keep on first page and second post is latest post?
just don't change line 285, and you will keep the order of pages, but it in my opinion it looks weird.
thank you very much!
just don't change line 285, and you will keep the order of pages, but it in my opinion it looks weird.
yes i try dont change line 285, but the first post being 10th post not in 1st post :?
changing order the link of every post dont work so you have to change also
// Determine on what page the post is located (depending on $forum_user['disp_posts'])
$query = array(
'SELECT' => 'COUNT(p.id)',
'FROM' => 'posts AS p',
'WHERE' => 'p.topic_id='.$topic_info['topic_id'].' AND p.posted<'.$topic_info['posted']
);
in
// Determine on what page the post is located (depending on $forum_user['disp_posts'])
$query = array(
'SELECT' => 'COUNT(p.id)',
'FROM' => 'posts AS p',
'WHERE' => 'p.topic_id='.$topic_info['topic_id'].' AND p.posted>'.$topic_info['posted']
);
changing order the link of every post dont work so you have to change also
// Determine on what page the post is located (depending on $forum_user['disp_posts'])
$query = array(
'SELECT' => 'COUNT(p.id)',
'FROM' => 'posts AS p',
'WHERE' => 'p.topic_id='.$topic_info['topic_id'].' AND p.posted<'.$topic_info['posted']
);in
// Determine on what page the post is located (depending on $forum_user['disp_posts'])
$query = array(
'SELECT' => 'COUNT(p.id)',
'FROM' => 'posts AS p',
'WHERE' => 'p.topic_id='.$topic_info['topic_id'].' AND p.posted>'.$topic_info['posted']
);
I try change < to > like ur post with dont cahnge on line 285
but the result still same first post to be 10th post
PunBB Forums → PunBB 1.4 troubleshooting → reverse order post and replies
Powered by PunBB, supported by Informer Technologies, Inc.