vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=134521

Complete Wordpress/Vbulletin Bridge - Share Users And Postings
by Jafo232
21 Dec 2006 19:49

1 Attachment(s)
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.

sanereddy 21 Dec 2006 21:14

thanks a lot... setting up tonight

redlabour 21 Dec 2006 21:17

Great !

Mark Wegner 21 Dec 2006 21:23

I have an existing wordpress install and I'd like to add vbulletin as the comment system using this bridge. Is there an installation script I can use to automatically add all my wordpress posts as vbulletin posts? And also to add all the users registered i wordpress to vbulletin?

Thanks, and nice bridge!

Mark

Jafo232 21 Dec 2006 21:35

Quote:

Originally Posted by Mark Wegner (Post 1143018)
I have an existing wordpress install and I'd like to add vbulletin as the comment system using this bridge. Is there an installation script I can use to automatically add all my wordpress posts as vbulletin posts? And also to add all the users registered i wordpress to vbulletin?

Thanks, and nice bridge!

Mark

Hmm, no. This is for new wordpress posts meaning it will not affect your old posts. Users already registered with Wordpress will have to register with vbulletin (or login if they are already registered).

TheBlackPoet 21 Dec 2006 22:55

i will be getting this tonight when i get home... and wordpress.... thanks in advance

Oddjob 22 Dec 2006 01:15

Id love to see a running example of this....

CBrown 22 Dec 2006 02:12

wow.. Great. Going to install and give it a go. I've got just the thing...

lexx27 22 Dec 2006 02:35

Great hack

I have a small problem. Im in the middle if the installation where I have to do the test post.

The problem is that wp when I press publish downloads post.php instead of posting the test post. When I deactivate the plugin everything is working again,

+bug: When I deactivate and then activate again the plugin a database error for duplicated columns appears.

Jafo232 22 Dec 2006 03:02

Quote:

Originally Posted by lexx27 (Post 1143189)
Great hack

I have a small problem. Im in the middle if the installation where I have to do the test post.

The problem is that wp when I press publish downloads post.php instead of posting the test post. When I deactivate the plugin everything is working again,

+bug: When I deactivate and then activate again the plugin a database error for duplicated columns appears.

What version of Wordpress are you using?

lexx27 22 Dec 2006 03:04

2.0.5

Jafo232 22 Dec 2006 03:05

When you open the file you download, what does the file say in a text editor?

lexx27 22 Dec 2006 03:10

Well it is an empty post.php :)

Jafo232 22 Dec 2006 03:12

Quote:

Originally Posted by lexx27 (Post 1143202)
Well it is an empty post.php :)

Does the post get posted to Vbulletin?

Do you have any other plugins installed? Especially any that work during the posting process?

lexx27 22 Dec 2006 03:41

1 Attachment(s)
No it doesnt get posted.

I have these plugins installed (the green are activated):

bada_bing 22 Dec 2006 04:39

Will this work on VB 3.5.3 ?

Jafo232 22 Dec 2006 06:29

Quote:

Originally Posted by lexx27 (Post 1143216)
No it doesnt get posted.

I have these plugins installed (the green are activated):

Hmm, not sure. I haven't had any other reports of this. My assumption is, it is conflicting with another plugin.

Jafo232 22 Dec 2006 06:30

Quote:

Originally Posted by bada_bing (Post 1143232)
Will this work on VB 3.5.3 ?

I would think so. I havent tested on .3, but I do not see why it wouldn't.

projectego 22 Dec 2006 10:24

/me clicks install

010081 22 Dec 2006 12:41

thankx just installed let lee how it works.

lexx27 22 Dec 2006 14:13

Thanks for the help. I will make some tests and report the conflict. :)

bang 24 Dec 2006 12:30

installed. but how is it different from this hack?

axisoverdrive 25 Dec 2006 00:09

This is a fantastic plugin! Thanks for all the great work, Jafo232. I've been waiting for a plugin like this for months, and i even tried to get one developed myself (never got done).

I installed your plugin, and i can create posts/ make comments perfectly fine. one thing i'm having trouble with is that if I login via vBulletin, Wordpress does not currently show that i'm logged in with that vbulletin account. Wordpress still gives me the "click here to login" link, which forwards me back to the forum. Sounds like a cookie issue, but i'm not certain. Thoughts?

Thanks in advance!

PS. Also, i've noticed that the newly created user in vbulletin does not show up in the user list for wordpress, and vice versa. Using vb 3.6.2 and wordpress 2.0.5

Sulquendi 25 Dec 2006 10:28

Pretty nice hack :)

Only problem for me right now : i have cleaned up my cookies and now i cannot access the admin panel of wordpress, the login button redirect me to vbulletin (i've already signed up on vbulletin !) and accessing admin panel directly with /wp-admin redirects me also on the boards -_-.

Any idea ?

klaush 25 Dec 2006 17:46

First of all "Merry XMAS" to all of you!

If you need this bridge for sharing the user-database of vb with wp, this hack is not useable. I donīt know if itīs a cookie-problem or something else!

We need the sharing of the user-database of vb with wp as priority in a short time.

So is anyone able to solve this?

Weīll pay up to 50 Euro if it works without any problems for 3.5.6 and wp 2.05.

Thanks!

Jafo232 26 Dec 2006 05:31

Quote:

Originally Posted by bang (Post 1144390)
installed. but how is it different from this hack?


This one works, and also shares user info.

Jafo232 26 Dec 2006 05:33

Quote:

Originally Posted by klaush (Post 1144915)
First of all "Merry XMAS" to all of you!

If you need this bridge for sharing the user-database of vb with wp, this hack is not useable. I donīt know if itīs a cookie-problem or something else!

This is not true, it does work. You must make sure you turn on the setting ""Turn Auto-Integrate" on. The WP and VB scripts MUST reside on the same domain name so they can share cookies.

If you made any edit to the standard cookie setup on Vbulletin, then perhaps you may experience issues, but otherwise you should be all set.

gilshafir 26 Dec 2006 10:37

As soon as I turn auto-integrate on my rss2 feed breaks, is anyone else having the same problem?

Jafo232 26 Dec 2006 14:51

Quote:

Originally Posted by abcdefgary (Post 1145186)
When you say that the WP and VB scripts must reside on the same domain name, what exactly does this mean? That both of these must be the same? So www.domain.com/forums and www.domain.com/blog

Thanks.

Yes, those are the same domains.

Harley D 26 Dec 2006 18:20

I am using VB 3.5.4
WordPress 2.05
VB & WP are on 2 different domains, on the same server but different databases. I have hard codded the RELATIVE file directory to VB.
I'm getting errors, and just a note, I don't care if my users share logins from WP to VB. I just want my posts in WP to post to VB.
With that out of the way, here are the errors I get.
There errors show after when clicking on the WP Vbridge user settings.
1) WordPress database error: [Table 'wagnert_wrdp1.srtcalib_usergroup' doesn't exist]
SELECT * FROM srtcalib_usergroup

2) Warning: Invalid argument supplied for foreach() in /home/myblogdomain/public_html/blog/wp-content/plugins/vbbridge.php on line 199

And this error when posting:
1) Fatal error: Cannot redeclare is_valid_email() (previously declared in /home/myblogdomian/public_html/blog/wp-content/plugins/email/email.php:301) in /home/myforumdomain/public_html/forum/includes/functions.php on line 640

Is there a way remove the necessary portions of code to prevent these errors? and still have the WP posts, post in VB?

Thanks for the hack, been wanting this one for a long time.

Jafo232 26 Dec 2006 18:30

Quote:

Originally Posted by Harley D (Post 1145368)
I am using VB 3.5.4
WordPress 2.05
VB & WP are on 2 different domains, on the same server but different databases. I have hard codded the RELATIVE file directory to VB.

