vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Integration with vBulletin - Complete Wordpress/Vbulletin Bridge - Share Users And Postings (https://vborg.vbsupport.ru/showthread.php?t=134521)

LBSources 11-27-2007 11:44 AM

Quote:

Originally Posted by Jafo232 (Post 1390109)
Just a note, I am working on this plugin this week. I have already addressed many of the issues here and believe I have fixed most.

While I am at it, I am adding support for multiple databases (i.e. wordpress in one db, VB in another)..

Unfortunately, there seems to be a new function in either VB or WP (guessing WP) called sanitize_url. It causes conflicts and fatal errors when posting. I have rectified the issue by creating a clean version of functions_wysiwyg.php where just the function name (and its calls) are changed. I saw no other way around it.

I also am hoping to add support for posting via xmlrpc, i.e. Microsofts Live Writer and other such applications..

I will be working on this off and on during the week. Hope to have something for you all soon..

Jaffo great to see you back here ..

LBSources 11-27-2007 11:50 AM

Jaffo,

It seems though after installing this plugin and changing my encoding in WP to ISO-8859-1 that When I make posts they all come up with ??? where the " and ' punctuation marks are.. These ?? go into the WP and VB posts.

When I set WP encoding to UTF-8, then punctuation shows up as ?* in VB posts

My environmental settings are below.

VB 3.6.8 patch level 2
WP 2.3.1
PHP version 5.2.4
MySQL version 5.0.45-community

Any help is appreciated as its basically eliminating the object of the plug in. :( I have to go back to the WP post and VB post to make the corrections.

Definitely glad youre back and on track with this great hack again.

LBS

Jafo232 11-27-2007 03:30 PM

Sounds like your encoding is different than usual. You need the encoding to be the same on VB and WP. It may be in your case that you are using utf-8..

LBSources 11-27-2007 04:19 PM

Quote:

Originally Posted by Jafo232 (Post 1390375)
Sounds like your encoding is different than usual. You need the encoding to be the same on VB and WP. It may be in your case that you are using utf-8..

Jaffo :)

As I said.. Im not using UTF-8 in VB, as the default is ISO-8859-1; I havent changed that. All I have changed is the wordpress from UTF-8 to ISO-8859-1.

When I make posts they all come up with ??? where the " and ' punctuation marks are.. These ?? go into the WP and VB posts.

When I set WP encoding to UTF-8, then punctuation shows up as ?* in VB

Jafo232 11-27-2007 04:23 PM

Not sure why. Try changing your template in WP as a test, and see if the matter is resolved. It may also be an issue with your server. You may want to check and see what the default encoding is on your web server (if apache, check httpd.conf). Ideally, you will want these to be the same.

For everyone else.. Packaging up BETA now..

Jafo232 11-27-2007 04:33 PM

For all of you to TEST, I have added the vbridgeIII-BETA.zip file to the modification (see very first post)...

Remember, it is BETA, so go easy on me if there are any bugs...

P.S. Don't forget to read the readme.txt!

Jafo232 11-27-2007 04:36 PM

As for what has changed:

Quote:

Added TABLE_PREFIX throughout the script instead of the get_option('vbb_VBPRX') call. get_option('vbb_VBPRX') is now deprecated.

Addressed path issues by establishing $vwd first. If for some reason there are path issues on an install, the path only needs to be manually changed once, at the beginning of the script.

Removed call to admin_db.php which seems to no longer be necessary.

Changed all queries to the VB database to be handled by the $vbulletin object. This should facilitate multiple database configurations.

Added limited XMLRPC support.

Had to include a basic copy of the functions_wysiwyg.php file (functions_wysiwyg2.php) with a minor change in the sanitize_url function (now sanitize_vburl) as it conflicts with a new WP function of the same name. Otherwise, this is identical to the VB release. This was necessary to keep formatting somewhat uniform between the two.

Removed unnecessary globals.

Changed the global.php call so it always loads. $vbulletin should be available throughout the code (via global in functions).

Edited some code around wysiwyg functions of VB, and conversions to vbcode.

Added "Turn Plugin On" option.

Fixed an issue with the forum list on the "Write Post" page. Default forum was not being auto selected in some cases.

LBSources 11-27-2007 04:36 PM

Quote:

Originally Posted by Jafo232 (Post 1390396)
Not sure why. Try changing your template in WP as a test, and see if the matter is resolved. It may also be an issue with your server. You may want to check and see what the default encoding is on your web server (if apache, check httpd.conf). Ideally, you will want these to be the same.

For everyone else.. Packaging up BETA now..

Thanks Jafo .. Will look into it now..

WEBclay 11-27-2007 05:19 PM

I still got the blank page after submitting the post in WP. Tables are in my vbulletin database and everything else works, just not the posting so I am not able to test if the post goes to my forums :(

Jafo232 11-27-2007 05:21 PM

Do you have an error message in your servers error log?


All times are GMT. The time now is 12:44 AM.

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.02074 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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