vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Integration with vBulletin - Complete Wordpress/Vbulletin Bridge - Share Users And Postings (https://vborg.vbsupport.ru/showthread.php?t=134521)

yoyoyoyo 01-01-2007 03:21 AM

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 01-02-2007 09:22 PM

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 01-03-2007 11:01 AM

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 01-03-2007 01:09 PM

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:

Code:

define('NOSHUTDOWNFUNC', true);
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 01-03-2007 02:27 PM

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 01-03-2007 02:28 PM

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 01-03-2007 03:07 PM

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?

https://vborg.vbsupport.ru/showpost....9&postcount=60

Jafo232 01-03-2007 03:58 PM

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:

Code:

$sql = "SELECT * FROM user WHERE userid=" . intval($vbulletin->GPC[COOKIE_PREFIX . userid]) . " AND MD5(CONCAT(password, '". COOKIE_SALT ."')) = '" . addslashes($vbulletin->GPC[COOKIE_PREFIX . password]) . "'";
And changing it to:

Code:

$sql = "SELECT * FROM " . TABLE_PREFIX . "user WHERE userid=" . intval($vbulletin->GPC[COOKIE_PREFIX . userid]) . " AND MD5(CONCAT(password, '". COOKIE_SALT ."')) = '" . addslashes($vbulletin->GPC[COOKIE_PREFIX . password]) . "'";
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 01-05-2007 02:35 PM

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 01-08-2007 01:34 AM

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.


All times are GMT. The time now is 04:04 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.02049 seconds
  • Memory Usage 1,746KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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