As it states in the lead post in this thread, they BOTH MUST reside in the same database.

You need not be on the same domain IF, and only IF, you just want to use it as a comment bridge.

Rss problem
by gilshafir
26 Dec 2006 20:51

This is at the end of my rss file:

</rss>
<br />
<b>Fatal error</b>: Call to a member function unlock_tables() on a non-object in <b>/home/mysite/public_html/forum/includes/functions.php</b> on line <b>4998</b><br />

Jafo232 26 Dec 2006 21:45

Quote:

Originally Posted by abcdefgary (Post 1145411)
Hmm, I'm having a hard time getting the comments to work, I don't mean sharing users, but this code right here in the readme file:



Do I need to turn the auto-integrate thing on after I insert this code? thanks.

Do not turn auto-integrate on until comments work!

Jafo232 27 Dec 2006 00:24

Quote:

Originally Posted by abcdefgary (Post 1145485)
no, no, no. I tested it and wrote a post, which automatically wrote that same post in my forums.

However, I want to now display how many comments there are for that thread and display the link to the thread. But I keep getting an error whenever I insert the code in the readme file in.

What error do you get?

axisoverdrive 27 Dec 2006 01:09

Quote:

Originally Posted by Jafo232 (Post 1145154)
This is not true, it does work. You must make sure you turn on the setting ""Turn Auto-Integrate" on. The WP and VB scripts MUST reside on the same domain name so they can share cookies.

If you made any edit to the standard cookie setup on Vbulletin, then perhaps you may experience issues, but otherwise you should be all set.

Hey Jafo,

Yep. both wordpress and vb are under the same domain, and share the same database. Posting comments from WP to VB works fine. The only problem is the user databases aren't shared, and the WP login link forwards to VB, despite VB not having the same user accounts as WP. Therefore, if "auto integrate" is turned on, there's no way to get into the WP Admin page anymore.

Any ideas on what may be causing hte conflict? Anything i should check?

Thanks!

axisoverdrive 27 Dec 2006 05:31

Quote:

Originally Posted by abcdefgary (Post 1145575)
<?php
}
##End Vbridge Replacement

Note, if you deactivate the vbridge plugin, you must remove this code.
?> <?php edit_post_link(__('Edit This')); ?>[/code]

and in the end, I get a Parse Error :confused:

Hey, abcefgary -- try removing the "Note, if you deactivate the vbridge plugin, you must remove this code." and see if you still get that same parse error.

SaN-DeeP 28 Dec 2006 02:14

great work Jafo gonna test this now.

axisoverdrive 28 Dec 2006 06:13

Has anyone gotten the plugin to work perfectly yet? If so, could you post a link to your functioning site?

Thanks!

Jafo232 29 Dec 2006 01:08

Quote:

Originally Posted by axisoverdrive (Post 1145546)
Hey Jafo,

Yep. both wordpress and vb are under the same domain, and share the same database. Posting comments from WP to VB works fine. The only problem is the user databases aren't shared, and the WP login link forwards to VB, despite VB not having the same user accounts as WP. Therefore, if "auto integrate" is turned on, there's no way to get into the WP Admin page anymore.

Any ideas on what may be causing hte conflict? Anything i should check?

Thanks!

The users must login via Vbulletin. When those users then go to the wordpress page, they should be logged in under the same username as they have in VB.

Jafo232 29 Dec 2006 01:09

Quote:

Originally Posted by abcdefgary (Post 1145654)
thanks! that works perfectly.

I have two more questions, though, sorry.

1.) Is there any way to "grab" the comments from the thread in vBulletin and post them in the comments.php ?
2.) Is there a "most commented post" plugin I could display in the sidebar if I use vBridge?

Thanks.

#1 - No. You either use the comment code (That you replaced in your template file) or not. If you choose not to use it, then comments will be like they always were.

#2 - I have no idea.

