vb.org Archive

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

Jafo232 04-29-2008 10:00 PM

Complete Wordpress/Vbulletin Bridge - Share Users And Postings
 







Identical to this Mod here, but now for the Vbulletin 3.7 line.
If you install this PLEASE
Click Install.

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:

    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 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)

UPDATE:

I have become really busy these days with my work. It will be some time before I can address this plugin. Please stop PM'ing me, I just don't have time. 99% of the time, your PM can be answered by just reading through the posts in this thread.

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:


Jasem 05-01-2008 10:21 AM

Thank you :)

rem-rael 05-01-2008 04:25 PM

I was waiting for this on 3.7. Thank you!

Jafo232 05-02-2008 11:24 AM

Your both welcome. :)

SEOvB 05-03-2008 02:22 AM

I'm using this on 3.7 and WP 2.5.1 but the box where you can choose another forum besides the default forum is extremely small and only shows 1 forum at a time?

I changed it to a drop down on my install by changing a line in the vbbridge.php file
Code:

<CENTER> Select Forum To Post To: <BR><select id="forumid" name="forumid" class="inputbox" size="5">
Change to
Code:

<CENTER> Select Forum To Post To: <BR><select id="forumid" name="forumid" class="inputbox">
Looks 100x better :D

Elmer 05-03-2008 03:59 AM

You said that with this mod the comments are posted to the forum, but I've created a post on wordpress, and the thread is created in my forums. Then I made a comment to the article using the comments box below the article in my wordpress site, but this comment doesn't get posted over my thread at my forum, just on the article in my wordpress installation.

So how should this work? I have to disable comments in wordpress and force users to post comments in the thread created?

boing 05-03-2008 05:08 AM

Thank you :)

Jafo232 05-03-2008 12:20 PM

Quote:

Originally Posted by Elmer (Post 1506422)

So how should this work? I have to disable comments in wordpress and force users to post comments in the thread created?

Actually, you need to read the readme about the template edits.

Jafo232 05-03-2008 12:22 PM

Quote:

Originally Posted by FRDS (Post 1506376)
I'm using this on 3.7 and WP 2.5.1 but the box where you can choose another forum besides the default forum is extremely small and only shows 1 forum at a time?

I changed it to a drop down on my install by changing a line in the vbbridge.php file
Code:

<CENTER> Select Forum To Post To: <BR><select id="forumid" name="forumid" class="inputbox" size="5">
Change to
Code:

<CENTER> Select Forum To Post To: <BR><select id="forumid" name="forumid" class="inputbox">
Looks 100x better :D

Yes, there is a new css value in the latest version of Wordpress that seems to set the size on select boxes. You can also change it in the css file.. When I get a chance, I will probably update the script so it manually bypasses any select definition in css.

SEOvB 05-03-2008 03:55 PM

Also, now whenever i attempt to login to my wordpress admin area, it automatically redirects me to my forums?

Not a clue on how to solve this one though :D Any help or idea's apprecaited.

Danoxth 05-03-2008 04:16 PM

Lovely stuff, just what I wanted. Will be installing later tonight :)

*Clicks install and nominated for MotM*

Jase2 05-03-2008 06:00 PM

Use lower case to pass validation ;)

Renkus 05-03-2008 07:15 PM

One problem. Some users can't login to WP. But they hasn't the same problem with VB login. I don't understand why...

SEOvB 05-04-2008 08:17 AM

check it out, when trying to login to the wordpress admin area of my site i get directly forwared to my forums. Is this intentional or did i miss something?

http://maddengods.org/wp-admin

And it just redirects right into my forums :sad:

Thanks

Brew 05-04-2008 02:13 PM

When trying to map the users to vB I get the following error:

Fatal error: Call to a member function query_read() on a non-object: {path} /wordpress/wp-content/plugins/vbbridge.php on line 308

Line 308 reads: $fs = $vbulletin->db->query_read($sql);

Any idea what to do?

One thing that is odd about this setup is that the other admin on the site put WordPress in a /wordpress directory and the forums in a /forums directory. Would this mess up the configuration of the bridge?

Jase2 05-04-2008 02:28 PM

Quote:

Originally Posted by FRDS (Post 1507825)
check it out, when trying to login to the wordpress admin area of my site i get directly forwared to my forums. Is this intentional or did i miss something?

http://maddengods.org/wp-admin

And it just redirects right into my forums :sad:

Thanks

Check your .htaccess file.

SEOvB 05-04-2008 04:59 PM

Nope, whenever i disable the plugin the problem isn't there?

Jafo232 05-05-2008 12:12 PM

You have to login via Vbulletin, that is why it puts you to your forum when you try to access the admin page. If you are logged in, then you did not map users properly. Disable the product (rename it), login to WP and then re-enable it (rename it back) and try again.

More help can be found here:

https://vborg.vbsupport.ru/showthread.php?t=134521

trigatch4 05-07-2008 01:03 PM

I thought everything was working easy as pie. I passed all the "tests"... the posting worked fine... mapping worked fine... integrated it and everything worked fine... templates worked fine.

And then when I restarted FireFox I got locked out. I'm pretty sure I followed all the steps. Seems that I'm pretty screwed right now and have no clue how to fix the problem. I set up a few admin accounts on my WP but can't access any of them and am afraid to add the corresponding admin users to vB for fear of locking myself out permanently.

When I "change the name" of the files I can log back in temporarily but cannot change the "settings" of the plugin.... it has to be activated to do that. And once I activate it, I am immediately logged out.

This is furhter complicated by the fact that I am about to hit the digg front page! HELPPPP!

Jafo232 05-07-2008 01:24 PM

You need to access WP by logging into your forum (with the vbbridge plugin activated) with a user that is an administrator (providing you mapped the administrator group properly). Make sure you check the box in VB to stay logged in. Then go to the wp-admin page directly. If it forwards you back to the forum then A. you did not map users correctly, or B. the username in VB is identical to one already created in WP, which will not map.

Otherwise, you have to edit the WP database and delete all options in the wp_options table who's option_name starts with vbb_.

sbisig 05-07-2008 03:51 PM

Quote:

Originally Posted by Elmer (Post 1506422)
You said that with this mod the comments are posted to the forum, but I've created a post on wordpress, and the thread is created in my forums. Then I made a comment to the article using the comments box below the article in my wordpress site, but this comment doesn't get posted over my thread at my forum, just on the article in my wordpress installation.

So how should this work? I have to disable comments in wordpress and force users to post comments in the thread created?

I just installed today and the same thing is happening to me.

I added the code to my index.php page as directed on the readme page under "IF YOU WANT TO USE VB For comments"

PHP Code:

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

is only on my index.php page. Should this also be on single.php and page.php for it work?

Lubricus 05-08-2008 12:17 AM

Hello I really like this plugin but I can't get it to work for certain custom works I have my forum in the root labeled forum.php I can't get the plugin to work this way is there a way.

Jafo232 05-08-2008 01:12 AM

Quote:

Originally Posted by sbisig (Post 1511744)
I just installed today and the same thing is happening to me.

I added the code to my index.php page as directed on the readme page under "IF YOU WANT TO USE VB For comments"

PHP Code:

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

is only on my index.php page. Should this also be on single.php and page.php for it work?

You would have to make the same edit for any page that displays comments of course. Not all templates use the same system that you are talking about.

Quote:

Originally Posted by Lubricus (Post 1512168)
Hello I really like this plugin but I can't get it to work for certain custom works I have my forum in the root labeled forum.php I can't get the plugin to work this way is there a way.

If you named it forum.php, chances are you will have to change it in the source code of the plugin.

Ohiosweetheart 05-08-2008 01:55 AM

well darn - and this AFTER I've moved back to vBa cmps :(

trigatch4 05-08-2008 07:46 AM

Jafo...

Got it working but the fact that I had created a few extra WP logins and vB logins in advance, expecting something to go wrong, was what saved me.

Jafo232 05-08-2008 03:34 PM

Fixed the issue with the scrolling text box on the post page, and also finally nailed (I think) the issue with funny characters (encoding).. The only thing you need to do to upgrade is upload the new vbbridge.php file. Have at it people.

Jafo232 05-08-2008 11:20 PM

Added another fix so users post count increases when a post is made.

Ky Kiske 05-10-2008 06:53 AM

Okay so this is killing me. I had this working on two different domains. But this seems weird. Now it doesn't work at all.

www.anime-journal.com and www.anime-roleaplay.com

BUT now that I restarted my browser it's a no go. I can't get into the admin on Wordpress. T_T Help a poor admin.

broadcaster 05-10-2008 04:35 PM

May be the post is not for that thread, but I'll give it a try. I came up with having to different codepages on my WP 2.3.1 and vB 3.7.0. Any advise on how to convert either one? Any plugins/tools?

TRR 05-11-2008 07:14 AM

Quote:

Originally Posted by Jase2 (Post 1508143)
Check your .htaccess file.

What exactly would we be searching for? I removed my htaccess file temporarily and I still get the redirect to the forums.



Quote:

Originally Posted by Jafo232 (Post 1511621)
If it forwards you back to the forum then A. you did not map users correctly, or B. the username in VB is identical to one already created in WP, which will not map.

Otherwise, you have to edit the WP database and delete all options in the wp_options table who's option_name starts with vbb_.


I am using a new website, with the forums at /en/forums and wordpress at /wordpress. I can get guest comments to post into vbulletin, but I can't get the login to work. I have tried mapping users and I don't get error messages, and I have a different account from the admin that I am trying to log in with. I also have the remember me button checked; it still doesn't work for me. :( I will keep trying.

TRR 05-11-2008 07:32 PM

I found out why I am having issues getting the two to bridge. My forum is at /en/forums, and so I had set cookies to be at /en (in anticipation of running multi forums). Since my wordpress was at /wordpress, there was a cookie issue.

TRR 05-11-2008 11:22 PM

I am using an htaccess to rewrite the URLs, but it causes smilies in the comments to break; the path changes to the rewritten URL. Any ideas?

ayoko555 05-12-2008 04:09 PM

Jafo, first I must say thanks for this awesome hack! Now I have a few noob questions

1) I did a few test posts on WP, the post does show up on VB, but how come it's not using the user name I have in VB? Here is a test post, please note the user "SC2Battle" is showing as Guest, but in fact, it's supposed to be my VB admin name. How come it's showing as guest?

2) What does "Excerpt Forum Post" mean? Sorry, English isn't my first language, I'm trying to understand this option.

Thanks a lot

Jafo232 05-12-2008 06:13 PM

What did you set for your default user settings? If this user does not exist and/or the user id is incorrect, the user will show as guest.

Excerpt means only show X amount of characters in the post, then provide a link to the article page.

powerful_rogue 05-15-2008 07:14 PM

For some reason its throwing up all these errors:

Quote:

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/thefreebie/G7F4API9/htdocs/freebies/wp-content/plugins/vbbridge.php on line 29
cannot include /home/thefreebie/G7F4API9/htdocs/freebies/wp-admin/global.php. You should check your path! Turning Plugin Off
Quote:

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/thefreebie/G7F4API9/htdocs/freebies/wp-content/plugins/vbbridge.php on line 29
EDIT

Ive managed to solve the two errors above (fingers crossed) however now ive got the following error:

Quote:

Warning: Cannot modify header information - headers already sent by (output started at [path]/freebies/wp-content/plugins/vbbridge.php:132) in [path]/freebies/wp-content/plugins/wp-postratings/wp-postratings.php on line 628

powerful_rogue 05-15-2008 09:00 PM

Ive managed to get rid of the errors by deactivating two of the plugins.

Ive followed the instructions, however when I post to wordpress it dosent show up on the forum. Ive checked and double checked and everything seems in order

TRR 05-16-2008 12:54 AM

Quote:

Originally Posted by TRR (Post 1516592)
I am using an htaccess to rewrite the URLs, but it causes smilies in the comments to break; the path changes to the rewritten URL. Any ideas?

I am still having this issue. Also, in my comments section (thread created in vbulletin), the link to the blog isn't working; here is the issue in the url:
Code:

/2008/05/15/%postname%/

archibald 05-16-2008 01:48 PM

first of all, thanks for the great plugin

I checked the example and saw that whenever you click on the post title in Wordpress you can view the whole post, but you do not see the comments until you click on comments and youre being redirected to the forum.

Is there no way to show the comments below the post and only redirect the visitor to the forum when he wants to make a comment?

Jafo232 05-16-2008 01:53 PM

Please read the readme file for how to do inline comments.

Fabsboards 05-17-2008 05:09 PM

I installed it and now I'm getting the following errors

Quote:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 19

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 42

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 50

Warning: Invalid argument supplied for foreach() in [path]/includes/init.php(293) : eval()'d code on line 27

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_top.php on line 574

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/includes/vba_cmps_include_top.php on line 574
What am I doing wrong?

http://fabsboards.com/wordpress/


All times are GMT. The time now is 07:13 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.01786 seconds
  • Memory Usage 1,891KB
  • 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
  • (7)bbcode_code_printable
  • (2)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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