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.


All times are GMT. The time now is 01:46 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.01005 seconds
  • Memory Usage 1,738KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete