Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Fix the weird characters/symbols in posts. Details »»
Fix the weird characters/symbols in posts.
Version: 1.00, by borbole borbole is offline
Developer Last Online: Oct 2015 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.0.2 Rating:
Released: 03-27-2010 Last Update: 04-09-2010 Installs: 37
DB Changes Uses Plugins
Additional Files Translations  
No support by the author.

This mod will allow you to fix the weird characters/symbols that appear at your forum when you move hosts and/or reatore a database due to the coallition characters conflict in the db.
For ex when all your posts appear with a bunch of ÂÂ@@ or whatever characters. All you have to do is enter those weird characters at the mod settings and then enter the right symbols that you want to replace and all your problems will be solved.

It can aslo be used to replace text. It can be whatever text you want.

Installation:

To install the mod, upload the includes folder to your forum root folder and then import the wierd_symbol_fix.xml file inside the mod package to Plugins&Products in the acp of your forum. Then go to the mod setting option: Fix Wierd Symbols. It can be found on the left side of the Admin Panel, right above the Maintenace section. And enter the information accordingly.

Note: After doing the replacement, go to: Admin CP -> Maintenance -> Update Counters and run Rebuild Post Cache.

Download Now

File Type: zip wierd_symbol_fix.zip (1.5 KB, 359 views)

Screenshots

File Type: png Admin Control Panel_1269737643205.png (63.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Davey-UK, keteflips

Comments
  #12  
Old 08-14-2010, 08:09 PM
alhindasi alhindasi is offline
 
Join Date: Apr 2008
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

waaaaaaaaaaaaaw 100%

it's working good

**BUT**


i need to fix and Replace many Word

Is it possible to add many Word
Reply With Quote
  #13  
Old 08-14-2010, 11:00 PM
rajubd rajubd is offline
 
Join Date: Jun 2009
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

some of my attachment showing wierd character is it going to work on attachment?
Reply With Quote
  #14  
Old 08-26-2010, 04:00 AM
gusfune's Avatar
gusfune gusfune is offline
 
Join Date: Jan 2007
Location: Bras?lia, Brazil
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One question: will this avoid characters breaking again? I mean, if it's something is causing all new posts to break, will this just fix the characters or is there any bug-fix inside the plugin?

Thanks.
Reply With Quote
  #15  
Old 09-11-2010, 10:42 AM
Threepwud Threepwud is offline
 
Join Date: Sep 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am trying to change ' to an apostrophe ' but it makes my page display a database error:

Database error in vBulletin 4.0.6:
Invalid SQL:
UPDATE thppost
SET pagetext = replace(pagetext, 'I'', ''');
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '''')' at line 2
Error Number : 1064
Request Date : Saturday, September 11th 2010 @ 12:34:43 PM
Error Date : Saturday, September 11th 2010 @ 12:34:43 PM
Script : http://www.threepwud.com/vb/showthre...ndings?p=46049
Referrer : http://www.threepwud.com/vb/forum.php
IP Address : 94.170.240.143
Username : Threepwud
Classname : vB_Database
MySQL Version : 5.1.41

Any ideas?
Thanks mate
Reply With Quote
  #16  
Old 09-11-2010, 10:52 AM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Threepwud View Post
I am trying to change ' to an apostrophe ' but it makes my page display a database error:

Database error in vBulletin 4.0.6:
Invalid SQL:
UPDATE thppost
SET pagetext = replace(pagetext, 'I'', ''');
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '''')' at line 2
Error Number : 1064
Request Date : Saturday, September 11th 2010 @ 12:34:43 PM
Error Date : Saturday, September 11th 2010 @ 12:34:43 PM
Script : http://www.threepwud.com/vb/showthre...ndings?p=46049
Referrer : http://www.threepwud.com/vb/forum.php
IP Address : 94.170.240.143
Username : Threepwud
Classname : vB_Database
MySQL Version : 5.1.41

Any ideas?
Thanks mate
Can you tell me what test/character you want to replace and what with?
Reply With Quote
  #17  
Old 09-11-2010, 10:56 AM
Threepwud Threepwud is offline
 
Join Date: Sep 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I mentioned that my apostrophes are showing as & # 0 3 9 ; (without the spaces, here it changes to an apostrophe!) so I want to change ' into an apostrophe.

Is this mod able to do that? Cheers mate
Reply With Quote
  #18  
Old 09-11-2010, 11:04 AM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Threepwud View Post
I mentioned that my apostrophes are showing as & # 0 3 9 ; (without the spaces, here it changes to an apostrophe!) so I want to change ' into an apostrophe.

Is this mod able to do that? Cheers mate
Yes, that is able to do it. It can replace any text and character.

Anyway, you are using a single quote and as such you should escape it with the backslash character \

i.e. you should enter the character like this:
Code:
\'
at Wierd Symbol & the Replaced Text. I just tried it at my test site and it worked fine.
Reply With Quote
  #19  
Old 09-11-2010, 11:17 AM
Threepwud Threepwud is offline
 
Join Date: Sep 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright, I changed it so my replaced text said \' and it didn't work - then also tried it with \**** and that didn't work.

I'm thinking maybe because it is between other characters. ie i****m has the characters between the I and M characters.
Reply With Quote
  #20  
Old 09-11-2010, 11:21 AM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Threepwud View Post
Alright, I changed it so my replaced text said \' and it didn't work - then also tried it with \**** and that didn't work.

I'm thinking maybe because it is between other characters. ie i****m has the characters between the I and M characters.
After you ran it, did you update the counters as well as mentioned in bold at the bottom of the first post here

Note: After doing the replacement, go to: Admin CP -> Maintenance -> Update Counters and run Rebuild Post Cache.
Reply With Quote
  #21  
Old 09-11-2010, 11:29 AM
Threepwud Threepwud is offline
 
Join Date: Sep 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HA! I did indeed miss that counter update. You sir are a genius.

The only thing I've noticed is that the forum slows down after I've enabled the mod. I'll look into that.

Thanks very much!

edit: after running your brilliant mod and then updating the counters, I simply disabled it and the place went faster again. Awesome stuff.

Could this mod be used to fix my quoting issues too?
[quote author=Jer link=topic=1118.msg46798#msg46798 date=1284059913]
comes from the SMF import and maybe if I can change them all...?
Reply With Quote
Reply

Thread Tools

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 06:19 PM.


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.04542 seconds
  • Memory Usage 2,337KB
  • Queries Executed 26 (?)
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
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete