PDA

View Full Version : Graffiti Wall - Charactor fix, I hate that square.


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 :)

Boofo
04-29-2005, 11:01 PM
How about a pic of the before and after? I'm not sure what this does. ;)

MPDev
04-30-2005, 01:27 AM
Good idea.

chriswible
04-30-2005, 02:37 AM
I needed that. Thanks. ;)

Polo
04-30-2005, 09:49 PM
Arent his all addons to an existing hack, i think they should be added in the original hacks thread.... just a suggestions... but oh well... this was needed.... because i have the same problem :)

oh and by the way, the character

'

I think it needs to be added (dont know if its possible) because I just went to your wall and a member posted "don't" and it looked
don(square)t lol :nervous:

nexialys
04-30-2005, 09:57 PM
modifications of a hack that does not add any functionality would need to be added in the thread of the hack itself, and the coder would decide to add it as a addon... logically... no need to make a release for this... or you simply need to add to your count of releases...

amykhar
04-30-2005, 10:56 PM
I have a much better fix for this. Your fix blanks out the problem characters. Mine shows them correctly.

In wall.php Find:

imagettftext($myimage, $fontsize, $textangle, $start_x, $start_y, $color, $fontfile, $string);


Add above:

$string = utf8_encode($string);

frankenberrie
05-02-2005, 01:19 PM
I have a much better fix for this. Your fix blanks out the problem characters. Mine shows them correctly.

In wall.php Find:

imagettftext($myimage, $fontsize, $textangle, $start_x, $start_y, $color, $fontfile, $string);


Add above:

$string = utf8_encode($string);



Tried that and it does not work!

amykhar
05-02-2005, 02:27 PM
Works fine for me here. Dunno.

frankenberrie
05-02-2005, 02:37 PM
Strange... I will try again.

amykhar
05-02-2005, 07:25 PM
I found something. It's working for some fonts but not all. If the font doesn't have the character, it won't work. It's strange that the chosen fonts don't have all the basic characters. On my own site, I think I will look into changing the fonts.

Pamela
06-24-2005, 04:47 AM
Does anyone know how to just to remove the font "Grand Stylus" (the one with all the boxes) entirely?

I tried just deleting it from the font folder but then the graffiti wall still "looks" for it and it gives me an error message. There must be an easy way just to eliminate that font choice entirely...but unfortunately I have no clue what that "easy" way is! lol

Does anyone else know and can share it with the rest of us? :)

MrZeropage
06-26-2005, 12:49 PM
Hmmm, I am wondering where the hack is gone

corn
06-30-2005, 06:17 PM
:( Gone ?

1nf3rn0
07-01-2005, 04:14 PM
if you guys are lookin for the graffiti wall hack its located here

https://vborg.vbsupport.ru/showthread.php?t=80588&highlight=graffiti+wall