Daria 31 Dec 2006 04:17

Hi,

I just installed this and am having the same problem as everyone else. The posting to forums works wonderful. However, I am not able to access the wp-admin panel. It just sends me back to vbulletin.

Even when I manually type in the address to /wp-admin or /wp-login.php, I'm redirected back to vbulletin. This also happens even after I've cleared all the cookies so it doesn't seem to be a cookie issue. I think something is not redirecting correctly.

Both WP and VB are installed on the same domain and database. If anyone knows what I may be doing wrong please let me know. Thanks :)

Jafo232 31 Dec 2006 04:22

Quote:

Originally Posted by Daria (Post 1147841)
Even when I manually type in the address to /wp-admin or /wp-login.php, I'm redirected back to vbulletin. This also happens even after I've cleared all the cookies so it doesn't seem to be a cookie issue. I think something is not redirecting correctly.

Both WP and VB are installed on the same domain and database. If anyone knows what I may be doing wrong please let me know. Thanks :)

When you say you cleared cookies, did you THEN login to Vbulletin before you went back to your wp-admin pages? Did you login with the "Remember Me" ticked?

Daria 31 Dec 2006 04:25

Hi Jafo,

Yes I did log into vbulletin afterwards, however, I do not believe I had the remember me checked. I'll try that and see if it works.

Edit: Okay, tried that and it still does not allow me access to the wp admin panel.

Jafo232 31 Dec 2006 04:41

For those having issue, please let me know what version of VB and WP you are using.. And links would be nice (to your forum and WP).

Daria 31 Dec 2006 04:45

Quote:

Originally Posted by Jafo232 (Post 1147852)
For those having issue, please let me know what version of VB you are using.. And links would be nice (to your forum and WP).

I have the latest VB 3.6.4 and WP 2.0.5. My forums are located here and the wp installation is located here. I have not disabled the plugin yet so it is still running.

Jafo232 31 Dec 2006 04:46

Checking now..

Jafo232 31 Dec 2006 04:50

Did you map the users before you auto-integrated?

Daria 31 Dec 2006 05:06

Quote:

Originally Posted by Jafo232 (Post 1147857)
Did you map the users before you auto-integrated?

Hi Jafo,

I replied to your pm but yes I did do the mapping. There were a couple I did not map because there was no reason to such as the unregistered and banned users.

daystorm 31 Dec 2006 06:10

When I turn the user integration on, I receive this error and the users are not being integrated.

Fatal error: Call to a member function unlock_tables() on a non-object in /home/admin/domains/bostonerotic.net/public_html/board/includes/functions.php on line 4802

Thank you in advance for your help.

Jafo232 31 Dec 2006 18:45

Quote:

Originally Posted by daystorm (Post 1147884)
When I turn the user integration on, I receive this error and the users are not being integrated.

Fatal error: Call to a member function unlock_tables() on a non-object in /home/admin/domains/bostonerotic.net/public_html/board/includes/functions.php on line 4802

Thank you in advance for your help.

What version of WP and VB are you using?

yoyoyoyo 01 Jan 2007 05:21

I am using VB 3.6.4 and WP 2.5.0, both using the same database

Posts made in WP post to the proper forum, etc., however when I try to logout of WP it takes me to vb and gives me an error:
Quote:

An error occurred while attempting to log you out. Click here to log out.
If I log out of VB and then go to WP it still shows me as logged in.

Also- WP visitors comments don't seem to be posted to vb - is this normal?

Also- after installing this, whenever I activate a new plugin, I get this error:

Quote:

WordPress database error: [Duplicate column name 'vb_threadid']
ALTER TABLE wp_posts ADD vb_threadid INT(10)

Fatal error: Call to a member function on a non-object in /home/mysite/public_html/forum/includes/functions.php on line 1732

yoyoyoyo 02 Jan 2007 23:22

another thing I just noticed. When logging in as admin from another computer it will not allow me to go to the "site admin" link in vb - it takes me to the forum index if I click the "site admin" link. I uninstalled it at this point it seems to be pretty buggy, but I am looking forward to more development for this WP plugin.

Jafo232 03 Jan 2007 13:01

Ok I am unable to recreate the issues the few of you are having and I have this installed on three different servers. If you have such issues, the only real way I would be able to do anything about it is to have access to your server via FTP so I can see it first hand.

Jafo232 03 Jan 2007 15:09

On my servers, the unlock_tables() error did not show up on the pages themselves, however, I was able to find it in the server logs. This allowed me to isolate the error.

You can either download the latest version and replace it, or just add this line right after the <?php tag in the vbridge.php file:


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

I am curious if this might have affected some installations if this error message was sent before any cookie info was shot to the browser.

axisoverdrive 03 Jan 2007 16:27

Thanks, Jafo!

Unfortunately, nothing seems to have changed. Just wondering -- i've also got phpBB and Menalto Gallery installed on the same server. Could they be interfering with this bridge at all?

chatfan 03 Jan 2007 16:28

Had a few problems: if you save /edit a post before you publish it would not show up in the forum. And anything I edited would not be edited in the forum, but i guess thats pretty logical. All my posts where posted as guest btw, assumed it would be under my own name when logged in. Never assume i guess :P

Other then this, it worked well.

But moved to vBDrupal, the template integration is brilliant.

Jafo232 03 Jan 2007 17:07

Quote:

Originally Posted by axisoverdrive (Post 1149908)
Thanks, Jafo!

Unfortunately, nothing seems to have changed. Just wondering -- i've also got phpBB and Menalto Gallery installed on the same server. Could they be interfering with this bridge at all?

http://www.vbulletin.org/forum/showp...9&postcount=60

Jafo232 03 Jan 2007 17:58

I think I found the issue. I could have sworn I did this originally but the code simply wasn't there.

I forgot to add TABLE_PREFIX to a SQL call to the VB database, so basically it could not find any users IF you used a database prefix on your VB install.

This is why it did not affect everyone.

You can either download and replace with the latest plugin (no need to deactivate), or you can edit the code by finding this line in vbbridge.php:


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

And changing it to:


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

This should take care of it.

Please NOTE! 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.

Jafo232 05 Jan 2007 16:35

Added a couple things today. Fixed the problem where if you saved, and published later, the script would not post to the forum.

When you edit a WP post, it will automatically be edited in the forum.

Misuzu 08 Jan 2007 03:34

So would this plugin not work if your forum and wordpress were on different subdomains?

Say your WP is on http://domain.com and your vB was on http://forums.domain.com.

Kalina 08 Jan 2007 10:10

Quote:

Originally Posted by Misuzu (Post 1153184)
So would this plugin not work if your forum and wordpress were on different subdomains?

Say your WP is on http://domain.com and your vB was on http://forums.domain.com.

I am using subdomains and it works, but I am having trouble getting it to add users.

daystorm 08 Jan 2007 11:48

I am using the new wordpress and vb 3.6.4...

Quote:

Originally Posted by Jafo232 (Post 1148147)
What version of WP and VB are you using?


Jafo232 08 Jan 2007 13:42

Make sure you have the latest version of this mod, 2.03.

Kyraal 08 Jan 2007 16:00

Quote:

Originally Posted by Jafo232 (Post 1151349)
When you edit a WP post, it will automatically be edited in the forum.

Would it be possible to have it also edit the thread title in the forum? As it is now I have to go in and manually change it after having e.g. corrected a typo in, or changed the WP post title completely.

Jafo232 08 Jan 2007 17:56

Quote:

Originally Posted by Kyraal (Post 1153636)
Would it be possible to have it also edit the thread title in the forum? As it is now I have to go in and manually change it after having e.g. corrected a typo in, or changed the WP post title completely.

Yes, I could probably do that. When I get a chance this week, I will look into it.

Kyraal 08 Jan 2007 19:13

Quote:

Originally Posted by Jafo232 (Post 1153726)
Yes, I could probably do that. When I get a chance this week, I will look into it.

Thank you, that would be extremely useful. Sent a little donation as encouragement to keep supporting this really useful mod. Emphasis on "little", as I'm a bit low on cash now after the holidays ;)

Jafo232 08 Jan 2007 19:34

Quote:

Originally Posted by Kyraal (Post 1153802)
Thank you, that would be extremely useful. Sent a little donation as encouragement to keep supporting this really useful mod. Emphasis on "little", as I'm a bit low on cash now after the holidays ;)

Thanks for the donation, I appreciate it!

I modified it today so that titles should also change the title when you edit a post. I tested it quite a bit and it appears to be working just fine. Let me know if you have any issues.

To upgrade, just replace the old version with the new version. DO NOT deactivate!

shri 09 Jan 2007 10:19

I've set the users map up as follows

VB Admins - WP Admins
VB Moderators - WP Editor
VB Registered Users - WP Authors

Unfortunately, the admins get added in the default group, which is a subscriber.

Some initial code review leads me to this line in /wp-includes/registration_functions.php


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

I can then see some attempts to change the capabilities in the vbbridge.php file

But I still end up with everyone being setup as a subscriber - ( a:1:{s:10:"subscriber";b:1;} )

Any clues on what I might be doing wrong or overlooking?

Great mod, drop me a note if you want to do a Wordpress MU version of this, would be happy to help with the $s.

Jafo232 09 Jan 2007 13:57

Quote:

Originally Posted by shri (Post 1154403)
I've set the users map up as follows

VB Admins - WP Admins
VB Moderators - WP Editor
VB Registered Users - WP Authors

Unfortunately, the admins get added in the default group, which is a subscriber.

What is your admins primary usergroup in VB?

shri 09 Jan 2007 15:26

Administrators in both cases.


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


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


Jafo232 09 Jan 2007 15:40

1 Attachment(s)
Quote:

Originally Posted by shri (Post 1154563)
Administrators in both cases.

So your VB map settings (for the Administrators ug) looks like this?:

shri 09 Jan 2007 15:55

Jafo, yep thats what it looks like.

shri 09 Jan 2007 15:58

Jafo, I'm going to bed now (its past mid night where I am). Will put some debugging statements into the code and update tommorrow.

Jafo232 09 Jan 2007 16:48

Quote:

Originally Posted by shri (Post 1154589)
Jafo, I'm going to bed now (its past mid night where I am). Will put some debugging statements into the code and update tommorrow.

Please provide me with a complete screenshot of the mapping page (just the page, not the URL or other site identifying data).

shri 10 Jan 2007 04:50

Sorted the problem out.

Related to a bug in Wordpress that hasn't been addressed in a long time.

The capabilities column in the prefix_wp_option table inherits the prefix .. so it is not wp_capabilities, but it is prefix_capabilities.

In my case, I had to change the sql statements which manipulated the wp_capabilities row to


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


scotch12 10 Jan 2007 08:13

Hi, quick question.

This mod was tested with Wordpress 2.0.6 or was it only with 2.0.5 ?

Jafo232 10 Jan 2007 13:21

Quote:

Originally Posted by scotch12 (Post 1155265)
Hi, quick question.

This mod was tested with Wordpress 2.0.6 or was it only with 2.0.5 ?

2.0.5, however, it should work with 2.0.6. I will be testing to verify this week, but since there are no WP code edits, this should work just fine.

Sergio de la To 13 Jan 2007 08:57

vB 3.6.4 (http://www.ojodigital.com/revista/foro/)
WP 2.0.6 (http://www.ojodigital.com/revista/)

Users OK
Post OK
BUT Comments doesn't work :( Wordpress and vBulletin comments are independent

What i have to do?

Urban-Desi 13 Jan 2007 14:10

Quote:

Originally Posted by Sergio de la To (Post 1157813)
vB 3.6.4 (http://www.ojodigital.com/revista/foro/)
WP 2.0.6 (http://www.ojodigital.com/revista/)

Users OK
Post OK
BUT Comments doesn't work :( Wordpress and vBulletin comments are independent

What i have to do?

same for me!

Im running vB 3.6.4 and WP 2.0.6

Iv also mapped the users but some reason WP does not list the users from the Forum in the users list & also if a user is logged into vbulletin and then access the blogs to post a comment, it says you need to log in? Why's that?

And if some one posts a reply in the forum for the blog, shuddnt that comment show up on the blogs page aswell? That would be nice as i made a reply on the forum, went to the blog and said 0 comments. :(

Jafo232 13 Jan 2007 16:18

First of all, did you read the directions completely? You have to edit your WP template to handle the new comments. PLEASE READ THE DIRECTIONS IN THE readme FILE!

rootnik 16 Jan 2007 04:28

*clicks install*

Thanks!

apokphp 16 Jan 2007 18:58

Will this hack allow each user to have their own blog page? That is, instead of all blog entries by all users being displayed on a "main page", I'm looking for a way for each user to have their own blog and blog page, and be integrated with vb's user db.

axisoverdrive 17 Jan 2007 05:42

Jafo,

you've done an outstanding job. The plugin is working marvelously.

A feature that would be nice: right now, at the bottom of each post, there is a vbridge menu prompting to post in a particular forum or "Do not post in a forum". Could this be moved to the Options panel, so that we can toggle forum comments on or off universally, so we don't need to worry about it on a post-by-post basis?

I guess some users may want the flexibility of choosing the forum they want the post to show up in. So maybe just a comments toggle on/off switch in the options panel, and then if it's "on", it'll give you the forum selection choice when writing a post? is this an easy thing to implement?

Thanks, Jafo!

Jafo232 17 Jan 2007 15:48

Quote:

Originally Posted by apokphp (Post 1160712)
Will this hack allow each user to have their own blog page? That is, instead of all blog entries by all users being displayed on a "main page", I'm looking for a way for each user to have their own blog and blog page, and be integrated with vb's user db.

No, this will not do that. You could set it up so each user could write articles on the blog, but it will not setup a new blog for each user.

Jafo232 18 Jan 2007 19:57

Quote:

Originally Posted by axisoverdrive (Post 1161147)
Jafo,

you've done an outstanding job. The plugin is working marvelously.

A feature that would be nice: right now, at the bottom of each post, there is a vbridge menu prompting to post in a particular forum or "Do not post in a forum". Could this be moved to the Options panel, so that we can toggle forum comments on or off universally, so we don't need to worry about it on a post-by-post basis?

I guess some users may want the flexibility of choosing the forum they want the post to show up in. So maybe just a comments toggle on/off switch in the options panel, and then if it's "on", it'll give you the forum selection choice when writing a post? is this an easy thing to implement?

Thanks, Jafo!

Thanks for your kind words!

I am a bit busy at the moment, but I will be getting back to this plugin soon, I will see if I can add it.

I think you will be able to do this by finding this code:


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

And changing it to:


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

I think you will also have to find this code:


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

And change it to:


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

That is just a quick guess reviewing my code.

axisoverdrive 20 Jan 2007 18:02

Hi Jafo,

Thanks for the reply. Unfortunately, that code change doesn't seem to have done anything to cancelling the "post to a forum" operation. :(

Kalina 22 Jan 2007 21:16

Quote:

Originally Posted by Jafo232 (Post 1147852)
For those having issue, please let me know what version of VB and WP you are using.. And links would be nice (to your forum and WP).

Thanks. My issue is it's not adding users when they visit, it did work for one, said he was logged in, he posted and it made the post as me. Also, I can't get into my wordpress admin, I am taken to my forum homepage.

I am using vbulletin 3.6.4 and wordpress 2.0.7

Forum: http://www.webtalkforums.com/
Blog: http://blog.webtalkforums.com/

Any ideas why it's not adding users would be great. Thank you.

Jafo232 23 Jan 2007 01:52

I "think" the problem here is that one is at www.yourdomain and the other is at blog.yourdomain. Is there anyway you can make the blog something like www.yourdomain.com/blog/ ?

Also, are you using the latest version of this mod? It has changed quite a bit.

Kalina 23 Jan 2007 02:04

Quote:

Originally Posted by Jafo232 (Post 1165371)
I "think" the problem here is that one is at www.yourdomain and the other is at blog.yourdomain. Is there anyway you can make the blog something like www.yourdomain.com/blog/ ?

Also, are you using the latest version of this mod? It has changed quite a bit.

Hi Jafo, Thanks for checking it out, it just added you as a user. I did think maybe the subdomain is a problem, I can try it the other way. I'll let you know how it goes and yes, I am using the latest download. :)

Jafo232 23 Jan 2007 02:06

If you get stuck, pm me your AIM screenname and I will give you a hand. I should be on until 11pm or so.

Kalina 23 Jan 2007 02:13

Quote:

Originally Posted by Jafo232 (Post 1165379)
If you get stuck, pm me your AIM screenname and I will give you a hand. I should be on until 11pm or so.

Thanks very much. I changed the url and it just added me as well and I got into my admin. That's a good sign! :)

Jafo232 23 Jan 2007 02:38

Quote:

Originally Posted by Kalina (Post 1165381)
Thanks very much. I changed the url and it just added me as well and I got into my admin. That's a good sign! :)

Yeah, I had a feeling the sub domains might cause cookie issues. I hope it all worked out!

iGlobe.Com.Cn 23 Jan 2007 04:24

thanks a lot... setting up tonight

Jafo232 23 Jan 2007 04:44

Quote:

Originally Posted by iGlobe.Com.Cn (Post 1165468)
thanks a lot... setting up tonight

Great, if it works out, please click install! ;)

d8tabyte 23 Jan 2007 16:23

I am having an issue when I write a post - I get the following error, when I go back and edit it, it will give me the same error and post a new thread, instead of appending the previous. This was working fine and then it just stopped...

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 719904 bytes) in /public_html/forum/includes/class_dm_forum.php on line 19

I am using 2.04 version of the hack and 3.6.4 vb

Jafo232 23 Jan 2007 16:30

This sounds like an issue with your server. Your PHP install seems to be running out of memory.

Probably have to bump up your "memory_limit" setting in your php.ini file and then restart your webserver.

Not much I can do for you there.

d8tabyte 23 Jan 2007 16:42

Yeah I fixed it by putting this into the .htaccess

php_value memory_limit 24M

Just odd that it would happen out of the blue

axisoverdrive 24 Jan 2007 19:20

Hey Jafo,

Does this plugin jive with the new Wordpress 2.1?

Thanks!

Jafo232 24 Jan 2007 21:07

Quote:

Originally Posted by axisoverdrive (Post 1166527)
Hey Jafo,

Does this plugin jive with the new Wordpress 2.1?

Thanks!

Unsure, I will be upgrading my wordpress's tomorrow, so I will let you know if there are any conflicts. I do not think there will be, but will let you know.

thebluelizard 25 Jan 2007 02:03

I'm confused here. How is anyone getting this working in it's current form? I'm running WP 2.0 and it wasn't working. I looked through the code and found these lines:


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

I actually don't know how that's even working for anyone, because the links to activate the plugin are in the format ?action=activate. So, there's no activate GET variable as far as I can tell. I change those lines to this and it's working fine for me:


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

Maybe it requires register_globals on? In which case, that's a no-no, as it encourages insecure programming practices. Just want to make sure everything's secure for everyone :)


All times are GMT. The time now is 13:59.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.