1 (edited by faax 2005-08-11 14:45)

Topic: Litle problem

I modify viewtopic (i put newest posts to be displayed first), work perfect but there is error with posting comment with multipage. After i submit my post, forum redirect me on page 3 (etc) but on page 3 are old comments. So what to modify to redirect me on first page when i post a new comment...
Anybody know?

P.S. on admin panel in section forums is set "Sort topics by - Topic start" ...
(sorry about my bad English)

it's just me...

2 (edited by pabb 2005-08-11 21:32)

Re: Litle problem

here is what you could do, this is the ugly way.

Open post.php

Find (around line 320)

        redirect('viewtopic.php?pid='.$new_pid.'#p'.$new_pid, $lang_post['Post redirect']);


Replace with

        redirect('viewtopic.php?id='.$tid, $lang_post['Post redirect']);

3

Re: Litle problem

thank you very much ... Work perfect ...

it's just me...

4

Re: Litle problem

sorry man ... it don't work ... there is error on viewtopic ... so when i try to make new topic he try to kick me on viewtopic.php?id=0 but topic 0 don't exist ...

Possible another way when is new comments first, after submit comment to kick me on page 1 not on last page with old comments ...

Sorry about my bad English ...

it's just me...

5

Re: Litle problem

if($tid)
        redirect('viewtopic.php?id='.$tid, $lang_post['Post redirect']);
else
        redirect('viewtopic.php?pid='.$new_pid.'#p'.$new_pid, $lang_post['Post redirect']);

should probably work then.