Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Graffiti Wall - Charactor fix, I hate that square. Details »»
Graffiti Wall - Charactor fix, I hate that square.
Version: 1.00, by frankenberrie frankenberrie is offline
Developer Last Online: Jun 2009 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 04-28-2005 Last Update: Never Installs: 5
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-29-2005, 11:01 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about a pic of the before and after? I'm not sure what this does.
Reply With Quote
  #3  
Old 04-30-2005, 01:27 AM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good idea.
Reply With Quote
  #4  
Old 04-30-2005, 02:37 AM
chriswible chriswible is offline
 
Join Date: Sep 2003
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I needed that. Thanks.
Reply With Quote
  #5  
Old 04-30-2005, 09:49 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #6  
Old 04-30-2005, 09:57 PM
nexialys
Guest
 
Posts: n/a
Default

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...
Reply With Quote
  #7  
Old 04-30-2005, 10:56 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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);
Reply With Quote
  #8  
Old 05-02-2005, 01:19 PM
frankenberrie's Avatar
frankenberrie frankenberrie is offline
 
Join Date: Dec 2002
Location: N.Y.
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #9  
Old 05-02-2005, 02:27 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works fine for me here. Dunno.
Reply With Quote
  #10  
Old 05-02-2005, 02:37 PM
frankenberrie's Avatar
frankenberrie frankenberrie is offline
 
Join Date: Dec 2002
Location: N.Y.
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Strange... I will try again.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04502 seconds
  • Memory Usage 2,295KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete