vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Graffiti Wall - Charactor fix, I hate that square. (https://vborg.vbsupport.ru/showthread.php?t=80771)

frankenberrie 04-28-2005 10:00 PM

Graffiti Wall - Charactor fix, I hate that square.
 
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.

Code:

$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

Quote:

'
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
Quote:

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

imagettftext($myimage, $fontsize, $textangle, $start_x, $start_y, $color, $fontfile, $string);
Add above:
Code:

$string = utf8_encode($string);

frankenberrie 05-02-2005 01:19 PM

Quote:

Originally Posted by amykhar
I have a much better fix for this. Your fix blanks out the problem characters. Mine shows them correctly.

In wall.php Find:
Code:

imagettftext($myimage, $fontsize, $textangle, $start_x, $start_y, $color, $fontfile, $string);
Add above:
Code:

$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/showthrea...=graffiti+wall


All times are GMT. The time now is 04:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01006 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete