View Single Post
  #276  
Old 12-28-2008, 06:38 PM
Khashyar Khashyar is offline
 
Join Date: Jan 2003
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent Plug-in, Jafo, thank you for creating and sharing it.

XMan, I am receiving the same issue as you are.

When posting a blog article for the first time into VB, the encoding is fine.

But then, when editing a WP article, all of the characters do not translate to the edited version of the blog post in VB.

When WP was UTF-8, and VB was ISO 8859-1, question marks ("), the and symbol (&), and apostrophes (') converted to "?" in VB when I edited a WP post in WP.

So, I decided to change both WP and VB encoding to UTF-8 (since I have read that this is more universally used), and now edited WP posts post all characters OK, except for the "&" symbol, which displays in the edited VB post as "&"

Again, I really appreciate the Plug-in, and this is going to be very useful for both my WP and VB installations.

I haven't activated the User Bridge or WP comment bridge yet, but I will try to activate and test this within a few days.

For now, I love the fact that my WP blogs post in VB, and that when I edit a WP blog post, the edits appear in the same VB post as well, without impacting VB replies to that bridged WP article.

Khashyar

Quote:
Originally Posted by XManuX View Post
Unexpected charset conversion pbr between Wordpress and vBulletin.
(I use Wordpress 2.7 but had also the pbr with 2.6.)

vBulletin (running for years) is using ISO 8859-1 and i had trouble with charset when publishing Wordpress post to vbulletin. Wordpress was configured for UTF-8 and i had to convert WP tables from UTF-8 to ISO and to set the charest to use into both wp-config.php and WP settings\reading\Charset.

Now everything is *almost* running fine :
- Creating a new post in Wordpress
- Publishing it in Wordpress
- Checking the posted version on vBulletin -> Characters with accents are OK "????..."

But something unexpected happens when editing Wordpress posts :
- Editing a previously published post
- doing some changes to the post (including Title and Post content itself) & publishing it again
- Post's characters are OK into WP, Post's title is OK in vB but characters with accents are not showing anymore into post's content in vB.

E.g. :
- Creating a WP post with title="testing (???)" and content="testing (???)" -> Ok in vBulletin.
- Opening this post into WP and modifying it : title="testing (???) - edit" and content="testing (???) - edit" -> title will display correctly into vB but post's content will display "testing (?) - edit"

Copy/paste of this text in a new post and publishing it works. editing a post doesn't.

Any ideas ?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01222 seconds
  • Memory Usage 1,772KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete