Boom! First try. Image may be NSFW.Something like this, FIND:That said the file and lines you are looking for are around line 1306 in /phpbb/session.phpADD:Code:
$message .= ($ban_row['ban_give_reason']) ? '<br /><br />' . sprintf($this->lang['BOARD_BAN_REASON'], $ban_row['ban_give_reason']) : '';$message .= '<br /><br /><em>' . $this->lang['BAN_TRIGGERED_BY_' . strtoupper($ban_triggered_by)] . '</em>';
Note I did not test this at all.Code:
if ($ban_triggered_by == 'ip') {$message .= ' Your banned IP adddress is ' . $this->ip . '.';}
Clik here to view.

Using your code logic, I actually injected the message and IP info after the second $message line in session.php, this being the new lines 1303 - 1307:
Code:
if ($ban_triggered_by == 'ip') {$message .= '..providing them your IP address ==> ' . $this->ip . '.';}
Information
You have been permanently banned from this board.
Please contact the Board Administrator for more information...providing them your IP address ==> xxx.xxx.xxx.xxx.
A ban has been issued on your IP address.
Statistics: Posted by SQLnovice — Tue Aug 27, 2024 3:37 am