vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - Complete Wordpress/Vbulletin Bridge - Share Users And Postings (https://vborg.vbsupport.ru/showthread.php?t=205388)

Jafo232 02-13-2009 10:00 PM

Complete Wordpress/Vbulletin Bridge - Share Users And Postings
 
1 Attachment(s)
Identical to this Mod here, but now for the Vbulletin 3.8 line.
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.7.
  • DOES work for Vbulletin 3.7.
  • Does work for vBulletin 3.8.
Limitations:
  • Does not work for 4.x. Why? Because VB 4.x does not work for me. If they ever make that product worth a shit, I might support it.
  • 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.
  • Does not work with XMLRPC.
  • 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:

    Code:

    ## If you are having path problems, uncomment this next variable and define the path
    ## NO TRAILING SLASH!
    # $vwd = '/some/path/to/your/forum';

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

    Code:

    ## If you are having path problems, uncomment this next variable and define the path
    ## NO TRAILING SLASH!
    $vwd = '/some/path/to/your/forum';

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 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.
UPDATES:

Changelog is included in download, here is the most recent changes:

3/09/2009
  • Added code to process scheduled posts
  • Addressed code where links and images would not show up properly in VB
  • Added new table called vb_forumid for scheduled posts
  • Reduced redundant calls when dealing with forum excerpts
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.

If you do install:


Jafo232 02-14-2009 09:14 PM

Reserved....

Jon_Simmonds 02-14-2009 09:37 PM

Taged, usefull for a upcoming project :)

Bradley_Wint 02-14-2009 09:45 PM

good stuff man.. always a fan of this product

AzzX 02-14-2009 10:00 PM

Upgraded and is working well.

Thanks Jafo.

skariko 02-14-2009 10:13 PM

With this new version the user that logging in into Wordpress site must be redirect to /wp-admin?
It is possible to choose this option? 'cause i don't like that they have two different profile (on /wp-admin and on the forum)?

zachb 02-14-2009 10:14 PM

Will install and check it out. I had to remove the old one because my WP got all screwy, btu i appreciate the mod a lot! Hopefully I will keep this on. Thanks!

zb

Jafo232 02-14-2009 10:21 PM

Quote:

Originally Posted by skariko (Post 1744288)
With this new version the user that logging in into Wordpress site must be redirect to /wp-admin?
It is possible to choose this option? 'cause i don't like that they have two different profile (on /wp-admin and on the forum)?

Not sure what you mean here.. If the user logs into WP or VB, then they are logged into both.

laztrix 02-14-2009 10:22 PM

My Forum is on a subdomain installed.

Forum adress : http://subdomain.domainname.com
Wordpress adress : http/subdomain.domaniname.com/portal

Forum URL: http://subdomain.domainname.com
Forum Relative Path: /
Database Prefix: There is No ! ( I left it blank )

When I run it for test I got this error:

HTML Code:

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

I also tried to give the path : /var/www/vhosts/domainname.com/subdomains/forum';

What do I wrong ?

Jafo232 02-14-2009 10:24 PM

Quote:

Originally Posted by laztrix (Post 1744293)
My Forum is on a subdomain installed.

Forum adress : http://subdomain.domainname.com
Wordpress adress : http/subdomain.domaniname.com/portal

Forum URL: http://subdomain.domainname.com
Forum Relative Path: /
Database Prefix: There is No ! ( I left it blank )

When I run it for test I got this error:

HTML Code:

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

I also tried to give the path : /var/www/vhosts/domainname.com/subdomains/forum';

What do I wrong ?

Hmm, that's a new one.. Sounds like you might have a plugin in VB causing the issue, try:

uncomment this line in vbbridge.php:

Code:

# define('DISABLE_HOOKS', true);

jcodemasters 02-14-2009 10:31 PM

thanks, I will test now

skariko 02-14-2009 10:32 PM

Quote:

Originally Posted by Jafo232 (Post 1744292)
Not sure what you mean here.. If the user logs into WP or VB, then they are logged into both.

Sorry you are right :)

I mean when that when you login into Wordpress and press "ok" you are automatically redirect to domain/wp-admin and i don't like it so much :)

laztrix 02-14-2009 10:55 PM

Ok, after that that error disappear.But now, I can not login with my login information altought I did not made any changes.

When I login to Vbulletin and try to reache /wp-admin it says:

You have not enougth privilage to acess this page.

Jafo232 02-14-2009 10:56 PM

WP treats usernames case sensitive, so if logging in via WP, remember that, otherwise, login to VB..

joeymuk 02-14-2009 11:13 PM

Users don't appear to be integrating..

I did the test post wordpress side and it created the thread in vb fine, though when I joined vb the user didn't come to wordpress. Also it appears that there may be a bug because after the "test" post, wordpress had "test" "test" "test".. 3 articles but only one was real and working. (don't know if it's my theme)

Btw I mapped the users in wordpress to the group and followed your steps, not sure why the users aren't going to wp. awesome to see it updated!
~Joey

P.s Would it be possible to provide a few plugins for wordpress, such as logging in, latest posts from vb, etc

P.s.s Sorry how would Insert vb into wordpress? could you add an option for that please or let me know how I can

-edit-

I'm ever so sorry, I'm stupid. I didn't think i would have to click login from the wordpress side. seems users are working fine in wp :)

laztrix 02-14-2009 11:17 PM

I forgot to match the usergroups thats why I couldn't login..

Now it's seems to work fine at all!

I have some dificulties to bind a forum with wordpress but I think I'll figure it out.

Thank you for bringing this super plugin!

deepmartini 02-14-2009 11:21 PM

Hi, will this work the OTHER way around? Say a user registers via Wordpress, then goes to click on vbulletin forum. Will they be transported over via the database? Will they already be logged in? How can I get this plugin to work this way too? I have a wordpress membership site that users must register and signup via. I don't want them to have to sign up again via vbulletin and have duplicate entries. I also don't want to send them to vbulletin to sign up then have them resent back to Wordpress. How can I get this to work from signup on Wordpress and pushed into vbulletin? Many thanks for you help!!! I sincerely appreciate it. Warm Regards, Robert

deepmartini 02-14-2009 11:23 PM

I forgot to mention I am using the latest version of Wordpress 2.71 and latest version of vbulletin. Thanks!

myHybridcar.com 02-14-2009 11:29 PM

Thanks for the update :) I can't seem to figure out what variable to use to get vBulletin login information. The old readme.txt said $vbuser, but that's not right anymore. How can I check if a user is logged in, and if so get their info?

AzzX 02-15-2009 12:20 AM

Quote:

Originally Posted by deepmartini (Post 1744329)
Hi, will this work the OTHER way around? Say a user registers via Wordpress, then goes to click on vbulletin forum. Will they be transported over via the database? Will they already be logged in?

From Jafo's first post:
2/14/2009

* Rewrote most of the code to tie directly into the VB database for user authentication
* Fixed issue where asterisk would show up in posts.
* If a user exists in VB and in WP, they can now be bridged (VB user takes precedence)
* Users can now login/logout via WP or VB.
* Removed XMLRPC support, sorry all 1 users who ever requested it.
* Fixed code layout
* Rewrote instructions for inline comments.

Jafo232 02-15-2009 12:47 AM

Quote:

Originally Posted by joeymuk (Post 1744327)
I'm ever so sorry, I'm stupid. I didn't think i would have to click login from the wordpress side. seems users are working fine in wp :)

Ok, so we are all good here lol?

Jafo232 02-15-2009 12:48 AM

Quote:

Originally Posted by deepmartini (Post 1744329)
Hi, will this work the OTHER way around? Say a user registers via Wordpress, then goes to click on vbulletin forum. Will they be transported over via the database? Will they already be logged in? How can I get this plugin to work this way too? I have a wordpress membership site that users must register and signup via. I don't want them to have to sign up again via vbulletin and have duplicate entries. I also don't want to send them to vbulletin to sign up then have them resent back to Wordpress. How can I get this to work from signup on Wordpress and pushed into vbulletin? Many thanks for you help!!! I sincerely appreciate it. Warm Regards, Robert

It would be wise to disable registration in WP and just make the links to registration go to your VB registration.. The bridge does not share registrations in that way. Basically it is ONLY using the VB user tables and ignoring WP. If you deactivate the plugin, it goes back to using Wordpress (and the users that were there before you installed the plugin).

Jafo232 02-15-2009 12:50 AM

Quote:

Originally Posted by myHybridcar.com (Post 1744333)
Thanks for the update :) I can't seem to figure out what variable to use to get vBulletin login information. The old readme.txt said $vbuser, but that's not right anymore. How can I check if a user is logged in, and if so get their info?

Depends, usually if you just globalize the $vbulletin object, then you can use it like always:

Code:

global $vbulletin;

echo "Hi there " . $vbulletin->userinfo['username'];


joeymuk 02-15-2009 12:56 AM

Quote:

Originally Posted by Jafo232 (Post 1744399)
Ok, so we are all good here lol?

Yup,

Is there any chances of additional plugins for wordpress? user login, latest posts, who's online etc..
~Joey

P.s how would I go about getting vb inside my wordpress theme?

Thanks!

Jafo232 02-15-2009 01:04 AM

Quote:

Originally Posted by joeymuk (Post 1744410)
Yup,

Is there any chances of additional plugins for wordpress? user login, latest posts, who's online etc..
~Joey

P.s how would I go about getting vb inside my wordpress theme?

Thanks!

You can use the WP login already. :)

As for the rest, I will probably be doing that at some point soon, as I have a site that will need it.

As for getting VB into your WP theme, well, that is like asking where can I put nails in my house. :) Depends on where in your house and for what purpose. :P

Once the plugin is activated (auto-integrate), the $vbulletin object should be available to you just about everywhere. Just global $vbulletin; and you have it.

adairen 02-15-2009 01:24 AM

There seems to be a small editing bug:

- make a post in wordpress with a few images
- it shows up in the forum with the images shown
- edit the wordpress post
- images in forum do not show up anymore

any fix?

adairen 02-15-2009 01:36 AM

Also, are those the most updated instructions to use 'vb for comments'? I can't seem to find the comments.php file.

myHybridcar.com 02-15-2009 01:43 AM

Quote:

Originally Posted by Jafo232 (Post 1744404)
Depends, usually if you just globalize the $vbulletin object, then you can use it like always:

Code:

global $vbulletin;

echo "Hi there " . $vbulletin->userinfo['username'];


Thanks. What about if I want to use $vbulletin variables on a different directory that's in neither my Wordpress or vBulletin directories. Any way to make $vbulletin global there?

Jafo232 02-15-2009 04:09 AM

Quote:

Originally Posted by adairen (Post 1744427)
There seems to be a small editing bug:

- make a post in wordpress with a few images
- it shows up in the forum with the images shown
- edit the wordpress post
- images in forum do not show up anymore

any fix?

Yes, I see it now.. I added version 4.01 that should address this issue. Just upload the new vbbridge.php file.

Quote:

Originally Posted by adairen (Post 1744432)
Also, are those the most updated instructions to use 'vb for comments'? I can't seem to find the comments.php file.

I based this off of the default template because, well, there are about a million templates. Some template authors do not use a separate comments.php file. You may have to piece it together into your template. See wp-content/themes/default/comment.php for an example.

Jafo232 02-15-2009 04:09 AM

Quote:

Originally Posted by myHybridcar.com (Post 1744437)
Thanks. What about if I want to use $vbulletin variables on a different directory that's in neither my Wordpress or vBulletin directories. Any way to make $vbulletin global there?

Sure, include global.php. ;)

myHybridcar.com 02-15-2009 04:14 AM

Quote:

Originally Posted by Jafo232 (Post 1744544)
Sure, include global.php. ;)

I tried that. For some reason it would start outputting forum HTML. No idea why. Do you?

laztrix 02-15-2009 06:25 AM

I don't know what I'm doing wrong:

1. The WSIWYG editor dissappear ( Wordpress ) ( Is that normal ? )
2 Altought I type the forum ID, It could not import post into wordpress .

Captain Tycoon 02-15-2009 08:35 AM

Will this change the style of the Wordpress Blog to same one as the forum?

Fraik 02-15-2009 09:04 AM

Just one problem thus far. I use excerpts for my forum comment posting and for some reason the link looks like this:

http://www.middleearthcenter.com/unc...ed/%postname%/

It gets the category right, but it doesn't have the right URL for the post name

joeymuk 02-15-2009 11:22 AM

Quote:

Originally Posted by Jafo232 (Post 1744417)
You can use the WP login already. :)

As for the rest, I will probably be doing that at some point soon, as I have a site that will need it.

As for getting VB into your WP theme, well, that is like asking where can I put nails in my house. :) Depends on where in your house and for what purpose. :P

Once the plugin is activated (auto-integrate), the $vbulletin object should be available to you just about everywhere. Just global $vbulletin; and you have it.

Ah, I'm pretty new to vb.

I've found the global.php file, do I just add "$vbulletin;" to it somewhere? If you could provide me with steps I'd really appreciate. (I've never been so lost) lol

Thanks for the response, I noticed but I think an additional plugin for logging in would suite those who don't plan on keeping the normal wp one.

Example

Log In;
User Name
Password
*Remember Me
(Login Button)

Not registered?
Register now!

Forgot your password?

Logged In;
Welcome back ;user

My account
Admin Panel (*)
Mod Cp (*)
Profile
Latest Posts <-- Forum side.. "search.php?do=getnew")

Log Out

Thanks again,

DDIG 02-15-2009 11:57 AM

Quote:

Originally Posted by skariko (Post 1744301)
Sorry you are right :)

I mean when that when you login into Wordpress and press "ok" you are automatically redirect to domain/wp-admin and i don't like it so much :)

This is my problem as well. I want users to be able to log in, but after "OK" I want them to be redirected to Wordpress instead of the admin screen.

Same for logging out of wordpress. This redirects me to the Wordpress Login screen. Instead, after logging out, I want to redirect users to Wordpress instead of to the login screen.

I only want users to receive a logged-in status (both forum and wordpress) when logging into wordpress, and not have them redirect to admin screen. Exactly the same as logging into the forums. That too does *not* redirect a user to the adminscreen. I'd like to have Wordpress function in the same way. Log into wordpress: user is logged into vB and WP, and sees wordpress front-end. Log into vBulletin: user is logged into vB and WP and sees vBulletin front-end. Is this possible?

However, besides that it works great, and I would like to thank you very much for this bridge. Great work, thanks a lot! ;)

rcadden 02-15-2009 12:01 PM

Has anyone tried scheduled posts in Wordpress? I have my site setup so that new posts get published to wordpress, a corresponding forum thread is created, and then the comments from the forum thread are shown in place of the wordpress comments.

With the previous version of this plugin, the scheduled wordpress post would go up, but the corresponding forum thread was never created, thus readers were unable to comment. This was remedied by manually opening the published post and then publishing manually (which defeats the entire purpose of scheduled posts). This is a major issue for me.

Also, when you say you removed XMLRPC support, what does that exactly mean? I know what XMLRPC is, does that meant that if I wrote and published a post using XMLRPC, it would still show in wordpress, but not get a corresponding forum thread created?

Jafo232 02-15-2009 01:16 PM

Quote:

Originally Posted by myHybridcar.com (Post 1744546)
I tried that. For some reason it would start outputting forum HTML. No idea why. Do you?

No idea. It could be a plugin, you could try adding this code before the include:

Code:

define('DISABLE_HOOKS', true);

Jafo232 02-15-2009 01:18 PM

Quote:

Originally Posted by laztrix (Post 1744602)
I don't know what I'm doing wrong:

1. The WSIWYG editor dissappear ( Wordpress ) ( Is that normal ? )
2 Altought I type the forum ID, It could not import post into wordpress .

Import post INTO wordpress? This plugin does not do that. It will EXPORT a wordpress post to Vbulletin.

I have no idea why your WYSIWYG editor would disappear. Do you have a special non-stock version of the editor installed?

Jafo232 02-15-2009 01:18 PM

Quote:

Originally Posted by Captain Tycoon (Post 1744646)
Will this change the style of the Wordpress Blog to same one as the forum?

Um, no, no idea on how one would do that..


All times are GMT. The time now is 03:29 PM.

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.02272 seconds
  • Memory Usage 1,870KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_html_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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