Topic: Arriving at the newest page after posting - HOW?

Hi guys,

shame on me, but I find really irritating if a member posts something on my otherwise beloved punBB 1.3, then arrives at the latest page, seeing the oldest posts. hmm

Can you please suggent a hint for me?

Many thanks in advance

:beer:
smile

Re: Arriving at the newest page after posting - HOW?

After adding the post, the Forum redirects the user to the page with that new (latest) post. Namely, to the last page of topic.

Re: Arriving at the newest page after posting - HOW?

Slavok wrote:

After adding the post, the Forum redirects the user to the page with that new (latest) post. Namely, to the last page of topic.

Dear Slavok,

the pages are like this:

newest posts: page#1
oldest posts: #n

My problem is if I submit a new post, I find myself on page #n instead of #1.

Can you please give me a hint how could I get to page #1 after submitting?

Many thanks in advance!

Re: Arriving at the newest page after posting - HOW?

The function of displaying posts in inverted order is not common in forums.
To display the posts from the newest to oldest ones you will need to make changes in the viewtopic.php file.

line #58:
replace

$_GET['p'] = ceil($num_posts / $forum_user['disp_posts']);

with

$_GET['p'] = 1;

line #294:
replace

'ORDER BY' => 'p.id',

with

'ORDER BY' => 'p.id DESC',

Re: Arriving at the newest page after posting - HOW?

Dear Gordei4ik,

many-many thanks for it!!! works like charm!!

Sincerely,
beletek