View Full Version : mad request!
Bald Bouncer
01-24-2002, 11:06 AM
I need to change the ' character to ` in the first post in threads....I told you it was mad! ;)
Bald Bouncer
01-24-2002, 01:11 PM
$message = preg_replace("/([\?\!]+)/e", "substr('\\1',0,1)", $message);
I know if this is posted in Newthread it will remove multiples !!! ??? from your message so maybe someone can alter this to change the characters
Admin
01-24-2002, 01:19 PM
Mad but easy. :)
$message=str_replace('\'','`',$message);
Bald Bouncer
01-24-2002, 01:50 PM
Originally posted by FireFly
Mad but easy. :)
$message=str_replace('\'','`',$message);
close.... $message=str_replace("'","`",$message); ;)
cheers
1 more thing is it possible to stop empty lines in the post, I tried changing <br><br> to .... but I guess it wont work with HTML :confused:
Admin
01-24-2002, 02:33 PM
Argh, for some reason the escape character was stripped. (you need to escape the escape character :()
$message=str_replace('\\'','`',$message);
Bald Bouncer
01-24-2002, 02:46 PM
It worked fine as below mate
$message=str_replace("'","`",$message);
that stops them putting the character in the post, but I also need to stop empty line breaks appearing if you have an idea...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.