Page 1 of 1

Redirect to portal

Posted: 9. May 2009 09:57
by 1234homie
Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Beginner

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
Hi, its possible to redirect user after he write massage to portal not to topic?

Re: Redirect to portal

Posted: 10. May 2009 13:17
by Kevin
Yes, should be. Not tested:
Open posting.php

seach:

Code: Select all

$message = $user->lang[$message] . '<br /><br />' . sprintf($user->lang['VIEW_MESSAGE'], '<a href="' . $redirect_url . '">', '</a>'); 
replace with:

Code: Select all

$message = $user->lang[$message] . '<br /><br />' . sprintf($user->lang['VIEW_MESSAGE'], '<a href="' . append_sid("{$phpbb_root_path}portal.$phpEx") . '">', '</a> '); 
Note: this only changes the redirection. If you want the message to be changed, you have to modify $user->lang['VIEW_MESSAGE']