Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
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
  #692  
Old 07-15-2009, 02:56 PM
nando99 nando99 is offline
 
Join Date: Dec 2005
Location: South Florida
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WouterN View Post
Ok, here is a working solution for the folks that get this error:

PHP Code:
Fatal errorCannot redeclare get_userdatabylogin() (previously declared in /var/www/domain.com/html/wp-includes/pluggable.php:166in /var/www/domain.com/html/wp-content/plugins/functions_vbbridge.php on line 33 
Put this in your vbbridge.php file (can be at the top):

PHP Code:
update_option('vbb_VBPLUGION'1); 
After you have refreshed your site you can comment that line out again.

Hope this helps! It worked for me.
So that definitely fixed it but it keeps happening... Is it ok to just leave the fix in?
Reply With Quote
  #693  
Old 07-16-2009, 12:21 PM
MisterLaO MisterLaO is offline
 
Join Date: Dec 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi... where can i find comment.php?? the comment.php in my custom theme doesnt have the texts to find...
Reply With Quote
  #694  
Old 07-17-2009, 09:59 AM
cihangir's Avatar
cihangir cihangir is offline
 
Join Date: Oct 2001
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting this error, when trying to post an article.

Warning: require_once(DIR/includes/functions_newpost.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/xxx.net/forum/includes/class_dm_threadpost.php on line 18

Any idea, what to do is?
Reply With Quote
  #695  
Old 07-19-2009, 03:22 PM
wicked80 wicked80 is offline
 
Join Date: Feb 2008
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Big Thanks Jafo for the great great plugin !!!

OK, I saw lot's of posts asking for login/logout/avatar etc for wordpress and I needed the same and couldn't find one and so I coded one with my limited php knowledge here it is for you guys...

Credits:
Basically, this is a simpler version of this plugin:
Name: Deluxe vB User login and access control on non vB pages
URL: https://vborg.vbsupport.ru/showthread.php?t=173698

I do not wish to take any credits from the original author - Billspaintball and all credits go to Billspaintball.

Code:
Code:
<div>
				<?php 
				global $vbulletin,$vbphrase,$pmbox,$reply,$db;

				$forumurl = get_option('vbb_VBURL');//forumurl should not have a trailing slash e.g. http://www.mysite.com/forum
				
				if (!$vbulletin->userinfo['userid']) { ?>
				

				<form action="<?php echo $forumurl; ?>/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
				  <input type="hidden" name="do" value="login" />

				  <input type="hidden" name="url" value="/" />
				  <input type="hidden" name="vb_login_md5password" />
				  <input type="hidden" name="vb_login_md5password_utf" />
				  <input type="hidden" name="s" value="$session[sessionhash]" />
				  <input type="hidden" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" />
				  <label>Username: <input name="vb_login_username" type="text" id="login" tabindex="1" class="bginput" accesskey="u"/></label><br>
				  <label>Password: <input name="vb_login_password" type="password" id="password" tabindex="1" class="bginput" /></label><br>
				  <input name="submit" type="submit" id="submit" tabindex="1" value="Login" accesskey="s" class="button" />

				</form>

				<?php 
				// Display text and link to register and lost password.
				echo "<br /><a href=\"".$forumurl."/register.php?s=$session[sessionhash]\"	target=\"_parent\"><b>Register Now</b></a>";
				echo " | ";
				echo "<a href=\"".$forumurl."/login.php?do=lostpw\"	target=\"_parent\"><b>Forgot Password</b></a>";
				

				}else{ 

				echo "Welcome Back, <b>";
				echo "<a href=\"$forumurl/member.php?u=";
				echo $vbulletin->userinfo['userid'];
				echo "\">";
				echo $vbulletin->userinfo['username']; 
				echo "</a><br />";


                           ?> 
				<img src="<?php echo $forumurl; ?>/image.php?u=<?php echo $vbulletin->userinfo['userid'] ?>&amp;dateline=<?php echo TIMENOW ?>" alt="<?php echo $reply['username'] ?>'s Avatar" class="avatar avatar-32 photo avatar-default" width="150" height="150" />
				<?php
				echo "<br />";

				//display logout link
				echo "<a href=\"$forumurl/login.php?$session[sessionurl]do=logout&amp;logouthash=$logouthash";
				echo $vbulletin->userinfo['logouthash'];
				echo "\">";
				echo "<font size=\"1\" face=\"verdana\">Log Out</font></a><br />";
				
				// Display last visit time and date
				echo "You last visited: $pmbox[lastvisitdate] at $pmbox[lastvisittime]";
				echo "<br />";

				// Display PM Details and generate link to PM box
				echo "<a href=\"$forumurl/private.php?$session[sessionurl] \">Private Messages: </a> $vbphrase[unread_x_nav_compiled] $vbphrase[total_x_nav_compiled]";
				echo "<br />";
				
				} ?>			
</div>
Installation:
Just copy-paste that code into your template where you would like to display the login/logout/register box. Style it as per your theme.
Note: The forumurl which you configured while installing vbbridge should not have a trailing slash e.g. http://www.mysite.com/forum.In case it does, then remove / from the code after each $forumurl occurence.

Screenshot:


To Do:
Presently after logout, it redirects to the forum logout screen. It would be nice to redirect the user back to the same page.

Other:
You can check the original plugin and also add some more advanced features to the login box e.g. new posts since last login.
Attached Images
File Type: jpg loginplugin.JPG (16.1 KB, 0 views)
Reply With Quote
  #696  
Old 07-20-2009, 04:00 AM
undeadloktar undeadloktar is offline
 
Join Date: Jul 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those of you getting the login blank page for Wordpress go to VB Options on your board and change the cookie setting to / has to be / for it to work. Pulled my hair out over the issue and now it works.
Reply With Quote
  #697  
Old 07-20-2009, 02:13 PM
nyplaya47's Avatar
nyplaya47 nyplaya47 is offline
 
Join Date: May 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this plugin. I'm looking to integrate my blog and forum and hopefully this will help me do so.
Reply With Quote
  #698  
Old 07-21-2009, 07:41 PM
nando99 nando99 is offline
 
Join Date: Dec 2005
Location: South Florida
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

weird problem... I set up a certain user group to be authors and they can login and post and everything... but the author always comes back the same - the vb user with id of #1... even me now, when I post as my vb user/login it comes up as vb user id#1... anyone have any idea wtf is going on? lol
Reply With Quote
  #699  
Old 07-21-2009, 07:56 PM
creativepart creativepart is offline
 
Join Date: Jun 2006
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nando99 View Post
weird problem... I set up a certain user group to be authors and they can login and post and everything... but the author always comes back the same - the vb user with id of #1... even me now, when I post as my vb user/login it comes up as vb user id#1... anyone have any idea wtf is going on? lol
That's what happens. Mine the author shows correctly in draft form, but when I publish it then the Author changes. Also, when I edit someone else's post it changes the author as well.

The only way I've found around is to manually change it in the WP database after the fact.

Obviously, not a good work around.
Reply With Quote
  #700  
Old 07-22-2009, 12:36 AM
MisterLaO MisterLaO is offline
 
Join Date: Dec 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can anybody help me where to find comment.php please??
Reply With Quote
  #701  
Old 07-22-2009, 01:12 PM
nando99 nando99 is offline
 
Join Date: Dec 2005
Location: South Florida
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This sucks.... willing to pay for a fix.. I posted it on https://vborg.vbsupport.ru/showthread.php?t=219141...
Reply With Quote
Reply

Thread Tools

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 10:59 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.05926 seconds
  • Memory Usage 2,353KB
  • 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
  • (3)bbcode_code
  • (2)bbcode_php
  • (2)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
  • (2)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