Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Complete Wordpress/Vbulletin Bridge - Share Users And Postings Details »»
Complete Wordpress/Vbulletin Bridge - Share Users And Postings
Version: 4.01.13, by Jafo232 Jafo232 is offline
Developer Last Online: Oct 2022 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.8.1 Rating:
Released: 02-13-2009 Last Update: 02-15-2011 Installs: 1331
DB Changes Uses Plugins
Additional Files  
No support by the author.

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:

Download Now

File Type: zip vbridge.zip (200 Bytes, 545 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
m7sen, xuanhuy238

Comments
  #1032  
Old 02-20-2010, 12:56 PM
Demo16 Demo16 is offline
 
Join Date: Sep 2006
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK now it works tnx but I got one problem.

For example if I have a post which has a vb author and I click on the authors name the page can't find all the post of this author, only says:

Nothing Found
There are currently no posts in this section, please check back again later.

the problem is that my permalink use also the author name so category/post/author for this reason I got all blank pages.

Any clue why? mapping problem?
Reply With Quote
  #1033  
Old 02-22-2010, 12:03 AM
pujabrang pujabrang is offline
 
Join Date: Jun 2009
Location: uk
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does it support 3.8.4???
Reply With Quote
  #1034  
Old 02-25-2010, 06:51 AM
CriStaS CriStaS is offline
 
Join Date: Apr 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, thank you for your plugin!

Found a bug (at least for me)...

VB with restricted access (all forums are closed, authorised access only) + public WP:

Logged user have no problems.
Unauthorised user can see only "white screen" on WP page.

Short research and I found solution (hack) inside vb/global.php :

We have (~ 1000 line):
PHP Code:
...
if (!(
$vbulletin->userinfo['permissions']['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
        
$allowed_scripts = array(
                
'register',
                
'login',
                
'image',
                
'sendmessage',
                
'subscription',
                
'ajax'
        
);
        if (!
in_array(THIS_SCRIPT$allowed_scripts))
        {
                if (
defined('DIE_QUIETLY'))
                {
                        exit;
                }
                else
                {
                        
print_no_permission();
                }
        }
        else
        {
... 
We need:
PHP Code:
...
if (!(
$vbulletin->userinfo['permissions']['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
        
$allowed_scripts = array(
                
'register',
                
'login',
                
'image',
                
'sendmessage',
                
'subscription',
                
'ajax'
        
);
        if(
THIS_SCRIPT == 'vbridge')
        {
                
#vbridge unauth hack...
        
}
        elseif (!
in_array(THIS_SCRIPT$allowed_scripts))
        {
                if (
defined('DIE_QUIETLY'))
                {
                        exit;
                }
                else
                {
                        
print_no_permission();
                }
        }
        else
        {
... 
The hack :
PHP Code:
        if(THIS_SCRIPT == 'vbridge')
        {
                
#vbridge unauth hack...
        
}
        else 
checks if current caller is vbridge and passes global without auth tests.

I know that it isn't good way, but I don't have much time to fix this in a right way...

P.S. vB v3.8.4, WP 2.9.2, vbridge 4.01.13

By the way. It works on domain (WP) and sub.domain (VB) for me with small hack too...
Reply With Quote
  #1035  
Old 02-26-2010, 10:25 AM
caracena caracena is offline
 
Join Date: Apr 2006
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Demo16 View Post
OK now it works tnx but I got one problem.

For example if I have a post which has a vb author and I click on the authors name the page can't find all the post of this author, only says:


Nothing Found
There are currently no posts in this section, please check back again later.

the problem is that my permalink use also the author name so category/post/author for this reason I got all blank pages.

Any clue why? mapping problem?
Althou in my case everything is working, I have the same problem but that is becouse "Find all posts from this user" searchs for WP posts. You would need to change the code in WP so it points to the user's posts in vB (like when you see at users statistics in vB)

Quote:
Originally Posted by pujabrang View Post
does it support 3.8.4???
Yes.

Quote:
Originally Posted by CriStaS View Post
Hello, thank you for your plugin!

Found a bug (at least for me)...

VB with restricted access (all forums are closed, authorised access only) + public WP:

Logged user have no problems.
Unauthorised user can see only "white screen" on WP page.

Short research and I found solution (hack) inside vb/global.php :

We have (~ 1000 line):
PHP Code:
...
if (!(
$vbulletin->userinfo['permissions']['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
        
$allowed_scripts = array(
                
'register',
                
'login',
                
'image',
                
'sendmessage',
                
'subscription',
                
'ajax'
        
);
        if (!
in_array(THIS_SCRIPT$allowed_scripts))
        {
                if (
defined('DIE_QUIETLY'))
                {
                        exit;
                }
                else
                {
                        
print_no_permission();
                }
        }
        else
        {
... 
We need:
PHP Code:
...
if (!(
$vbulletin->userinfo['permissions']['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
        
$allowed_scripts = array(
                
'register',
                
'login',
                
'image',
                
'sendmessage',
                
'subscription',
                
'ajax'
        
);
        if(
THIS_SCRIPT == 'vbridge')
        {
                
#vbridge unauth hack...
        
}
        elseif (!
in_array(THIS_SCRIPT$allowed_scripts))
        {
                if (
defined('DIE_QUIETLY'))
                {
                        exit;
                }
                else
                {
                        
print_no_permission();
                }
        }
        else
        {
... 
The hack :
PHP Code:
        if(THIS_SCRIPT == 'vbridge')
        {
                
#vbridge unauth hack...
        
}
        else 
checks if current caller is vbridge and passes global without auth tests.

I know that it isn't good way, but I don't have much time to fix this in a right way...

P.S. vB v3.8.4, WP 2.9.2, vbridge 4.01.13

By the way. It works on domain (WP) and sub.domain (VB) for me with small hack too...
All you need to do (I think) is map the users right from vB to WP. Make the group "Registered Users" from vB as Subscribers in WP but before that, install a plugin in WP that will let you set permissions based on WP user groups. WP doesn't really cares for your vB privacy settings so if you get blank pages, I'm sure you have something wrong with the bridge installation.
Reply With Quote
  #1036  
Old 02-27-2010, 01:32 AM
spwolf spwolf is offline
 
Join Date: Feb 2010
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stephan Whelan View Post
Thanks for your help previously but we've only just got round to restesting this. Even though we disabled all other plugins we still get the same error:

[Wed Feb 17 20:09:23 2010] [error] [client xx.xx.xx.xx] PHP Fatal error: Cannot redeclare get_userdatabylogin() in /home/xxxxx/xxxxx/blogs/wp-content/plugins/functions_vbbridge.php on line 3, referer: http://blogs.xxxxx.com/wp-admin/plug...us=all&paged=1

Any more ideas?
same here, disabled everything and still same error...
Reply With Quote
  #1037  
Old 02-28-2010, 10:12 AM
caracena caracena is offline
 
Join Date: Apr 2006
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi all,

After playing with WP and this plugin for like two months or so, I finally opend it to the public... The forum was already running and only changed the skin (first try to make one lol).

If you care to look at it, please send me a comment with your thoughts.

http://www.pescaydevolucion.com (fly fishing site in spanish)

PS: Didn't use vB for comments... just users and avatars customly and proportionally sized . Sorry it's in Spanish :P
Reply With Quote
  #1038  
Old 02-28-2010, 07:27 PM
caracena caracena is offline
 
Join Date: Apr 2006
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi all,

WP doesn't have a tracking system by itself so I decided to use a plugin called WassUp. It tracks visitors on your site and offers statistics as a widget. I can confirm that displays vBulletin users navigating the WP site with their usernames and all

Ima so hapy!
Reply With Quote
  #1039  
Old 02-28-2010, 09:35 PM
Quantnet Quantnet is offline
 
Join Date: Nov 2006
Location: NYC
Posts: 649
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by caracena View Post
Hi all,

After playing with WP and this plugin for like two months or so, I finally opend it to the public... The forum was already running and only changed the skin (first try to make one lol).

If you care to look at it, please send me a comment with your thoughts.

http://www.pescaydevolucion.com (fly fishing site in spanish)

PS: Didn't use vB for comments... just users and avatars customly and proportionally sized . Sorry it's in Spanish :P
i looked at your site and since it's in Spanish, i can't understand much.

I like to know how you get the avatar to display in WP from the user's VB avatar.

Do you store avatar in database or in file?
Reply With Quote
  #1040  
Old 03-01-2010, 01:22 AM
PlayersBay PlayersBay is offline
 
Join Date: Oct 2009
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have an urgent problem with my site using wp-vb integration.

Suddenly the integration stopped working, have no clue why.

My site goes blank on wp part if I keep plugin installed, shows again when I put wordpress bridge functions off (but than my users can't access wordpress part).

I would appreciate help ASAP. $25/hour.
Reply With Quote
  #1041  
Old 03-01-2010, 09:41 AM
naoneo naoneo is offline
 
Join Date: Nov 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To everyone who wants to access the CURRENT users avatar.
Instead of
PHP Code:
/image.php?u=<?php echo $reply['userid'?>
Use
PHP Code:
/image.php?u=<?php echo $userid get_option('vbb_VBUSERID'); ?>
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:39 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05565 seconds
  • Memory Usage 2,405KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (8)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete