View Full Version : [Request] Spaces after periods
Travis641
09-09-2002, 03:02 AM
One of my user seems to refuse to put spaces after their periods, in their posts. Is there any way to force this on them, as in just for this particular user?
Any help is appreciated.
Logician
09-09-2002, 08:56 AM
yes it's possible:
edit newreply.php, newthread.php, and editpost.php and find this:
$message=censortext($message);
After that add:
$message=preg_replace("/(,)(\S)/", "\\1 \\2", $message);
This is for all users.. If you want the hack to apply to a certain user use this instead:
if ($bbuserinfo['userid']==X)
{
$message=preg_replace("/(,)(\S)/", "\\1 \\2", $message);
}
Replace X with his userid.
Enjoy..
Travis641
09-09-2002, 08:27 PM
Thanks Logician,
Your work is impeccable :)
Unknown553
09-09-2002, 11:45 PM
Would this also prevent people from typing multiple periods in a row? I know a couple of my members and myself included use "..." in a lot of my posts.
Logician
09-10-2002, 07:36 AM
Originally posted by Unknown553
Would this also prevent people from typing multiple periods in a row? I know a couple of my members and myself included use "..." in a lot of my posts.
EDIT: (Sorry didnt noticed "period") :)
To make it work with periods use this:
$message=preg_replace("/(\.)([^\.]\S)/", "\\1 \\2", $message);
It will not touch multiple periods like this: ...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.