Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1718

phpBB Custom Coding • Re: How to Create a Custom Ban Screen?

$
0
0
1. That function is to ban the user.

2. redirect is custom phpBB function and assuming it's available within that function the only person that will get redirected is the person issuing the ban if they set length of time. Not sure why you thought that was the place to put it but it's not even remotely close.
---------------------------------------------

The easiest way to do this is change the language strings. Open /language/en/common.php and around line 135 find:

Code:

'BAN_TRIGGERED_BY_EMAIL'=> 'A ban has been issued on your email address.','BAN_TRIGGERED_BY_IP'=> 'A ban has been issued on your IP address.','BAN_TRIGGERED_BY_USER'=> 'A ban has been issued on your username.',
And just a little below it:

Code:

'BOARD_BAN_PERM'=> 'You have been <strong>permanently</strong> banned from this board.<br /><br />Please contact the %2$sBoard Administrator%3$s for more information.','BOARD_BAN_REASON'=> 'Reason given for ban: <strong>%s</strong>','BOARD_BAN_TIME'=> 'You have been banned from this board until <strong>%1$s</strong>.<br /><br />Please contact the %2$sBoard Administrator%3$s for more information.',
This assumes you are using Brithish English, if you are using different language check that folder.

You can use HTML but special characters like ', ", &, < or >should be entity The single backtick ' cannot be used to enclose HTML attributes, use double backtick " instead. The %1$s part of the string are placeholders for other text. e.g. the time the ban is in effect too.

Statistics: Posted by thecoalman — Fri Sep 20, 2024 9:53 pm



Viewing all articles
Browse latest Browse all 1718

Trending Articles