![]() |
I need to change the ' character to ` in the first post in threads....I told you it was mad! ;)
|
$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 |
Mad but easy. :)
PHP Code:
|
Quote:
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: |
Argh, for some reason the escape character was stripped. (you need to escape the escape character :()
Code:
$message=str_replace('\\'','`',$message); |
It worked fine as below mate
PHP Code:
|
All times are GMT. The time now is 12:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|