Post preview (General)

by Andy, Thursday, September 08, 2011, 12:43 (4635 days ago)

Hi Alex

I have now managed to integrate my little forum succesfully into a new site I am creating. I have to say that I am so impressed with it, it's exactly what was needed.

I am just fine-tuning things now, and have a quick query. Once a user posts a message, I would like them to return straight back to the forum, rather than be shown a preview of the post. Would you be able to point me in the right direction as to which file to amend with regard to this please?

Many thanks

Andy

Avatar

Post preview

by Alex ⌂, Thursday, September 08, 2011, 16:35 (4635 days ago) @ Andy

Hi Andy,

Once a user posts a message, I would like them to return straight back to the forum

Untested, but it should go this way:

Replace

if(isset($back) && $back=='thread') header('Location: index.php?mode=thread&id='.$new_data['id'].'#p'.$new_data['id']);
else header('Location: index.php?id='.$new_data['id']);

by

header('Location: index.php?mode=index');

in includes/posting.inc.php (line 934 and 935).

Alex

Post preview

by Andy, Thursday, September 08, 2011, 21:38 (4635 days ago) @ Alex

Perfect! Thanks very much

Andy

RSS Feed of thread