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

phpBB Custom Coding • Re: site-specific parameters

$
0
0
You can ban IP ranges with phpBB however that's going to be checked with every page load and generally advised to not use IP bans. Generally speaking they are only useful for short term uses, e.g. ban it for week with problematic user and hope they don't realize the limitations. Unless yo have very specific reason it's not very useful no matter how you are doing it.

To answer your question unless you have intentions or reusing the data elsewhere whatever works. Here's a quick snippet of code to trigger error message

Code:

// Mod - End Registration with errorif (<your condition>){$message = 'Your Error message';$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');trigger_error($message);}

Statistics: Posted by thecoalman — Sat May 24, 2025 1:05 am



Viewing all articles
Browse latest Browse all 2328

Trending Articles