Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Complete Wordpress/Vbulletin Bridge - Share Users And Postings Details »
Complete Wordpress/Vbulletin Bridge - Share Users And Postings
Mod Version: 3.05, by Jafo232 (Coder) Jafo232 is offline
Developer Last Online: Nov 2018 I like it Show Printable Version Email this Page

This thread is in the Modification Graveyard.
vB Version: 3.6.8 Rating: (71 votes - 4.42 average) Installs: 1260
Released: 21 Dec 2006 Last Update: 16 Feb 2011 Downloads: 4381
Not Supported DB Changes Uses Plugins Additional Files  

DOES NOT WORK FOR Vbulletin 4.x

This version probably no longer works for Wordpress 3.x. I have started developing this product over and have released the NEW version here:

http://www.lampwrights.com/showthread.php?t=41

This mod bridges your Vbulletin users over to Wordpress. You can also use Vbulletin as your comment engine instead of the spammy one built into Wordpress. You can display the comments inline in your post. You need not use the comment feature, if your only interested in sharing users.

You can map your Vbulletin Usergroups to Wordpress Usergroups and those users will then be recognized as registered Wordpress users.

For example, user "Joe" registers at your forum and logs in. Joe then clicks on your Wordpress page. Joe is instantly added to the Wordpress user base with the permissions you set for his usergroup. In otherwords, if a user comes over belonging to the "Registered User" group, you can select that he is placed in the Wordpress "Subscriber" usergroup.

If you change a users group from vbulletin, it will automatically change in Wordpress.

Requirements:
  • DOES NOT and WILL NEVER support Wordpress MU.
  • Wordpress and Vbulletin scripts must reside on the same physical server.
  • Wordpress and Vbulletin must use the same domain name.
  • Stable Wordpress Version greater than or equal to 2.5.
  • If your WP login name is the same as your VB username, this user will NOT be ported! If this was the case, you could lose your WP admin rights if there was an error, or if you deactivated the plugin.
  • DOES work for Vbulletin 3.7.
Limitations:
  • Please don't ask if it works for any BETA versions of Vbulletin. I do not know and will not convert this to the latest version of VB (whatever it is at the time you are reading this) until the version is released as non-beta.
  • If you delete a user, you must do so in both Wordpress and Vbulletin.
  • If you are using XMLRPC to post with applications such as Windows Live Writer, you must change the password of the author in the WORDPRESS admin cp, after the user is ported over from VB. If you are not integrating users, then you do not have to.
  • Chances are, this will not work when VB and Wordpress are located in different sub domains. I.E. forum.yoursite.com - blog.yoursite.com. Cookie issue.
  • I did the best I could in determining your forums file path with the script. There may be certain script setups that cannot find the file path properly, in which case you may get errors that the script cannot find or open /config.php. If this is the case, please HARDCODE your ABSOLUTE path to the forum in vbridge.php.

    To do this find:


    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    And uncomment the last line, and change the path to your forums path:


    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

Common Mistakes When Installing:
  • Using two different host names causes problems. If your forum URL contains www.yourdomain.com, then your wordpress blog URL MUST contain the www. part of www.yourdomain.com also. This goes for any other host name. Browsers are finnecky when it comes to cookies (as they should be).
  • Editors generally EDIT, not write. In Wordpress, editors don't show up in the post author drop down. This has nothing to do with this plugin, that is Wordpress code.
  • Make sure you DO NOT create a subdirectory for this plugin in the wp-content/plugins directory. Just upload it directly there.
  • If the admin username in Vbulletin is the same as the one in Wordpress (i.e. Admin), that user will NOT be able to login to the WP dashboard.
  • If you do not map users before you turn auto-integrate on, the plugin has no idea whether your allowed into the dashboard.
  • If you all of a sudden can't login to the dashboard, see the above two common mistakes.
  • FOLLOW the directions and make a test post first. Being in a rush and not testing will most likely turn out bad for you.
  • When you create a test user in VB to test mapping users, the test user MUST have an email address. If a VB users email address is blank, they will not map.
UPDATES:

01/03/2007 - Fixed the unlock_tables() issue on some setups.

