frankenberrie
04-28-2005, 10:00 PM
Here is something silly but helpful:
I notice my members like to write stuff like using symbols, for example: Frankenberrie #1 - Frankenberrie!!!!
The # and ! symbol along with most other symbols come up as a little squre on the wall and looks retarded. What I did was added the following to the censored words lists in the WALL.PHP file to prevent this from happening.
$string = str_replace( "$", "", $string );
$string = str_replace( "#", "", $string );
$string = str_replace( "!", "", $string );
$string = str_replace( "@", "", $string );
$string = str_replace( "%", "", $string );
$string = str_replace( "&", "", $string );
$string = str_replace( "*", "", $string );
$string = str_replace( "/", "", $string );
$string = str_replace( "<", "", $string );
$string = str_replace( "~", "", $string );
$string = str_replace( "[", "", $string );
$string = str_replace( "]", "", $string );
$string = str_replace( "{", "", $string );
$string = str_replace( "}", "", $string );
$string = str_replace( ";", "", $string );
$string = str_replace( "|", "", $string );
If I missed anything, feel free to add it. Please note that one of the fonts does display a few of these charactors correctly but to prevent these squares completely you will have to add the above to your wall.php file. Hope this helps.
You can see it at: http://www.arcadecrazy.com/thearcade/wall.php
No squares :)
I notice my members like to write stuff like using symbols, for example: Frankenberrie #1 - Frankenberrie!!!!
The # and ! symbol along with most other symbols come up as a little squre on the wall and looks retarded. What I did was added the following to the censored words lists in the WALL.PHP file to prevent this from happening.
$string = str_replace( "$", "", $string );
$string = str_replace( "#", "", $string );
$string = str_replace( "!", "", $string );
$string = str_replace( "@", "", $string );
$string = str_replace( "%", "", $string );
$string = str_replace( "&", "", $string );
$string = str_replace( "*", "", $string );
$string = str_replace( "/", "", $string );
$string = str_replace( "<", "", $string );
$string = str_replace( "~", "", $string );
$string = str_replace( "[", "", $string );
$string = str_replace( "]", "", $string );
$string = str_replace( "{", "", $string );
$string = str_replace( "}", "", $string );
$string = str_replace( ";", "", $string );
$string = str_replace( "|", "", $string );
If I missed anything, feel free to add it. Please note that one of the fonts does display a few of these charactors correctly but to prevent these squares completely you will have to add the above to your wall.php file. Hope this helps.
You can see it at: http://www.arcadecrazy.com/thearcade/wall.php
No squares :)