01/03/2007 - Fixed a bug in the script that if you used a MySQL database prefix, integration would not work. Please see this post for more information! Special thanks to axisoverdrive for giving me access to his server and letting me troubleshoot the issue!

01/05/2007 - Fixed issue where if a user saved (not published) and published later, the post would not be added to the forum.

01/05/2007 - When a post is edited, it will also be edited in the forum.

01/08/2007 - Modified slightly so when posts are edited, so are the titles (if edited).

02/07/2007 - Major modifications to new version (now 2.05). The list follows:
  • Reworked the code so it uses the $vbulletin object throughout the code especially during the bridging process.
  • Users are bridged whether they checked the "Remember Me" box or not.
  • Removed a couple of SQL calls that became redundant.
  • Addressed a bug where if a user logged out of the dashboard, it only logged them out of VB.
  • Added Inline Comments capability. Comments posted to the forum (using VB for comments) will now appear at the bottom of a WP Post when viewing the post.
  • Author user names can now be linked to their VB profile page if desired.
  • Added option to turn off posting to forum. All this really does is remove the "Select Forum To Post To" option when writing a post. (There you go AxisOverdrive )
  • The $vbulletin object should now be available in all templates and most plugins.
  • Fixed a bug where deactivating any plugin would semi deactivate this plugin.
  • With the reduction in SQL calls, and the removal of now unnecessary variables, speed and memory use should be improved.
  • PLEASE READ THE UPGRADE INSTRUCTIONS IF UPGRADING!
07/17/2007
  • Fixed problem where upload iframe was a bit mangled.
  • Fixed problem where users had to refresh the dashboard once after logging in.
  • Fixed problem that arose from Wordpress 2.2.1 upgrade that would not allow activation.
  • Fixed logout issue where users would still be logged into Wordpress.
  • When a Wordpress post is deleted, so is the thread it created.
  • Added option to allow thread posted from Wordpress article to be truncated, with a linkback to the article.
  • Fixed issue when user re-activates plugin, and vb_threadid column already exists. Now checks for column first.
  • Removed a stray VB_Init() call.
  • Forums that do not allow threads will not be selectable in the drop down menu when writing a post.
  • Forums are listed out in a parent/child nested pattern.
  • (Note: 367 downloads of version 2.05)
11/29/07 - 3.00
  • 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.
  • Modified from BETA so that the new functions_wysiwyg2.php file is loaded using the WP ABSPATH constant. Requires the plugin to stay in the plugins directory.
  • Fix an error message when a post was deleted in VB, then edited in WP.
12/10/07 - 3.01
  • Fixed two <? tags that should have been <?php (pointed out by Amenadiel)
03/31/08 - 3.02
  • Fixed media-upload clash for new version of Wordpress (2.5).
  • Added fix that will now delete threads in VB when the post is deleted in WP and not using Ajax delete.
  • Added code to insert a default email address if VB users email address is blank upon bridging.
04/20/08
  • Fixed a bug in user roles for the new version 2.5.1 of Wordpress.
05/08/2008
  • Fixed issue where CSS was munging scrolling text box when selecting a forum during a post
  • Fixed an issue where content encoding was getting screwey between WP and VP creating a lot of unintended characters (only on PHP installs where utf8_decode() exists (most)).
05/08/2008
  • Fixed issue where post count of a user did not change
Sites Using This Plug-In:(PM me if you want to add your site here)

Special Thanks:

axisoverdrive - Debugging Help, Kyraal - Paypal Donation, Kalina - Paypal Donation, Wildcard27 - Paypal Donation, Shri - Paypal Donation, pspcrazy - Paypal Donation, Tomahoochi - Paypal Donation.

If you use this plug-in, and find it useful, please support us by nominating us for Mod Of The Month (MOTM) in the top right corner of this thread, or feel free to donate.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Integration with vBulletin Complete Wordpress/Vbulletin Bridge - Share Users And Postings Jafo232 vBulletin 3.7 Add-ons 359 07 Mar 2012 15:18
vBulletin-WordPress Bridge rsuplido vBulletin 3.0 Full Releases 201 27 Oct 2008 21:23
Integration with vBulletin VBulletin-Wordpress Bridge for 3.64 imranbaig vBulletin 3.6 Add-ons 53 22 Mar 2008 17:41

  #676  
Old 27 Nov 2007, 08:36
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Great news!
Reply With Quote
  #677  
Old 27 Nov 2007, 08:39
Clayton's Avatar
Clayton Clayton is offline
 
Join Date: Nov 2004
Originally Posted by Jafo232 View Post
While I am at it, I am adding support for multiple databases (i.e. wordpress in one db, VB in another)...
wow oh wow Jafo

if you achieve this then you will certainly be sent a donation

this is absolutely superb news and I shall eagerly await

great stuff
Reply With Quote
  #678  
Old 27 Nov 2007, 08:44
WEBclay's Avatar
WEBclay WEBclay is offline
 
Join Date: Aug 2006
Location: Switzerland
Real name: Manuel Merz
Fantastic news Jafo, thanks for this great work
Reply With Quote
  #679  
Old 27 Nov 2007, 08:53
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Well, I will have a BETA up in my forum tomorrow. I have been running tests on it, but want to try a few fresh installs. Had to update some of the template edits (nothing too major).

I am almost positive it is multi-db capable, however the entire stumbling block on this to begin with is not so much with the scripting, as it is with certain installations of PHP from which I understand only allow one connection to a database per instance. This may be for older installs as I do not seem to have the issue on the latest PHP5..

As for the xmlrpc feature, I seemed to have gotten that to work too, with a hitch. It requires that you change users passwords in WP via the admincp before it will work. Probably would require a VB plugin to work around that, and honestly, I am not sure if there is such a demand... Basically, the issue is, WP just takes the password and runs it through md5() and saves it. Vbulletin on the other hand does an md5(md5(password . salt)) save.. Rather tricky on how to get the real password. I can only guess a plugin that will grab the users password via VB when they login and save it md5() to the WP database..

Well, that is all for the future.. I have a couple testers for tomorrow that will hopefully find any bugs that may be in the new code..
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
  #680  
Old 27 Nov 2007, 09:15
WEBclay's Avatar
WEBclay WEBclay is offline
 
Join Date: Aug 2006
Location: Switzerland
Real name: Manuel Merz
Another good news thanks I can do some test if you want as I have finished my wordpress theme and it should be working now Is there also a way to use the wp categories to post into different forums?
Reply With Quote
  #681  
Old 27 Nov 2007, 13:44
LBSources LBSources is offline
 
Join Date: Nov 2005
Real name: Lenny
Originally Posted by Jafo232 View Post
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

Learn About The Bronx, New York!
Reply With Quote
  #682  
Old 27 Nov 2007, 13:50
LBSources LBSources is offline
 
Join Date: Nov 2005
Real name: Lenny
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
__________________
.....
LBSources

Learn About The Bronx, New York!
Reply With Quote
  #683  
Old 27 Nov 2007, 17:30
Jafo232 Jafo232 is offline
 
Join Date: May 2004
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..
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
  #684  
Old 27 Nov 2007, 18:19
LBSources LBSources is offline
 
Join Date: Nov 2005
Real name: Lenny
Originally Posted by Jafo232 View Post
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
__________________
.....
LBSources

Learn About The Bronx, New York!
Reply With Quote
  #685  
Old 27 Nov 2007, 18:23
Jafo232 Jafo232 is offline
 
Join Date: May 2004
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..
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
  #686  
Old 27 Nov 2007, 18:33
Jafo232 Jafo232 is offline
 
Join Date: May 2004
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!
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
  #687  
Old 27 Nov 2007, 18:36
Jafo232 Jafo232 is offline
 
Join Date: May 2004
As for what has changed:

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.
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
  #688  
Old 27 Nov 2007, 18:36
LBSources LBSources is offline
 
Join Date: Nov 2005
Real name: Lenny
Originally Posted by Jafo232 View Post
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..
__________________
.....
LBSources

Learn About The Bronx, New York!
Reply With Quote
  #689  
Old 27 Nov 2007, 19:19
WEBclay's Avatar
WEBclay WEBclay is offline
 
Join Date: Aug 2006
Location: Switzerland
Real name: Manuel Merz
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
Reply With Quote
  #690  
Old 27 Nov 2007, 19:21
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Do you have an error message in your servers error log?
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 18:50.

Layout Options | Width: Wide Color: