View Full Version : Integration with vBulletin - Complete Wordpress/Vbulletin Bridge - Share Users And Postings
Jafo232
12-20-2006, 10:00 PM
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.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:
## 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:
## 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 (http://www.yourdomain.com), then your wordpress blog URL MUST contain the www. part of www.yourdomain.com (http://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 (https://vborg.vbsupport.ru/showthread.php?p=1149970#post1149970) for more information! Special thanks to axisoverdrive (https://vborg.vbsupport.ru/member.php?u=142601) 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 (https://vborg.vbsupport.ru/member.php?u=163487))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 changeSites Using This Plug-In:
http://www.jeffsrecipes.com
http://www.worldwidecreations.com
http://www.xboxcircle.com
http://www.detailuniversity.com
http://www.daggersden.net/
http://www.talkbronx.com/
http://www.czeta.it(PM me if you want to add your site here)
Special Thanks:
axisoverdrive (https://vborg.vbsupport.ru/member.php?u=142601) - Debugging Help, Kyraal (https://vborg.vbsupport.ru/member.php?u=137861) - Paypal Donation, Kalina (https://vborg.vbsupport.ru/member.php?u=102060) - Paypal Donation, Wildcard27 (https://vborg.vbsupport.ru/member.php?u=151203) - Paypal Donation, Shri (https://vborg.vbsupport.ru/member.php?u=1378) - Paypal Donation, pspcrazy (https://vborg.vbsupport.ru/member.php?u=82452) - Paypal Donation, Tomahoochi (https://vborg.vbsupport.ru/member.php?u=251348) - 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.
sanereddy
12-21-2006, 07:14 PM
thanks a lot... setting up tonight
redlabour
12-21-2006, 07:17 PM
Great !
Mark Wegner
12-21-2006, 07:23 PM
I have an existing wordpress install and I'd like to add vbulletin as the comment system using this bridge. Is there an installation script I can use to automatically add all my wordpress posts as vbulletin posts? And also to add all the users registered i wordpress to vbulletin?
Thanks, and nice bridge!
Mark
Jafo232
12-21-2006, 07:35 PM
I have an existing wordpress install and I'd like to add vbulletin as the comment system using this bridge. Is there an installation script I can use to automatically add all my wordpress posts as vbulletin posts? And also to add all the users registered i wordpress to vbulletin?
Thanks, and nice bridge!
Mark
Hmm, no. This is for new wordpress posts meaning it will not affect your old posts. Users already registered with Wordpress will have to register with vbulletin (or login if they are already registered).
TheBlackPoet
12-21-2006, 08:55 PM
i will be getting this tonight when i get home... and wordpress.... thanks in advance
Oddjob
12-21-2006, 11:15 PM
Id love to see a running example of this....
CBrown
12-22-2006, 12:12 AM
wow.. Great. Going to install and give it a go. I've got just the thing...
lexx27
12-22-2006, 12:35 AM
Great hack
I have a small problem. Im in the middle if the installation where I have to do the test post.
The problem is that wp when I press publish downloads post.php instead of posting the test post. When I deactivate the plugin everything is working again,
+bug: When I deactivate and then activate again the plugin a database error for duplicated columns appears.
Jafo232
12-22-2006, 01:02 AM
Great hack
I have a small problem. Im in the middle if the installation where I have to do the test post.
The problem is that wp when I press publish downloads post.php instead of posting the test post. When I deactivate the plugin everything is working again,
+bug: When I deactivate and then activate again the plugin a database error for duplicated columns appears.
What version of Wordpress are you using?
lexx27
12-22-2006, 01:04 AM
2.0.5
Jafo232
12-22-2006, 01:05 AM
When you open the file you download, what does the file say in a text editor?
lexx27
12-22-2006, 01:10 AM
Well it is an empty post.php :)
Jafo232
12-22-2006, 01:12 AM
Well it is an empty post.php :)
Does the post get posted to Vbulletin?
Do you have any other plugins installed? Especially any that work during the posting process?
lexx27
12-22-2006, 01:41 AM
No it doesnt get posted.
I have these plugins installed (the green are activated):
bada_bing
12-22-2006, 02:39 AM
Will this work on VB 3.5.3 ?
Jafo232
12-22-2006, 04:29 AM
No it doesnt get posted.
I have these plugins installed (the green are activated):
Hmm, not sure. I haven't had any other reports of this. My assumption is, it is conflicting with another plugin.
Jafo232
12-22-2006, 04:30 AM
Will this work on VB 3.5.3 ?
I would think so. I havent tested on .3, but I do not see why it wouldn't.
projectego
12-22-2006, 08:24 AM
/me clicks install
010081
12-22-2006, 10:41 AM
thankx just installed let lee how it works.
lexx27
12-22-2006, 12:13 PM
Thanks for the help. I will make some tests and report the conflict. :)
installed. but how is it different from this (https://vborg.vbsupport.ru/showthread.php?t=133107) hack?
axisoverdrive
12-24-2006, 10:09 PM
This is a fantastic plugin! Thanks for all the great work, Jafo232. I've been waiting for a plugin like this for months, and i even tried to get one developed myself (never got done).
I installed your plugin, and i can create posts/ make comments perfectly fine. one thing i'm having trouble with is that if I login via vBulletin, Wordpress does not currently show that i'm logged in with that vbulletin account. Wordpress still gives me the "click here to login" link, which forwards me back to the forum. Sounds like a cookie issue, but i'm not certain. Thoughts?
Thanks in advance!
PS. Also, i've noticed that the newly created user in vbulletin does not show up in the user list for wordpress, and vice versa. Using vb 3.6.2 and wordpress 2.0.5
Sulquendi
12-25-2006, 08:28 AM
Pretty nice hack :)
Only problem for me right now : i have cleaned up my cookies and now i cannot access the admin panel of wordpress, the login button redirect me to vbulletin (i've already signed up on vbulletin !) and accessing admin panel directly with /wp-admin redirects me also on the boards -_-.
Any idea ?
klaush
12-25-2006, 03:46 PM
First of all "Merry XMAS" to all of you!
If you need this bridge for sharing the user-database of vb with wp, this hack is not useable. I don´t know if it´s a cookie-problem or something else!
We need the sharing of the user-database of vb with wp as priority in a short time.
So is anyone able to solve this?
We´ll pay up to 50 Euro if it works without any problems for 3.5.6 and wp 2.05.
Thanks!
Jafo232
12-26-2006, 03:31 AM
installed. but how is it different from this (https://vborg.vbsupport.ru/showthread.php?t=133107) hack?
This one works, and also shares user info.
Jafo232
12-26-2006, 03:33 AM
First of all "Merry XMAS" to all of you!
If you need this bridge for sharing the user-database of vb with wp, this hack is not useable. I don?t know if it?s a cookie-problem or something else!
This is not true, it does work. You must make sure you turn on the setting ""Turn Auto-Integrate" on. The WP and VB scripts MUST reside on the same domain name so they can share cookies.
If you made any edit to the standard cookie setup on Vbulletin, then perhaps you may experience issues, but otherwise you should be all set.
gilshafir
12-26-2006, 08:37 AM
As soon as I turn auto-integrate on my rss2 feed breaks, is anyone else having the same problem?
Jafo232
12-26-2006, 12:51 PM
When you say that the WP and VB scripts must reside on the same domain name, what exactly does this mean? That both of these must be the same? So www.domain.com/forums and www.domain.com/blog
Thanks.
Yes, those are the same domains.
Harley D
12-26-2006, 04:20 PM
I am using VB 3.5.4
WordPress 2.05
VB & WP are on 2 different domains, on the same server but different databases. I have hard codded the RELATIVE file directory to VB.
I'm getting errors, and just a note, I don't care if my users share logins from WP to VB. I just want my posts in WP to post to VB.
With that out of the way, here are the errors I get.
There errors show after when clicking on the WP Vbridge user settings.
1) WordPress database error: [Table 'wagnert_wrdp1.srtcalib_usergroup' doesn't exist]
SELECT * FROM srtcalib_usergroup
2) Warning: Invalid argument supplied for foreach() in /home/myblogdomain/public_html/blog/wp-content/plugins/vbbridge.php on line 199
And this error when posting:
1) Fatal error: Cannot redeclare is_valid_email() (previously declared in /home/myblogdomian/public_html/blog/wp-content/plugins/email/email.php:301) in /home/myforumdomain/public_html/forum/includes/functions.php on line 640
Is there a way remove the necessary portions of code to prevent these errors? and still have the WP posts, post in VB?
Thanks for the hack, been wanting this one for a long time.
Jafo232
12-26-2006, 04:30 PM
I am using VB 3.5.4
WordPress 2.05
VB & WP are on 2 different domains, on the same server but different databases. I have hard codded the RELATIVE file directory to VB.
As it states in the lead post in this thread, they BOTH MUST reside in the same database.
You need not be on the same domain IF, and only IF, you just want to use it as a comment bridge.
gilshafir
12-26-2006, 06:51 PM
This is at the end of my rss file:
</rss>
<br />
<b>Fatal error</b>: Call to a member function unlock_tables() on a non-object in <b>/home/mysite/public_html/forum/includes/functions.php</b> on line <b>4998</b><br />
Jafo232
12-26-2006, 07:45 PM
Hmm, I'm having a hard time getting the comments to work, I don't mean sharing users, but this code right here in the readme file:
Do I need to turn the auto-integrate thing on after I insert this code? thanks.
Do not turn auto-integrate on until comments work!
Jafo232
12-26-2006, 10:24 PM
no, no, no. I tested it and wrote a post, which automatically wrote that same post in my forums.
However, I want to now display how many comments there are for that thread and display the link to the thread. But I keep getting an error whenever I insert the code in the readme file in.
What error do you get?
axisoverdrive
12-26-2006, 11:09 PM
This is not true, it does work. You must make sure you turn on the setting ""Turn Auto-Integrate" on. The WP and VB scripts MUST reside on the same domain name so they can share cookies.
If you made any edit to the standard cookie setup on Vbulletin, then perhaps you may experience issues, but otherwise you should be all set.
Hey Jafo,
Yep. both wordpress and vb are under the same domain, and share the same database. Posting comments from WP to VB works fine. The only problem is the user databases aren't shared, and the WP login link forwards to VB, despite VB not having the same user accounts as WP. Therefore, if "auto integrate" is turned on, there's no way to get into the WP Admin page anymore.
Any ideas on what may be causing hte conflict? Anything i should check?
Thanks!
axisoverdrive
12-27-2006, 03:31 AM
<?php
}
##End Vbridge Replacement
Note, if you deactivate the vbridge plugin, you must remove this code.
?> <?php edit_post_link(__('Edit This')); ?>[/code]
and in the end, I get a Parse Error :confused:
Hey, abcefgary -- try removing the "Note, if you deactivate the vbridge plugin, you must remove this code." and see if you still get that same parse error.
SaN-DeeP
12-28-2006, 12:14 AM
great work Jafo gonna test this now.
axisoverdrive
12-28-2006, 04:13 AM
Has anyone gotten the plugin to work perfectly yet? If so, could you post a link to your functioning site?
Thanks!
Jafo232
12-28-2006, 11:08 PM
Hey Jafo,
Yep. both wordpress and vb are under the same domain, and share the same database. Posting comments from WP to VB works fine. The only problem is the user databases aren't shared, and the WP login link forwards to VB, despite VB not having the same user accounts as WP. Therefore, if "auto integrate" is turned on, there's no way to get into the WP Admin page anymore.
Any ideas on what may be causing hte conflict? Anything i should check?
Thanks!
The users must login via Vbulletin. When those users then go to the wordpress page, they should be logged in under the same username as they have in VB.
Jafo232
12-28-2006, 11:09 PM
thanks! that works perfectly.
I have two more questions, though, sorry.
1.) Is there any way to "grab" the comments from the thread in vBulletin and post them in the comments.php ?
2.) Is there a "most commented post" plugin I could display in the sidebar if I use vBridge?
Thanks.
#1 - No. You either use the comment code (That you replaced in your template file) or not. If you choose not to use it, then comments will be like they always were.
#2 - I have no idea.
Daria
12-31-2006, 02:17 AM
Hi,
I just installed this and am having the same problem as everyone else. The posting to forums works wonderful. However, I am not able to access the wp-admin panel. It just sends me back to vbulletin.
Even when I manually type in the address to /wp-admin or /wp-login.php, I'm redirected back to vbulletin. This also happens even after I've cleared all the cookies so it doesn't seem to be a cookie issue. I think something is not redirecting correctly.
Both WP and VB are installed on the same domain and database. If anyone knows what I may be doing wrong please let me know. Thanks :)
Jafo232
12-31-2006, 02:22 AM
Even when I manually type in the address to /wp-admin or /wp-login.php, I'm redirected back to vbulletin. This also happens even after I've cleared all the cookies so it doesn't seem to be a cookie issue. I think something is not redirecting correctly.
Both WP and VB are installed on the same domain and database. If anyone knows what I may be doing wrong please let me know. Thanks :)
When you say you cleared cookies, did you THEN login to Vbulletin before you went back to your wp-admin pages? Did you login with the "Remember Me" ticked?
Daria
12-31-2006, 02:25 AM
Hi Jafo,
Yes I did log into vbulletin afterwards, however, I do not believe I had the remember me checked. I'll try that and see if it works.
Edit: Okay, tried that and it still does not allow me access to the wp admin panel.
Jafo232
12-31-2006, 02:41 AM
For those having issue, please let me know what version of VB and WP you are using.. And links would be nice (to your forum and WP).
Daria
12-31-2006, 02:45 AM
For those having issue, please let me know what version of VB you are using.. And links would be nice (to your forum and WP).
I have the latest VB 3.6.4 and WP 2.0.5. My forums are located here (http://blueheartwriters.com/forums) and the wp installation is located here (http://blueheartwriters.com). I have not disabled the plugin yet so it is still running.
Jafo232
12-31-2006, 02:46 AM
Checking now..
Jafo232
12-31-2006, 02:50 AM
Did you map the users before you auto-integrated?
Daria
12-31-2006, 03:06 AM
Did you map the users before you auto-integrated?
Hi Jafo,
I replied to your pm but yes I did do the mapping. There were a couple I did not map because there was no reason to such as the unregistered and banned users.
daystorm
12-31-2006, 04:10 AM
When I turn the user integration on, I receive this error and the users are not being integrated.
Fatal error: Call to a member function unlock_tables() on a non-object in /home/admin/domains/bostonerotic.net/public_html/board/includes/functions.php on line 4802
Thank you in advance for your help.
Jafo232
12-31-2006, 04:45 PM
When I turn the user integration on, I receive this error and the users are not being integrated.
Fatal error: Call to a member function unlock_tables() on a non-object in /home/admin/domains/bostonerotic.net/public_html/board/includes/functions.php on line 4802
Thank you in advance for your help.
What version of WP and VB are you using?
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:
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:
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:
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
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.php?p=1149789&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:
$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:
$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.
Kalina
01-08-2007, 08:10 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.
I am using subdomains and it works, but I am having trouble getting it to add users.
daystorm
01-08-2007, 09:48 AM
I am using the new wordpress and vb 3.6.4...
What version of WP and VB are you using?
Jafo232
01-08-2007, 11:42 AM
Make sure you have the latest version of this mod, 2.03.
Kyraal
01-08-2007, 02:00 PM
When you edit a WP post, it will automatically be edited in the forum.
Would it be possible to have it also edit the thread title in the forum? As it is now I have to go in and manually change it after having e.g. corrected a typo in, or changed the WP post title completely.
Jafo232
01-08-2007, 03:56 PM
Would it be possible to have it also edit the thread title in the forum? As it is now I have to go in and manually change it after having e.g. corrected a typo in, or changed the WP post title completely.
Yes, I could probably do that. When I get a chance this week, I will look into it.
Kyraal
01-08-2007, 05:13 PM
Yes, I could probably do that. When I get a chance this week, I will look into it.
Thank you, that would be extremely useful. Sent a little donation as encouragement to keep supporting this really useful mod. Emphasis on "little", as I'm a bit low on cash now after the holidays ;)
Jafo232
01-08-2007, 05:34 PM
Thank you, that would be extremely useful. Sent a little donation as encouragement to keep supporting this really useful mod. Emphasis on "little", as I'm a bit low on cash now after the holidays ;)
Thanks for the donation, I appreciate it!
I modified it today so that titles should also change the title when you edit a post. I tested it quite a bit and it appears to be working just fine. Let me know if you have any issues.
To upgrade, just replace the old version with the new version. DO NOT deactivate!
I've set the users map up as follows
VB Admins - WP Admins
VB Moderators - WP Editor
VB Registered Users - WP Authors
Unfortunately, the admins get added in the default group, which is a subscriber.
Some initial code review leads me to this line in /wp-includes/registration_functions.php
if ( !$update ) {
$user = new WP_User($user_id);
$user->set_role(get_settings('default_role'));
}
I can then see some attempts to change the capabilities in the vbbridge.php file
But I still end up with everyone being setup as a subscriber - ( a:1:{s:10:"subscriber";b:1;} )
Any clues on what I might be doing wrong or overlooking?
Great mod, drop me a note if you want to do a Wordpress MU version of this, would be happy to help with the $s.
Jafo232
01-09-2007, 11:57 AM
I've set the users map up as follows
VB Admins - WP Admins
VB Moderators - WP Editor
VB Registered Users - WP Authors
Unfortunately, the admins get added in the default group, which is a subscriber.
What is your admins primary usergroup in VB?
Administrators in both cases.
mysql> select usergroupid, title from main_vb_usergroup where usergroupid>'4';
+-------------+------------------+
| usergroupid | title |
+-------------+------------------+
| 5 | Super Moderators |
| 6 | Administrators |
| 7 | Moderators |
+-------------+------------------+
3 rows in set (0.00 sec)
mysql> select option_name, option_value from main_wp_options where option_name like 'vbb%';
+----------------+--------------------------+
| option_name | option_value |
+----------------+--------------------------+
| vbb_action | update_vbridge_settings |
| vbb_VBFID | 23 |
| vbb_VBION | 1 |
| vbb_VBPRX | main_vb_ |
| vbb_VBRPATH | /forums |
| vbb_vbugroup_2 | Author |
| vbb_vbugroup_5 | Administrator |
| vbb_vbugroup_6 | Administrator |
| vbb_vbugroup_7 | Administrator |
| vbb_VBURL | http://forums.domain.com |
| vbb_VBUSERID | 5 |
| vbb_VBUSERNAME | Valid User |
+----------------+--------------------------+
12 rows in set (0.00 sec)
Jafo232
01-09-2007, 01:40 PM
Administrators in both cases.
So your VB map settings (for the Administrators ug) looks like this?:
Jafo, yep thats what it looks like.
Jafo, I'm going to bed now (its past mid night where I am). Will put some debugging statements into the code and update tommorrow.
Jafo232
01-09-2007, 02:48 PM
Jafo, I'm going to bed now (its past mid night where I am). Will put some debugging statements into the code and update tommorrow.
Please provide me with a complete screenshot of the mapping page (just the page, not the URL or other site identifying data).
Sorted the problem out.
Related to a bug in Wordpress that hasn't been addressed in a long time.
The capabilities column in the prefix_wp_option table inherits the prefix .. so it is not wp_capabilities, but it is prefix_capabilities.
In my case, I had to change the sql statements which manipulated the wp_capabilities row to
$sql = "UPDATE " . $GLOBALS['table_prefix'] . "usermeta set meta_value = '". serialize(array(strtolower(get_option('vbb_vbugrou p_' . $vbuser->usergroupid)) => 1)) ."' where user_id = '". $results->ID ."' and meta_key = 'main_wp_capabilities'";
$results2 = $wpdb->get_row($sql);
scotch12
01-10-2007, 06:13 AM
Hi, quick question.
This mod was tested with Wordpress 2.0.6 or was it only with 2.0.5 ?
Jafo232
01-10-2007, 11:21 AM
Hi, quick question.
This mod was tested with Wordpress 2.0.6 or was it only with 2.0.5 ?
2.0.5, however, it should work with 2.0.6. I will be testing to verify this week, but since there are no WP code edits, this should work just fine.
Sergio de la To
01-13-2007, 06:57 AM
vB 3.6.4 (http://www.ojodigital.com/revista/foro/)
WP 2.0.6 (http://www.ojodigital.com/revista/)
Users OK
Post OK
BUT Comments doesn't work :( Wordpress and vBulletin comments are independent
What i have to do?
Urban-Desi
01-13-2007, 12:10 PM
vB 3.6.4 (http://www.ojodigital.com/revista/foro/)
WP 2.0.6 (http://www.ojodigital.com/revista/)
Users OK
Post OK
BUT Comments doesn't work :( Wordpress and vBulletin comments are independent
What i have to do?
same for me!
Im running vB 3.6.4 and WP 2.0.6
Iv also mapped the users but some reason WP does not list the users from the Forum in the users list & also if a user is logged into vbulletin and then access the blogs to post a comment, it says you need to log in? Why's that?
And if some one posts a reply in the forum for the blog, shuddnt that comment show up on the blogs page aswell? That would be nice as i made a reply on the forum, went to the blog and said 0 comments. :(
Jafo232
01-13-2007, 02:18 PM
First of all, did you read the directions completely? You have to edit your WP template to handle the new comments. PLEASE READ THE DIRECTIONS IN THE readme FILE!
rootnik
01-16-2007, 02:28 AM
*clicks install*
Thanks!
apokphp
01-16-2007, 04:58 PM
Will this hack allow each user to have their own blog page? That is, instead of all blog entries by all users being displayed on a "main page", I'm looking for a way for each user to have their own blog and blog page, and be integrated with vb's user db.
axisoverdrive
01-17-2007, 03:42 AM
Jafo,
you've done an outstanding job. The plugin is working marvelously.
A feature that would be nice: right now, at the bottom of each post, there is a vbridge menu prompting to post in a particular forum or "Do not post in a forum". Could this be moved to the Options panel, so that we can toggle forum comments on or off universally, so we don't need to worry about it on a post-by-post basis?
I guess some users may want the flexibility of choosing the forum they want the post to show up in. So maybe just a comments toggle on/off switch in the options panel, and then if it's "on", it'll give you the forum selection choice when writing a post? is this an easy thing to implement?
Thanks, Jafo!
Jafo232
01-17-2007, 01:48 PM
Will this hack allow each user to have their own blog page? That is, instead of all blog entries by all users being displayed on a "main page", I'm looking for a way for each user to have their own blog and blog page, and be integrated with vb's user db.
No, this will not do that. You could set it up so each user could write articles on the blog, but it will not setup a new blog for each user.
Jafo232
01-18-2007, 05:57 PM
Jafo,
you've done an outstanding job. The plugin is working marvelously.
A feature that would be nice: right now, at the bottom of each post, there is a vbridge menu prompting to post in a particular forum or "Do not post in a forum". Could this be moved to the Options panel, so that we can toggle forum comments on or off universally, so we don't need to worry about it on a post-by-post basis?
I guess some users may want the flexibility of choosing the forum they want the post to show up in. So maybe just a comments toggle on/off switch in the options panel, and then if it's "on", it'll give you the forum selection choice when writing a post? is this an easy thing to implement?
Thanks, Jafo!
Thanks for your kind words!
I am a bit busy at the moment, but I will be getting back to this plugin soon, I will see if I can add it.
I think you will be able to do this by finding this code:
Do NOT post to a forum: <input type=checkbox name='nopost' value='1' onChange="if (fon == 0) { DeselectAllList(thedoc); fon = 1; } else { selectAllList(thedoc); fon = 0; }">
And changing it to:
Do NOT post to a forum: <input type=checkbox name='nopost' value='1' onChange="if (fon == 0) { DeselectAllList(thedoc); fon = 1; } else { selectAllList(thedoc); fon = 0; }" selected>
I think you will also have to find this code:
var fon = 0;
And change it to:
var fon = 1;
That is just a quick guess reviewing my code.
axisoverdrive
01-20-2007, 04:02 PM
Hi Jafo,
Thanks for the reply. Unfortunately, that code change doesn't seem to have done anything to cancelling the "post to a forum" operation. :(
Kalina
01-22-2007, 07:16 PM
For those having issue, please let me know what version of VB and WP you are using.. And links would be nice (to your forum and WP).
Thanks. My issue is it's not adding users when they visit, it did work for one, said he was logged in, he posted and it made the post as me. Also, I can't get into my wordpress admin, I am taken to my forum homepage.
I am using vbulletin 3.6.4 and wordpress 2.0.7
Forum: http://www.webtalkforums.com/
Blog: http://blog.webtalkforums.com/
Any ideas why it's not adding users would be great. Thank you.
Jafo232
01-22-2007, 11:52 PM
I "think" the problem here is that one is at www.yourdomain and the other is at blog.yourdomain. Is there anyway you can make the blog something like www.yourdomain.com/blog/ ?
Also, are you using the latest version of this mod? It has changed quite a bit.
Kalina
01-23-2007, 12:04 AM
I "think" the problem here is that one is at www.yourdomain and the other is at blog.yourdomain. Is there anyway you can make the blog something like www.yourdomain.com/blog/ ?
Also, are you using the latest version of this mod? It has changed quite a bit.
Hi Jafo, Thanks for checking it out, it just added you as a user. I did think maybe the subdomain is a problem, I can try it the other way. I'll let you know how it goes and yes, I am using the latest download. :)
Jafo232
01-23-2007, 12:06 AM
If you get stuck, pm me your AIM screenname and I will give you a hand. I should be on until 11pm or so.
Kalina
01-23-2007, 12:13 AM
If you get stuck, pm me your AIM screenname and I will give you a hand. I should be on until 11pm or so.Thanks very much. I changed the url and it just added me as well and I got into my admin. That's a good sign! :)
Jafo232
01-23-2007, 12:38 AM
Thanks very much. I changed the url and it just added me as well and I got into my admin. That's a good sign! :)
Yeah, I had a feeling the sub domains might cause cookie issues. I hope it all worked out!
iGlobe.Com.Cn
01-23-2007, 02:24 AM
thanks a lot... setting up tonight
Jafo232
01-23-2007, 02:44 AM
thanks a lot... setting up tonight
Great, if it works out, please click install! ;)
d8tabyte
01-23-2007, 02:23 PM
I am having an issue when I write a post - I get the following error, when I go back and edit it, it will give me the same error and post a new thread, instead of appending the previous. This was working fine and then it just stopped...
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 719904 bytes) in /public_html/forum/includes/class_dm_forum.php on line 19
I am using 2.04 version of the hack and 3.6.4 vb
Jafo232
01-23-2007, 02:30 PM
This sounds like an issue with your server. Your PHP install seems to be running out of memory.
Probably have to bump up your "memory_limit" setting in your php.ini file and then restart your webserver.
Not much I can do for you there.
d8tabyte
01-23-2007, 02:42 PM
Yeah I fixed it by putting this into the .htaccess
php_value memory_limit 24M
Just odd that it would happen out of the blue
axisoverdrive
01-24-2007, 05:20 PM
Hey Jafo,
Does this plugin jive with the new Wordpress 2.1?
Thanks!
Jafo232
01-24-2007, 07:07 PM
Hey Jafo,
Does this plugin jive with the new Wordpress 2.1?
Thanks!
Unsure, I will be upgrading my wordpress's tomorrow, so I will let you know if there are any conflicts. I do not think there will be, but will let you know.
thebluelizard
01-25-2007, 12:03 AM
I'm confused here. How is anyone getting this working in it's current form? I'm running WP 2.0 and it wasn't working. I looked through the code and found these lines:
$install = (basename($_SERVER['SCRIPT_NAME']) == 'plugins.php' && isset($_GET['activate']));
$uninstall = (basename($_SERVER['SCRIPT_NAME']) == 'plugins.php' && isset($_GET['deactivate']));
I actually don't know how that's even working for anyone, because the links to activate the plugin are in the format ?action=activate. So, there's no activate GET variable as far as I can tell. I change those lines to this and it's working fine for me:
$install = (basename($_SERVER['SCRIPT_NAME']) == 'plugins.php' && $_GET['action'] == 'activate');
$uninstall = (basename($_SERVER['SCRIPT_NAME']) == 'plugins.php' && $_GET['action'] == 'deactivate');
Maybe it requires register_globals on? In which case, that's a no-no, as it encourages insecure programming practices. Just want to make sure everything's secure for everyone :)
j4ck455
01-25-2007, 12:36 AM
Wordpress and Vbulletin must share the same database.The answer to the following question has probably been covered somewhere in this thread before - if so please link me to the relevant post(s):
What is the technical reason for Wordpress and vBulletin needing to share the same [MySQL] database, and is there any possibility of separating the two to use separate databases?
Jafo232
01-25-2007, 01:56 AM
I'm confused here. How is anyone getting this working in it's current form? I'm running WP 2.0 and it wasn't working. I looked through the code and found these lines:
I actually don't know how that's even working for anyone, because the links to activate the plugin are in the format ?action=activate. So, there's no activate GET variable as far as I can tell. I change those lines to this and it's working fine for me:
Maybe it requires register_globals on? In which case, that's a no-no, as it encourages insecure programming practices. Just want to make sure everything's secure for everyone :)
If it had anything to do with register_globals then there would be no need in using the $_GET array, you could just use $action, or $deactivate.
If you open the plugins.php file you will note:
wp_redirect('plugins.php?activate=true');
} else if ('deactivate' == $_GET['action']) {
check_admin_referer('deactivate-plugin_' . $_GET['plugin']);
$current = get_settings('active_plugins');
array_splice($current, array_search( $_GET['plugin'], $current), 1 ); // Array-fu!
update_option('active_plugins', $current);
do_action('deactivate_' . trim( $_GET['plugin'] ));
wp_redirect('plugins.php?deactivate=true');
You will note the wp_redirect call where it sets activate and deactivate. The reason why you do not compare the action, is because it has not been thoroughly checked to make sure it is an admin calling the action amongst other things. It is a security checkpoint.
Nobody has reported any problems activating the plug-in. You should note however, that there are issues with the plugin page in wordpress because it uses AJAX and the developers did not take into account all the possible cache settings browsers/ISP's may be using. You can google: wordpress plugin page AJAX, to see more about this.
Jafo232
01-25-2007, 02:05 AM
The answer to the following question has probably been covered somewhere in this thread before - if so please link me to the relevant post(s):
What is the technical reason for Wordpress and vBulletin needing to share the same [MySQL] database, and is there any possibility of separating the two to use separate databases?
I have been considering this myself. The reason why I stated this caveat is that PHP 4.x by default would only allow an instance of a script to make one database connection. See the following Google search to see what I mean:
http://www.google.com/search?hl=en&lr=&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=88F&q=php+%22one+database+connection%22&btnG=Search
However, from what I understand, PHP 5.x has addressed this issue. I may be able to rewrite the code to take that into consideration, but honestly, it is so easy for them to share the same database, that using two connections would just be a waste of resources. If you are vaguely familiar with phpMyAdmin or other such MySQL applications (navicat, etc) you can easily merge databases.
There are many pages on the net that show how to merge databases, and here is one:
http://www.everymanhosting.com/forum/about22.html&highlight=&sid=8baa98914ec96545a1d122ddc0190861
Jafo232
01-25-2007, 03:26 AM
Hey Jafo,
Does this plugin jive with the new Wordpress 2.1?
Thanks!
I just finished testing this on a 2.1 platform. Appears to be running smoothly. You should be fine, but as always, backup all your mysql data and files before you upgrade just in case there is something I didn't catch.
axisoverdrive
01-25-2007, 03:56 AM
Yep, I also got it to work on Wordpress 2.1 earlier this afternoon.
Thanks!
(BTW, hate to be a pain, but i was never able to get the disable "post to a forum" option to work. Any ideas?)
thebluelizard
01-25-2007, 05:41 AM
Nobody has reported any problems activating the plug-in. You should note however, that there are issues with the plugin page in wordpress because it uses AJAX and the developers did not take into account all the possible cache settings browsers/ISP's may be using. You can google: wordpress plugin page AJAX, to see more about this.
Actually, this guy had the same issue: https://vborg.vbsupport.ru/showpost.php?p=1143189&postcount=9 We're running PHP 5, so I assume that's what's doing it. I'm afraid I don't see how that's a security checkpoint. Someone can just do ?activate=true in their URL just as easily as ?action=activate.
I was also having session issues because we have a login box in the upper corner on our theme. This submits to the vB login.php file so it can set up the appropriate session cookies there before shooting back to WP. I created a small vB plugin to redirect back to the WP install if that's where you were logging in from. So, there were some cookie domain and path issues because we have the scripts in /board/ and /WP/. The cookies are *supposed* to be setting with .domain.com and / for the domain and path respectively. But they weren't due to the $vbulletin global not being available inside of the vbsetcookie() function. This is because you were calling require_once('./includes/init.php'); inside of vb_Init(). Since it's inside of that function, things get messed up further down the call stack. I commented that out (along with the CWD stuff) and just put a require_once('./global.php'); to be done with it. Nothing vB does interferes with WP, so it's safe to do so. That fixed it getting the correct domain settings and such.
However, I noticed you weren't using the built-in vB session handler. I'm not sure why you'd want to do this, since the code is much more robust and production-tested. So, I took out the define at the top, and converted all the $vbuser stuff to $vbulletin->userinfo, and it runs perfectly now.
The last issue was also with the login box. When you're logged in, it says your name and shows a log out button. However, you had to refresh the page at least once for this to show up, as the bridge code is setting a cookie, but not setting the current user for the current execution of the script. So, I just added a set_current_user($results->ID,$vbulletin->userinfo['username']); to vb_Init() after the setup_userdata() calls, and that fixed everything.
I'd also recommend you do some proper formatting on this code. It's a harder to work with when there isn't standard formatting throughout. The tab key is your friend :up:
j4ck455
01-25-2007, 10:02 AM
Wordpress and Vbulletin must share the same database....
What is the technical reason for Wordpress and vBulletin needing to share the same [MySQL] database, and is there any possibility of separating the two to use separate databases?
...I have been considering this myself. The reason why I stated this caveat is that PHP 4.x by default would only allow an instance of a script to make one database connection. See the following Google search to see what I mean:
http://www.google.com/search?hl=en&lr=&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=88F&q=php+%22one+database+connection%22&btnG=Search
However, from what I understand, PHP 5.x has addressed this issue. I may be able to rewrite the code to take that into consideration, but honestly, it is so easy for them to share the same database, that using two connections would just be a waste of resources...Jafo232, thanks for the reply :).
I need to clarify my reasons for wanting|needing a separation of d/bs between WP & vB: it basically boils down to 2 factors - security & server load balancing.
The hosting company we're using for our vB 3.6.4 forum is quite restrictive and a recent request to upgrade from PHP4 to PHP5.2.0 resulted in PHP 5.0.4 being installed & running under CGI in Apache [was not CGI under PHP4], also register_globals is enabled under PHP 5.0.4 [CGI], I have a feeling things are going to go pear-shaped very soon :(. From a security POV I would prefer to have 2 separate MySQL d/bs for WP & vB respectively, although it probably won't make a huge difference, it might limit some damage.
ITO load-balancing, the option of being able to run a separate MySQL server [b] for WP and other stuff, and keep the PHP for WP & vB running on the same server [a] that vB has its d/b on.
dtdesign
01-25-2007, 11:59 AM
The users must login via Vbulletin. When those users then go to the wordpress page, they should be logged in under the same username as they have in VB.
Howdy,
I've got a question on this, I'm thinking of using Wordpress as my CMS for the site, as I'm fed up of my site looking like every other forum based site. So does this preclude me from using wordpress as the front end as users will have to have logged into VBulletin firstly ?
Jafo232
01-25-2007, 12:00 PM
Actually, this guy had the same issue: https://vborg.vbsupport.ru/showpost.php?p=1143189&postcount=9 We're running PHP 5, so I assume that's what's doing it. I'm afraid I don't see how that's a security checkpoint. Someone can just do ?activate=true in their URL just as easily as ?action=activate.
Huh? That post you are referring to has nothing to do with any issue you had. If anything, it is symptomatic of the AJAX issue. If someone just called ?deactivate=true it will not deactivate anything. The redirect is issued after the plugin is is deactivated. This has however brought to my attention a fact that a drop command could be called on the vb_threadid column on any deactivate. I will address this issue later today.
I was also having session issues because we have a login box in the upper corner on our theme. This submits to the vB login.php file so it can set up the appropriate session cookies there before shooting back to WP. I created a small vB plugin to redirect back to the WP install if that's where you were logging in from. So, there were some cookie domain and path issues because we have the scripts in /board/ and /WP/. The cookies are *supposed* to be setting with .domain.com and / for the domain and path respectively. But they weren't due to the $vbulletin global not being available inside of the vbsetcookie() function. This is because you were calling require_once('./includes/init.php'); inside of vb_Init(). Since it's inside of that function, things get messed up further down the call stack. I commented that out (along with the CWD stuff) and just put a require_once('./global.php'); to be done with it. Nothing vB does interferes with WP, so it's safe to do so. That fixed it getting the correct domain settings and such.
However, I noticed you weren't using the built-in vB session handler. I'm not sure why you'd want to do this, since the code is much more robust and production-tested. So, I took out the define at the top, and converted all the $vbuser stuff to $vbulletin->userinfo, and it runs perfectly now.
Actually, this is not the case in most installs. Most installations have wp files and vb files in different directories, so calling ./globals will get you a "no such file or directory" error (if you comment out the CWD stuff).
Also, if you require ./globals from inside a function, you are going to get init errors from VB under certain circumstances. This is why init was called instead inside the vb_Init function. I am assuming that since you have clicked uninstall on the plugin, you may have figured this out already.
The last issue was also with the login box. When you're logged in, it says your name and shows a log out button. However, you had to refresh the page at least once for this to show up, as the bridge code is setting a cookie, but not setting the current user for the current execution of the script. So, I just added a set_current_user($results->ID,$vbulletin->userinfo['username']); to vb_Init() after the setup_userdata() calls, and that fixed everything.
This may be an issue when the user is initially bridged (first time to wp from vb after the plugin is installed), but afterwords, it should be all set.
I'd also recommend you do some proper formatting on this code. It's a harder to work with when there isn't standard formatting throughout. The tab key is your friend :up:
I never agreed with what some call "proper formatting". I have been coding in this style since I started scripting. Spacing everything out with tabs has only confused me when writing/reading code. There are some times when I might use it when I want a particular block to stand out while I scan over code. This is just a personal preference of my own, like reading from left to right. :)
Jafo232
01-25-2007, 12:07 PM
Jafo232, thanks for the reply :).
I need to clarify my reasons for wanting|needing a separation of d/bs between WP & vB: it basically boils down to 2 factors - security & server load balancing.
The hosting company we're using for our vB 3.6.4 forum is quite restrictive and a recent request to upgrade from PHP4 to PHP5.2.0 resulted in PHP 5.0.4 being installed & running under CGI in Apache [was not CGI under PHP4], also register_globals is enabled under PHP 5.0.4 [CGI], I have a feeling things are going to go pear-shaped very soon :(. From a security POV I would prefer to have 2 separate MySQL d/bs for WP & vB respectively, although it probably won't make a huge difference, it might limit some damage.
ITO load-balancing, the option of being able to run a separate MySQL server [b] for WP and other stuff, and keep the PHP for WP & vB running on the same server [a] that vB has its d/b on.
Not sure I agree with everything you stated here, but regardless, it is possible to use two databases I suppose, but you would have to edit the code a bit. Basically, you will have to use the vbulletin database object for any and all calls to the vb data. Probably not that difficult to do, I just personally have no need to create such code.
Jafo232
01-25-2007, 12:08 PM
Howdy,
I've got a question on this, I'm thinking of using Wordpress as my CMS for the site, as I'm fed up of my site looking like every other forum based site. So does this preclude me from using wordpress as the front end as users will have to have logged into VBulletin firstly ?
Well, not really. The only time a user would have to "login to VB" is to comment, not to view.
thebluelizard
01-25-2007, 06:15 PM
Huh? That post you are referring to has nothing to do with any issue you had. If anything, it is symptomatic of the AJAX issue. If someone just called ?deactivate=true it will not deactivate anything. The redirect is issued after the plugin is is deactivated. This has however brought to my attention a fact that a drop command could be called on the vb_threadid column on any deactivate. I will address this issue later today.
I was referring to the latter part of that post about activating and and deactivating the plugin. I got the exact same duplicate column bug as that person was getting.
This may be an issue when the user is initially bridged (first time to wp from vb after the plugin is installed), but afterwords, it should be all set.
Nope, we did all our testing on someone that was already bridged before trying out the code path for users that were not bridged. The plugin gets processed after WP's session handling, so you don't have the WP cookies set on your first page view after getting the vB session set.
Also, your code requires a user to check the "Remember Me" box when logging into vB for the bridge to pick up on the login. You're checking against the bbpassword cookie, which isn't available unless that box is checked. Since not everyone checks it, that's another reason for using vB's session handler.
malenfant
01-27-2007, 03:40 PM
Hi,
first of all thx, for the great plugin! I allways wanted something like that.
I have to say that I?m a noob with Wordpress and vBulletin so i hope you guys can help me a bit.
I installed the vBulletin Board 3.6.4. It works great. After that i installed Wordpress 2.0.7 (german). Now i installed the wordpress plugin till the point with the testpost.
It works - very nice :up:! So, the next point would be to map the usergroups.
But there i get an error:
WordPress database error: [Table 'datdabaseXY.usergroup' doesn't exist]
SELECT * FROM usergroup.
:confused:
Does someone know what to do here?
Thank you so much
Marc
I added 2 Screenshots Please help! :o
limey
01-27-2007, 07:50 PM
Does this work with the latest wordpress version 2.11 Ella?
Want to know before I make a major upgrade.
txsbmw
01-28-2007, 04:40 PM
I just want this to share users with vb. Is this possible. I tried reading the ReadMe file and it completly confused me. I do not want it to post comments in my forum or post any other threads for that matter, I want the comments to stay like they are now. Basically all I want it for is to share users, registration only with vb. You log into vb and you can comment and such on wordpress. When you click register in wordpress it takes you to the vb register page, when you click the username of someone who made the comment it takes you to the vb profile page of that user. Is that possible with this? And if so, how do I go about doing it?
I run vb 3.6.4 & wp 2.1
If this is not possible is there a blog type add on for vb that can be used. Here is my blog right now so you can basically see what it is being used for:
http://www.usmchangout.com/blogs
Jafo232
01-29-2007, 03:16 AM
So, the next point would be to map the usergroups.
But there i get an error:
WordPress database error: [Table 'datdabaseXY.usergroup' doesn't exist]
SELECT * FROM usergroup.
:confused:
Does someone know what to do here?
Thank you so much
Marc
I added 2 Screenshots Please help! :o
Did you set the "Database Prefix" setting correctly on the options page?
Jafo232
01-29-2007, 03:17 AM
Does this work with the latest wordpress version 2.11 Ella?
Want to know before I make a major upgrade.
Yes, it does work with Ella...
Jafo232
01-29-2007, 03:18 AM
I just want this to share users with vb. Is this possible. I tried reading the ReadMe file and it completly confused me. I do not want it to post comments in my forum or post any other threads for that matter, I want the comments to stay like they are now. Basically all I want it for is to share users, registration only with vb. You log into vb and you can comment and such on wordpress. When you click register in wordpress it takes you to the vb register page, when you click the username of someone who made the comment it takes you to the vb profile page of that user. Is that possible with this? And if so, how do I go about doing it?
I run vb 3.6.4 & wp 2.1
Everything you asked can be done except linking the username to the vb profile page. That is not a feature of this plugin.
malenfant
01-29-2007, 10:01 AM
Hello Jafo :-),
no, i left it blank because i didn´t know exactly what it is. Is the database prefix directly written into the database or just something like the database name?
big thx for all your work!
Marc
Jafo232
01-29-2007, 11:51 AM
The database prefix is a VB setting. You can find it in your config.php file. Example:
$tableprefix = 'vb_';
This would make your prefix vb_
RonanHayes
01-30-2007, 12:47 AM
NVM, my cookie question :P
managed to fix it.
I was wondering would it be possible to limit the forums that the blogs are posted in? For example I have some admin forums, and I do not want the super mods creating blogs to go in them.
Jafo232
01-30-2007, 01:40 AM
NVM, my cookie question :P
managed to fix it.
I was wondering would it be possible to limit the forums that the blogs are posted in? For example I have some admin forums, and I do not want the super mods creating blogs to go in them.
Not built in, no.
malenfant
01-30-2007, 08:10 PM
Perfect, it was just the Database-Prefix that stopped the bridge from working.
Thank you Jafo!
One more question:
I want to get more users into my vbulletin-board. So it would be very useful if they get automatically from my blogarticle (by the #respond button) to the vbulletin thread that made bye the bridge! Is there any way to do that?
TY Marc
Jafo232
01-30-2007, 08:17 PM
Perfect, it was just the Database-Prefix that stopped the bridge from working.
Thank you Jafo!
One more question:
I want to get more users into my vbulletin-board. So it would be very useful if they get automatically from my blogarticle (by the #respond button) to the vbulletin thread that made bye the bridge! Is there any way to do that?
TY Marc
Not sure if you have, but the readme speaks a bit on how to do this:
IF YOU WANT TO USE VB For comments:
You need to edit your template files wherever comments are included. Usually these are in index.php, single.php, page.php. You will need to find the comment code. Usually this appears as:
<?php wp_link_pages(); ?>
<!-- <?php comments_popup_link(__('0 Comments'), __('1 Comments'), __('% Comments')); ?>
You can replace that code with this:
<?php
#### Vbridge Replacement code for comments
$vbridge = Comment_Handler($post->ID);
if ($vbridge[id] > 0) {
?>
<a href=<?php echo get_option('vbb_VBURL') ?>/showthread.php?t=<?php echo $vbridge[id] ?>>(<?php echo intval($vbridge[count]) ?>) comments.</a> <a href=<?php echo get_option('vbb_VBURL') ?>/newreply.php?do=newreply&noquote=1&t=<?php echo $vbridge[id] ?>>Add your comment here.</a>
<?php
}
##End Vbridge Replacement
Note, if you deactivate the vbridge plugin, you must remove this code.
malenfant
01-30-2007, 09:50 PM
That?s it :o. Sry for reading your readme so bad :D.
Thats the best plugin i installed in my hole life.
Thanks for your work and support Jafo!
Jafo232
01-31-2007, 01:20 AM
That?s it :o. Sry for reading your readme so bad :D.
Thats the best plugin i installed in my hole life.
Thanks for your work and support Jafo!
Thanks, feel free to rate this plugin and/or nominate for mod of the month (see top of thread, on the right). :)
lexx27
01-31-2007, 04:37 PM
I just installed wp 2.1 and I installed vbbridge too without any other plugin activated. The result was when writing a post and press publish, it downloads post-new.php
Is there anybody that has or had the same problem?
Jafo232
01-31-2007, 05:32 PM
I have not seen any other complaints of this. I guess my first question would be, do the posts publish to both VB and WP?
Second, have you ruled out any plugin in VB that may be causing this?
tutorials.de
02-01-2007, 04:52 PM
Please tell me how can I disable the "Select Forum To Post To" feature? Thanks ;)
akulion
02-01-2007, 05:05 PM
will this work with multi user version?
Jafo232
02-02-2007, 01:09 AM
Please tell me how can I disable the "Select Forum To Post To" feature? Thanks ;)
There is no option to take it out other than checking the box to not post to the forum.
Jafo232
02-02-2007, 01:10 AM
will this work with multi user version?
I have no idea, I have never used the MU version.
akulion
02-02-2007, 10:04 AM
oh then it probably wont...
WPMU is the multi version of word press where all the users can create their own individual blogs using their own settings themes etc
http://mu.wordpress.org/
Jafo232
02-02-2007, 05:33 PM
Just a note, I posted up a copy of the 2.05 BETA. It should be stable but PLEASE read the readme before you install!!!
See the starting thread for more information on what is in the new version.
AutomatikStudio
02-03-2007, 02:56 PM
I upgraded to the BETA and now when I visit the vBBridge Options page it only shows:
Cannot load 0.
Jafo232
02-03-2007, 11:07 PM
I upgraded to the BETA and now when I visit the vBBridge Options page it only shows:
Yes, I see. I will fix this in the beta release Monday or Tuesday, but for now, you can fix it by opening up the vbbridge.php file and find the first instance of this:
if (get_option('vbb_VBION')) {
$cwd = getcwd();
Change to:
if (get_option('vbb_VBION') and $_GET['page'] != 'vbbridge.php') {
$cwd = getcwd();
RichieBoy67
02-04-2007, 07:37 PM
Great mod but I am having some miner trouble with the linking. I did try to manually add the url into the config but I am still having issues..
It will not let me add the end slash http://www.talkandmore.net/wordpress/
I coded it like this into the config.. Is this correct??
chdir('/home/talkandm/public_html');
My forum is in the root and blog is in /wordpress
Thanks....
Jafo232
02-04-2007, 08:04 PM
Great mod but I am having some miner trouble with the linking. I did try to manually add the url into the config but I am still having issues..
The code you showed has nothing to do with linking, if you mean hyperlinking. That code is for the base path (file directory path) to the vb files.
RichieBoy67
02-04-2007, 08:10 PM
I'm sorry. I didn't mean the linking I guess. I meant the paths. When you click on the Title on the top page it does not redirect properly.
I am a bit confused about the general options menu where the urls go. I am not exactly sure what goes where.
In both boxes I put http://www.talkandmore.net/wordpress/ but it kept removing the /
I'm sorry. I am having difficulty explaining my problem. If you follow the link I put up to the blog you will see what I mean...
Thanks...
Jafo232
02-05-2007, 11:48 AM
One of the domains is www.talkandmore.net, yet the other is talkandmore.net. Different host names.
Anyway, this hack doesn't affect that URL.
hitboy
02-05-2007, 04:55 PM
HI I have wordpress and vbulletin already installed did you mean they have to share the same mysql database because i have no idea how to do that can anyone help me?
Jafo232
02-06-2007, 01:48 AM
<a href="https://www.google.com/search?q=merging+mysql+databases&ie=utf-8&oe=utf-8&rls=org.mozilla:en-US:official&client=firefox-a" target="_blank">http://www.google.com/search?q=mergi...ient=firefox-a</a>
hitboy
02-06-2007, 01:51 AM
i am using wordpress twice on the same domain can i intergrate vb and 2 wordpresses?
RichieBoy67
02-06-2007, 01:49 PM
Jafo, I don't believe I have a major problem or anything but I just don't think you are understanding what I am trying to say. I just am not explaining it well..
Thanks though for trying to help...
Rich
Jafo232
02-06-2007, 02:32 PM
i am using wordpress twice on the same domain can i intergrate vb and 2 wordpresses?
Umm, no I don't think so.
Jafo232
02-07-2007, 03:48 AM
Just wanted to let everyone know that I finished testing 2.05. You should now all upgrade. PLEASE PLEASE PLEASE read the upgrade instructions.
TCattitude
02-07-2007, 10:45 AM
This mod is totally awesome.
Thanks for the hard work, Jafo ;)
hitboy
02-07-2007, 12:01 PM
Hey Im kind of confused I dont want the wordpress comments to be in a seperate forum i want them to be on the word press page I just want the users not have to login again is that possible with this plugin?
Im kind of confused as to what is going on.
I have merged the databases so far and uploaded the plugin what should i do next for the users to just not have to login again.
Also when they sign up at wordpress or VB are they signed up for both?
Jafo232
02-07-2007, 02:23 PM
They only sign up with Vbulletin. You need not use the comment code included with the plugin, that is only if you want to use VB for the comment engine. Otherwise, the plugin just bridges the users. If the users are logged into VB, then they will be automatically logged in to WP.
axisoverdrive
02-07-2007, 04:17 PM
Hi Jafo,
Thanks for the update! You've included my request! :)
I tried updating the plugin as per your instructions. I get a strange error. Once i've uploaded the new plugin and go to the Options, I cannot see the option settings for VbridgeII. The error i get is "Cannot load from 0".
This error also occurs with all of my other plugins. Once i deactivate the vbridge plugin, i can access the plugins' options again.
Thoughts?
Jafo232
02-07-2007, 04:20 PM
Hmm, this was an issue with the beta, it was fixed with this release.. Are you sure you uploaded the correct version?
axisoverdrive
02-07-2007, 05:33 PM
yep. Downloaded straight from the link above.
Jafo232
02-07-2007, 05:38 PM
yep. Downloaded straight from the link above.
Hmm, the only thing I can think of here is, open the file and find this line:
if (get_option('vbb_VBION') and $_GET['page'] != 'vbbridge.php') {
Replace with:
if (get_option('vbb_VBION') and (!isset($_GET['page']))) {
axisoverdrive
02-07-2007, 05:58 PM
That worked!
Thanks!
Jafo232
02-07-2007, 06:15 PM
Fixed it in 2.05, so if you are having the same issue, please re-download, or apply the above fix (2 posts up).
Jafo232
02-08-2007, 05:16 PM
This mod is totally awesome.
Thanks for the hard work, Jafo ;)
My pleasure. :) If you really like the plug-in, feel free to rate this mod, nominate for MOTM, or donate.
Thanks again!
mikesz
02-10-2007, 08:41 AM
Hello, nice MOD. I am a little confused about what I am suppose to put in the VB user field. It says that this is for when a commenter is not logged in as a VB user. Is that suppose to be like a guest account that I have to set up? I am just setting this system up and have added the wordpress as a feature that I want to run out of a subdomain but I am missing the logic for what this user is... it looks exactly like what I want to have where the vb users are just recognized by the blog software and I avoid the multiple logins, etc, thanks in advance for a reply.
kindest regards, mikesz
Jafo232
02-10-2007, 03:06 PM
This is the username of the POSTER of an article if you choose to post WP posts automatically in your VB forum. Normally, the mod uses the username of the person logged in, but if you were only going to use this as just a comment bridge, then this is what the user would default to. Generally, this would be your VB admin accounts username.
mikesz
02-10-2007, 11:04 PM
Great, thanks for the info. I can finish the installation now and check it out. regards, mikesz
Bluestrike2
02-11-2007, 12:58 AM
Howdy,
If I have two Wordpress installations and the vBulletin, am I able to integrate all three here or no (I doubt it, but I might as well ask :D)? Thanks in advance!
Tom
stha n
02-11-2007, 04:54 AM
This plugin looks like a 5 star plugin! Thanks for making it available.
I am using WP 2.0.7 and the VBridge 2.0.4. I followed the install instructions step by step. I am using VB for comments as well.
Each time I attempt a WP login, I am redirected to VB Forum main page. I have tested in different browsers and cleared cookies etc. Any suggestions?
Thanks.
soulplayer
02-11-2007, 10:33 AM
Hy,
I have absolutly no idea where I have to put this code...
Find this code (or similar code indicating the comment section of your template):
<?php wp_link_pages(); ?>
<!-- <?php comments_popup_link(__('0 Comments'), __('1 Comments'), __('% Comments')); ?>
And replace with this:
<?php
#### Vbridge Replacement code for comments
if ($vbridge[id] > 0) {
?>
<div class="comments">
<?php
if(is_single()) {
if (is_array($vbridge[replies])) {
?>
<br /><br />
<h3 id="comments">Comments:</h3>
<ol class="commentlist">
<?php
foreach ($vbridge[replies] as $reply) {
?>
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<?php echo $vbridge[vb_parser]->do_parse($reply->pagetext, false, true); ?>
<small class="commentmetadata">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/comment_arr.gif" alt="" />
by <cite> <a href=<?php echo get_option('vbb_VBURL') ?>/member.php?u=<?php echo $reply->userid ?>><?php echo $reply->username; ?></a></cite>
</small><br />
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
}
}
?>
</ol>
<?php
}
?>
<a href=<?php echo get_option('vbb_VBURL') ?>/showthread.php?t=<?php echo $vbridge[id] ?>>(<?php echo intval($vbridge[count]) ?>) comments</a> | <a href=<?php echo get_option('vbb_VBURL') ?>/newreply.php?do=newreply&noquote=1&t=<?php echo $vbridge[id] ?>>Add your comments</a>
</div>
<?php
}
##End Vbridge Replacement
?>
You can also now link authors usernames to their VB profile page. Wherever you see the code:
<?php the_author() ?>
You can replace that with something like:
<?php
if ($vbridge[id] > 0) {
?>
<a href=<?php echo get_option('vbb_VBURL') ?>/member.php?u=<?php echo $vbridge[thread_starter] ?>><?php the_author() ?></a>
<?php
}
else {
the_author();
}
?>
CNBAforo
02-12-2007, 03:09 AM
This plugin looks like a 5 star plugin! Thanks for making it available.
I am using WP 2.0.7 and the VBridge 2.0.4. I followed the install instructions step by step. I am using VB for comments as well.
Each time I attempt a WP login, I am redirected to VB Forum main page. I have tested in different browsers and cleared cookies etc. Any suggestions?
Thanks.
I have exactly the same problem. I followed the steps in the readme, and i could only get my admin user mapper. Whenever any other user tries to enter the site admin, it gets redirected to the forum main page, but only when Auto-Integrate is on. If it is off, the user simply gets to the login page, but doesn't have a correct user.
miloheckport
02-12-2007, 07:33 AM
I am getting the following error
WordPress database error: [Unknown column 'vb_threadid' in 'field list']
UPDATE wp_posts set vb_threadid = 3082 WHERE ID = 5
Warning: Cannot modify header information - headers already sent by (output started
The thread does get created in my forum but the above error is generated. I am wondering if in the VBBRIDGE plugin options I have something set wrong. My forum is installed in a subdomain of my site > http://discussion.socalskateparks.com
Should the relative path be / or just blank?
Any help would be appreciated.
Jafo232
02-12-2007, 12:56 PM
I am using WP 2.0.7 and the VBridge 2.0.4.
First, you need to be using 2.05, the latest version.
Jafo232
02-12-2007, 12:57 PM
Hy,
I have absolutly no idea where I have to put this code...
In your template files, there is code for the comment section of the template. GENERALLY it looks something like:
<?php wp_link_pages(); ?>
<!-- <?php comments_popup_link(__('0 Comments'), __('1 Comments'), __('% Comments')); ?>
Please read the readme a bit closer. :)
soulplayer
02-12-2007, 01:11 PM
I read it, but I did not found anything that looks like that... Using 2.1 Wordpress.
In which files do I find those comment options? I edited the "comment.php" but it doesn't work...
<?php
/* Don't remove these lines. */
add_filter('comment_text', 'popuplinks');
foreach ($posts as $post) { start_wp();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo get_settings('blogname'); ?> - <?php echo sprintf(__("Comments on %s"), the_title('','',false)); ?></title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" />
<style type="text/css" media="screen">
@import url( <?php bloginfo('stylesheet_url'); ?> );
body { margin: 3px; }
</style>
</head>
<body id="commentspopup">
<h1 id="header"><a href="" title="<?php echo get_settings('blogname'); ?>"><?php echo get_settings('blogname'); ?></a></h1>
<h2 id="comments"><?php _e("Comments"); ?></h2>
<p><a href="<?php echo get_settings('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p>
<?php if ('open' == $post->ping_status) { ?>
<p><?php _e("The <acronym title=\"Uniform Resource Identifier\">URI</acronym> to TrackBack this entry is:"); ?> <em><?php trackback_url() ?></em></p>
<?php } ?>
<?php
// this line is WordPress' motor, do not delete it.
$comment_author = (isset($_COOKIE['comment_author_' . COOKIEHASH])) ? trim($_COOKIE['comment_author_'. COOKIEHASH]) : '';
$comment_author_email = (isset($_COOKIE['comment_author_email_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_email_'. COOKIEHASH]) : '';
$comment_author_url = (isset($_COOKIE['comment_author_url_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_url_'. COOKIEHASH]) : '';
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved = '1' ORDER BY comment_date");
$commentstatus = $wpdb->get_row("SELECT comment_status, post_password FROM $wpdb->posts WHERE ID = $id");
if (!empty($commentstatus->post_password) && $_COOKIE['wp-postpass_'. COOKIEHASH] != $commentstatus->post_password) { // and it doesn't match the cookie
echo(get_the_password_form());
} else { ?>
<?php if ($comments) { ?>
<ol id="commentlist">
<?php foreach ($comments as $comment) { ?>
<li id="comment-<?php comment_ID() ?>">
<?php comment_text() ?>
<p><cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> <?php _e("by"); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>
</li>
<?php } // end for each comment ?>
</ol>
<?php } else { // this is displayed if there are no comments so far ?>
<p><?php _e("No comments yet."); ?></p>
<?php } ?>
<?php if ('open' == $commentstatus->comment_status) { ?>
<h2><?php _e("Leave a comment"); ?></h2>
<p><?php _e("Line and paragraph breaks automatic, e-mail address never displayed, <acronym title=\"Hypertext Markup Language\">HTML</acronym> allowed:"); ?> <code><?php echo allowed_tags(); ?></code></p>
<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<p>
<input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
<label for="author"><?php _e("Name"); ?></label>
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<input type="hidden" name="redirect_to" value="<?php echo wp_specialchars($_SERVER["REQUEST_URI"]); ?>" />
</p>
<p>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />
<label for="email"><?php _e("E-mail"); ?></label>
</p>
<p>
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" />
<label for="url"><?php _e("<acronym title=\"Uniform Resource Identifier\">URI</acronym>"); ?></label>
</p>
<p>
<label for="comment"><?php _e("Your Comment"); ?></label>
<br />
<textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea>
</p>
<p>
<input name="submit" type="submit" tabindex="5" value="<?php _e("Say It!"); ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php } else { // comments are closed ?>
<p><?php _e("Sorry, the comment form is closed at this time."); ?></p>
<?php }
} // end password check
?>
<div><strong><a href="javascript:window.close()"><?php _e("Close this window."); ?></a></strong></div>
<?php // if you delete this the sky will fall on your head
}
?>
<!-- // this is just the end of the motor - don't touch that line either :) -->
<?php //} ?>
<p class="credit"><?php timer_stop(1); ?> <?php echo sprintf(__("<cite>Powered by <a href=\"http://wordpress.org\" title=\"%s\"><strong>Wordpress</strong></a></cite>"),__("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?></p>
<?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?>
<script type="text/javascript">
<!--
document.onkeypress = function esc(e) {
if(typeof(e) == "undefined") { e=event; }
if (e.keyCode == 27) { self.close(); }
}
// -->
</script>
</body>
</html>
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments."); ?><p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'alt';
?>
<!-- You can start editing here. -->
<?php if ($comments) : ?>
<h3 id="comments"> <?php
#### Vbridge Replacement code for comments
if ($vbridge[id] > 0) {
?>
<div class="comments">
<?php
if(is_single()) {
if (is_array($vbridge[replies])) {
?>
<br /><br />
<h3 id="comments">Comments:</h3>
<ol class="commentlist">
<?php
foreach ($vbridge[replies] as $reply) {
?>
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<?php echo $vbridge[vb_parser]->do_parse($reply->pagetext, false, true); ?>
<small class="commentmetadata">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/comment_arr.gif" alt="" />
by <cite> <a href=<?php echo get_option('vbb_VBURL') ?>/member.php?u=<?php echo $reply->userid ?>><?php echo $reply->username; ?></a></cite>
</small><br />
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
}
}
?>
</ol>
<?php
}
?>
<a href=<?php echo get_option('vbb_VBURL') ?>/showthread.php?t=<?php echo $vbridge[id] ?>>(<?php echo intval($vbridge[count]) ?>) comments</a> | <a href=<?php echo get_option('vbb_VBURL') ?>/newreply.php?do=newreply&noquote=1&t=<?php echo $vbridge[id] ?>>Add your comments</a>
</div>
<?php
}
##End Vbridge Replacement
?>op “<?php the_title(); ?>”</h3>
<ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<cite><?php
if ($vbridge[id] > 0) {
?>
<a href=<?php echo get_option('vbb_VBURL') ?>/member.php?u=<?php echo $vbridge[thread_starter] ?>><?php the_author() ?></a>
<?php
}
else {
the_author();
}
?></cite> zegt:
<?php if ($comment->comment_approved == '0') : ?>
<em>Uw reactie wacht op goedkeuring.</em>
<?php endif; ?>
<br />
<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php the_date() ?> om <?php comment_time() ?></a> <?php edit_comment_link('e','',''); ?></small>
<?php comment_text() ?>
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post-> comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments">Reacties zijn gesloten.</p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post-> comment_status) : ?>
<h3 id="respond">Laat een reactie achter</h3>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>Je moet <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">ingelogd</a> zijn om een reactie te plaatsen.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Ingelogd als <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>">Uitloggen »</a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small><?php _e('Name')?> <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small>Email (wordt niet gepubliceerd) <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> Je kan deze tags gebruiken: <?php echo allowed_tags(); ?></small></p>-->
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Verstuur reactie" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
Jafo232
02-13-2007, 01:15 AM
It will not be in comments.php.. It depends on the theme you have. Generally, they reside in the index.php, single.php, and page.php files (some themes do not have single.php or page.php)
miloheckport
02-13-2007, 01:17 AM
I am getting the following error
WordPress database error: [Unknown column 'vb_threadid' in 'field list']
UPDATE wp_posts set vb_threadid = 3082 WHERE ID = 5
Warning: Cannot modify header information - headers already sent by (output started
The thread does get created in my forum but the above error is generated. I am wondering if in the VBBRIDGE plugin options I have something set wrong. My forum is installed in a subdomain of my site > http://discussion.socalskateparks.com
Should the relative path be / or just blank?
Any help would be appreciated.
Anyone have an idea why this could be happening?
Jafo232
02-13-2007, 01:20 AM
I do not think it will work with a sub domain sorry.
EDIT -
Although it may if you follow this part of the directions in the lead thread:
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 all instances of,
chdir($_SERVER['DOCUMENT_ROOT'] . get_option('vbb_VBRPATH'));And replace the code with:
chdir('/your/absolute/path/tothe/vbulletin/directory');Obviously, change the path to your absolute FILE (not URL) path.
miloheckport
02-13-2007, 01:28 AM
When I write to the blog in WordPress I get the error but the post in my forum does get created that is why I thought it was something in my WordPress VBBridge configuration. I was really stoked and feel like it is close to working..
Here is the entire error output
WordPress database error: [Unknown column 'vb_threadid' in 'field list']
UPDATE wp_posts set vb_threadid = 3091 WHERE ID = 7
Warning: Cannot modify header information - headers already sent by (output started at /home/.dahliadryer/scsp/discussion.socalskateparks.com/news/wp-includes/wp-db.php:121) in /news/wp-includes/pluggable.php on line 275
Jafo232
02-13-2007, 01:35 AM
It sounds to me like the activation did not take affect. Are you sure your using the 2.05 version of this plugin?
miloheckport
02-13-2007, 01:52 AM
I have 2.05 installed. I did try making the change to vbridge.php but still got the same error.
Jafo232
02-13-2007, 02:04 AM
The error is there because the table was not created which makes me wonder if you activated it correctly? You will need to deactivate and activate the plugin. The vb_threadid column is created upon activation.
miloheckport
02-13-2007, 02:12 AM
I deactived the plugin and then activated it and still the same problem . I checked the table and the column was not created. Should I add the column manually?
miloheckport
02-13-2007, 02:38 AM
I added the column and all is good..
Jafo232
02-13-2007, 03:41 AM
I know that there are some issues with the activate/deactivate method in WP. I was hoping it was addressed in 2.1 but maybe not. The problem is, it uses AJAX when you click the activation. Sometimes the method caches so the script is never actually run. Anyway, glad you got it working.
miloheckport
02-13-2007, 04:01 AM
Thanks for your help and now I just need to work on the wordpress templates and import all of my old CuteNews into WordPress. I must say VBulletin has to be one of the best software products out there and thanks to people like you it gets better and better...
Jafo232
02-13-2007, 01:54 PM
Thanks for your help and now I just need to work on the wordpress templates and import all of my old CuteNews into WordPress. I must say VBulletin has to be one of the best software products out there and thanks to people like you it gets better and better...
Great! Now click install ;)
pcoskat
02-13-2007, 05:27 PM
This mod looks GREAT!
I was about to go with Expression Engine for one of my new sites, and was kind of bummed about it since it doesn't integrate with VB, but after seeing this mod, I'm re-thinking things.
Nice work!
jglass38
02-13-2007, 05:39 PM
Hey there. I am using VB 362 , wp 2.1 and the newest release of your mod. I am just trying to share users between vb and wp. I installed the plug in, and went to adjust the forum info (even though I dont want it for the comments feature). I didn't test it and turned on auto integrate. as soon as I did that, every page I go to is blank in WP. I removed the mod and it works fine again. I put the mod back in and all pages are blank. Any idea where I went wrong? Thanks!
Jamie
Jafo232
02-13-2007, 05:52 PM
Yeah, you turned auto-integrate on... I am not sure how more clear I could have made it that to NOT do that until you test it. ;)
Ok, my first question would be, can you edit your MySQL tables manually?
jglass38
02-13-2007, 06:05 PM
Yeah, you turned auto-integrate on... I am not sure how more clear I could have made it that to NOT do that until you test it. ;)
Ok, my first question would be, can you edit your MySQL tables manually?
Yes...I am bad at reading directions ;) . I just wanted to use the user sharing so I figured it wasn't necessary. I can edit the tables.
Jafo232
02-13-2007, 06:09 PM
Ok, open the wp-options table and find the option with the option name vbb_VBION. Make the option value (in the option_value column) 0. So set the option to the number zero.
Activate the plugin, and TEST before you auto-integrate.
jglass38
02-13-2007, 06:53 PM
Ok, open the wp-options table and find the option with the option name vbb_VBION. Make the option value (in the option_value column) 0. So set the option to the number zero.
Activate the plugin, and TEST before you auto-integrate.
I got it fixed but now when I do a test post and click publish it just goes to a blank page...Any ideas?
jglass38
02-13-2007, 07:22 PM
When I deactivate the mod and do a test post it works. I am not sure where the issue is. Thanks again!
Jafo232
02-13-2007, 07:52 PM
When I deactivate the mod and do a test post it works. I am not sure where the issue is. Thanks again!
Umm, so it is working?
jglass38
02-13-2007, 09:14 PM
Umm, so it is working?
It is not. When the mod is enabled and I try to do a test post, it just goes to a blank page and no post is made. With the mod disabled it works fine.
When I reenabled the mod just now at the top of the page I see:
WordPress database error: [Duplicate column name 'vb_threadid']
ALTER TABLE wp_posts ADD vb_threadid INT(10)
jglass38
02-14-2007, 12:06 AM
It is not. When the mod is enabled and I try to do a test post, it just goes to a blank page and no post is made. With the mod disabled it works fine.
When I reenabled the mod just now at the top of the page I see:
WordPress database error: [Duplicate column name 'vb_threadid']
ALTER TABLE wp_posts ADD vb_threadid INT(10)
It seems like people were having the same problem with the other mod that you based this on. I didn't see that there was ever a resolution to the problem. I assume its not finding the vbulletin forum to make the post but I looked through all the config and everything looks good.
Jafo232
02-14-2007, 12:35 AM
It seems like people were having the same problem with the other mod that you based this on. I didn't see that there was ever a resolution to the problem. I assume its not finding the vbulletin forum to make the post but I looked through all the config and everything looks good.
The error is normal when you activate, deactivate, then re-activate. Means nothing.
I think the issue here is, you did not enter the correct setting under the options.
jglass38
02-14-2007, 12:39 AM
The error is normal when you activate, deactivate, then re-activate. Means nothing.
I think the issue here is, you did not enter the correct setting under the options.
Can you point me in the right direction? For VB User ID I have Id 1 which is the administrator account. For VB username I have administrator. For VB forum ID i have the id of the forum I want as the default (6). For url I have http://domain.com/forum (have also tried it with just http://domain.com and for relative path /forum . Database prefix is empty per the config.php file. Auto integrate is off, post to forum is on.
Jafo232
02-14-2007, 12:41 AM
There may be a more descriptive error message in your servers error log.
jglass38
02-14-2007, 12:43 AM
There may be a more descriptive error message in your servers error log.
Where would I find that? Its a virtual hosted server.
jglass38
02-14-2007, 12:45 AM
I am also curious how it would post to a forum without authentication of some type. The forum is locked down to just administrators posting.
Jafo232
02-14-2007, 12:46 AM
Where would I find that? Its a virtual hosted server.
I am not sure, it depends on the host. Many hosts give you access to the error logs via a control panel. Some give you direct access (example, linux running apache: /var/log/httpd/error_log).
Jafo232
02-14-2007, 03:03 AM
Just to follow up on the issue jglass38 was having. We tinkered with it via IM and found out the issue was because his forum was locked down tight to not allow anyone except admins and moderators in. Unregistered users need to be able to at least see the forum home page. If your forum goes right to the login page from your index.php page, then this plug-in will not work.
Edited his permission scheme, and all seemed to work out.
jglass38
02-14-2007, 01:01 PM
Just to follow up on the issue jglass38 was having. We tinkered with it via IM and found out the issue was because his forum was locked down tight to not allow anyone except admins and moderators in. Unregistered users need to be able to at least see the forum home page. If your forum goes right to the login page from your index.php page, then this plug-in will not work.
Edited his permission scheme, and all seemed to work out.
I can't say enough about how great Jafo was to work with me on this through IM last night. He went above and beyond! Great mod and great coder! Thanks again...
Jamie
X Quiz
02-15-2007, 02:39 PM
it's not working in 3.6.0 !!
when I login to my WP admin page, it goes automatically to my forum ..
It's really a GREAT plugin ..
Please,, any helps?
Jafo232
02-15-2007, 02:45 PM
it's not working in 3.6.0 !!
when I login to my WP admin page, it goes automatically to my forum ..
It's really a GREAT plugin ..
Please,, any helps?
Well first thing I would say is, upgrade to 3.6.4, your vulnerable.
Second, you don't login to the wp admin page. You login via the forum.
Then you go to the wp-admin index page. Some servers may require that you check the remember me box depending on how they handle sessions.
wottech
02-17-2007, 01:15 AM
I have been messing with this tonight, attempting to get it to work with subdomains (changing all the paths in vbbridge.php to the actual path to my site). I only want to use the mod for user integration. I am also trying this out on WordPress MU, so that might be where the error is coming into play. But I figured I'd post just to see if maybe there is just something else I am missing that might be a relatively easy fix... Here is the error I am receiving:
Fatal error: Cannot redeclare update_category_cache() (previously declared in /home/*****/*****/members.60degreev6.com/wp-includes/functions.php:593) in /home/*****/*****/60degreev6.com/includes/functions_gallery.php on line 682
Jafo232
02-17-2007, 04:25 AM
I doubt this will work with MU.. I also have fears that it may not work well with sub-domains either.
wottech
02-17-2007, 05:08 AM
With the modifications I had done to vbbridge.php, it seemed I got everything to work just fine with the subdomains. And I looked at the files in the error I listed above. Ended up changing the name of the function in the functions_gallery.php, so that works now as well. I also had to change the name of a file in the vbbridge.php file (its now just registration.php in MU, versus registration_function.php). So it all looked like it was working decently. I got a post to go to the forum, so that was exciting. But, I think I came up with an issue I'm not can be worked around with MU... But you never know. That's where you guys come in :)
For each blog created, it creates new SQL tables, but they are just numerical equivalents to the standard tables (ie, wp_users is now wp_users, wp_1_users, wp_2_users, and so on). The mod adds the information just fine to the wp_XXX tables, but not to the numbered ones. Therefore, it doesn't seem like the user gets logged in to the blog. Any ideas on this one?
Jafo232
02-19-2007, 12:24 PM
I am not familiar with WP MU at all, so I really couldn't help you there.
sovereign87
02-21-2007, 09:29 AM
jafo232
can i use this bridge with WP MU? i only want user integration (when you log in vb also logged in wp and sing up to vb also signed wp) is it possible with thisi bridge?
wottech
02-21-2007, 04:13 PM
jafo232
can i use this bridge with WP MU? i only want user integration (when you log in vb also logged in wp and sing up to vb also signed wp) is it possible with thisi bridge?
I am trying to do the same thing, but I have run into some issues. From what I can tell, each blog you create has a seperate userlist. This hack only imports into the main userlist. I've been busy the last few days, so I haven't been able to look into it any further though.
And if you look at the post right above yours, Jafo basically spells out that he is not familiar with WP MU at all.
miloheckport
02-26-2007, 04:03 PM
This is a great mod - thanks. I have the mod installed here
http://discussion.socalskateparks.com/news/?cat=1
The only problem I have is on the main index page it shows that there are no comments and when you click on the link to open the page it shows the correct number of comments. Any idea on what I need to change so that it shows the correct number of comments on the index page? I am using vbulletin for comments. Thanks
Jafo232
02-26-2007, 04:28 PM
I can't seem to get to your site at all, so I cant be exactly sure.. If you are able to view your database, please check and see if the column vb_threadid was created in the wp_posts table.
miloheckport
02-26-2007, 04:41 PM
Should be OK now.
jared85
02-26-2007, 11:18 PM
Ok, I am about half way through the install.
Everything seems to be working when I post. It posts to VB correctly.
Now I am trying to work on using VB comments.
I started editing single.php.
I had to hardcode the paths in the vbbridge.php, however I am getting an error.
Fatal error: Class 'vBulletinHook' not found in D:\htdocs\personal\interwebgeek\forum\includes\cla ss_bbcode.php on line 2347
Any ideas?
Jafo232
02-26-2007, 11:45 PM
Should be OK now.
Did you edit the template at all so the new comments would work? It appears to me to be using the WP comment system.
I see it correctly when viewing a single post, however, on the front page it is not appearing correctly.
Jafo232
02-26-2007, 11:45 PM
Ok, I am about half way through the install.
Everything seems to be working when I post. It posts to VB correctly.
Now I am trying to work on using VB comments.
I started editing single.php.
I had to hardcode the paths in the vbbridge.php, however I am getting an error.
Fatal error: Class 'vBulletinHook' not found in D:\htdocs\personal\interwebgeek\forum\includes\cla ss_bbcode.php on line 2347
Any ideas?
Umm, is your hook system on (plugin system) in Vbulletin?
jared85
02-26-2007, 11:51 PM
Well I am new to VB, but I set the option to 'on' earlier but I still get the same error.
Is there anything else I can check?
Thanks
Jafo232
02-27-2007, 12:15 AM
Do you get this error without editing single.php? It could very well be your WP template setup is unfamiliar to me.
miloheckport
02-27-2007, 12:18 AM
Did you edit the template at all so the new comments would work? It appears to me to be using the WP comment system.
I see it correctly when viewing a single post, however, on the front page it is not appearing correctly.
The comments are showing correctly on the main index page (my mistake for not identifying the correct area where the problem is happening)
This works> http://discussion.socalskateparks.com/news/
The comments are not showing correctly when you drill down to a category.
This is where the problem is > http://discussion.socalskateparks.com/news/?cat=1
jared85
02-27-2007, 12:23 AM
Do you get this error without editing single.php? It could very well be your WP template setup is unfamiliar to me.
Jafo, all I have done to the single.php was insert the first part, like this...
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php
### Vbridge Call
$vbridge = Comment_Handler($post->ID);
###
?>
I uploaded what I have so far. It is just the default skin that comes with the latest install of WP.
cheers
jared85
02-27-2007, 05:43 PM
Were you able to tell anything from my files?
Bubble #5
03-01-2007, 12:41 AM
What is the main difference between the author, contributor and subscriber settings? I would think that an 'author' is a contributor and a subscriber. Not sure about what any of the titles mean.
Also, now it won't allow us to login as the admin of wordpress (username admin) since we never registered as 'admin' through the forum. When we go to the blog and click on login, it now sends us to the forum, instead of the Wordpress login page. Same with register. If we log in as the forum admin it does allow us to login to the wordpress ACP, BUT only as a level 8 admin (when it's supposed to be level 10). So how are we supposed to login to Wordpress as the admin (level 10)? :confused:
Jafo232
03-01-2007, 02:02 AM
Were you able to tell anything from my files?
Yes, I was able to tell that you didn't follow the directions in the readme. :)
You need to add the comment code that is in the readme file to use the comment feature.
Jafo232
03-01-2007, 02:04 AM
What is the main difference between the author, contributor and subscriber settings? I would think that an 'author' is a contributor and a subscriber. Not sure about what any of the titles mean.
Also, now it won't allow us to login as the admin of wordpress (username admin) since we never registered as 'admin' through the forum. When we go to the blog and click on login, it now sends us to the forum, instead of the Wordpress login page. Same with register. If we log in as the forum admin it does allow us to login to the wordpress ACP, BUT only as a level 8 admin (when it's supposed to be level 10). So how are we supposed to login to Wordpress as the admin (level 10)? :confused:
You can find the differences between each WP usergroup at the WP site. Each role has different permissions.
I have a feeling you did not follow the readme to the letter. You do understand that you cannot use the same admin username in WP and VB right? This is spelled out in the readme.
Once you activate the plugin, you never login or register with WP again, only VB.
Bubble #5
03-01-2007, 01:55 PM
You can find the differences between each WP usergroup at the WP site.
Actually they don't, at least I couldn't find anything regarding it. They just tell you about user levels (level 10, level 4. etc). I will ask on another site about what their main differences are.
I have a feeling you did not follow the readme to the letter.
You'd be wrong :D We specifically made sure that the username at WP was different. WP forces you to use 'admin' anyway so it really wasn't an issue.
Once you activate the plugin, you never login or register with WP again, only VB.
Which brings us back to our question... since we never originally registered as 'admin' through the forum, how do we log-in at vb with that username? :confused:
Jafo232
03-01-2007, 02:02 PM
Which brings us back to our question... since we never originally registered as 'admin' through the forum, how do we log-in at vb with that username? :confused:
You don't. Admin is basically never used again. You should have mapped a VB usergroup to administrator. That user should have admin privis. If not, deactivate the plugin (just rename the plugin file), login as admin, rename the plugin to the original name, turn off integration, and remap the usergroups correctly.
Bubble #5
03-01-2007, 02:11 PM
You don't. Admin is basically never used again.
Well that's not going to work because only the original WordPress admin has a level 10 access! All other WP admins are only level 8 :(
So basically what you're saying is that by installing this hack that the main Wordpress admin (level 10) is removed? :confused:
Jafo232
03-01-2007, 02:20 PM
Well that's not going to work because only the original WordPress admin has a level 10 access! All other WP admins are only level 8 :(
So basically what you're saying is that by installing this hack that the main Wordpress admin (level 10) is removed? :confused:
From what I understand, version 2.x does not use user levels, it only uses roles:
http://codex.wordpress.org/User_Levels
Note: The User Levels described in this article are replaced in WordPress 2.0 by Roles and Capabilities.
So being an 8 or a 10 is not relevant.
Further information follows:
http://codex.wordpress.org/Roles_and_Capabilities
WordPress Version 2.0 introduces the concept of Roles. The WordPress distribution comes delivered 'standard' with five pre-defined Roles: Administrator, Editor, Author, Contributor, and Subscriber. Each Role is allowed to perform a set of tasks called Capabilities. There are thirty Capabilities including publish_posts, moderate_comments, and edit_users. The Capabilities are pre-assigned to each Role.
The Administrator Role is allowed to perform all possible Capabilities. Each of the other Roles has a decreasing number of allowed Capabilities. For instance, the Subscriber Role is allowed just the read and level_0 Capabilities. One particular Role should not be considered to be 'senior to' another Role. Rather, consider that Roles define the user's responsibilities within the blog.
Bubble #5
03-01-2007, 02:48 PM
From what I understand, version 2.x does not use user levels, it only uses roles:
That would be incorrect. Firstly, they still describe using both roles and user levels on their site for the current (http://codex.wordpress.org/Roles_and_Capabilities#Administrator) version.
Role Name: Administrator
Capabilities
switch_themes
edit_themes
activate_plugins
edit_plugins
edit_users
edit_files
manage_options
moderate_comments
manage_categories
manage_links
upload_files
import
unfiltered_html
edit_posts
edit_others_posts
edit_published_posts
publish_posts
edit_pages
read
level_10
level_9
level_8
level_7
level_6
level_5
level_4
level_3
level_2
level_1
The admin that this hack imported is a level 8, not a level 10. There needs to be at least one level 10 admin in control at all times. We cannot just effectively delete the level 10 admin as you suggested that this hack does. We'd love to use this hack, but not at the expense of losing our level 10 admin account :(
Secondly, we tried to install another plugin the other day and we received the error: "Sorry, a user level 8 cannot make this change" so we know levels are still being used. We are also using a fresh install of their latest version (2.1.1).
Jafo232
03-01-2007, 02:55 PM
You failed to read further down that page:
"Maintained for backward compatibility for Plugins"
The error you are getting is most likely from the plugin you are trying to install, not WP. The plugin needs to be updated.
I can install/uninstall any plugin on three different fresh installs of the latest version of WP. User levels are now deprecated.
The page clearly states:
Administrator - Somebody who has access to all the administration features
...
the role of Administrator encompasses every possible task that can be performed within a WordPress blog.
Greg-J
03-02-2007, 09:33 PM
Does anyone have this working with VB3.5.x ? If so, were there any modifications involved?
Jafo232
03-03-2007, 05:42 AM
Does anyone have this working with VB3.5.x ? If so, were there any modifications involved?
It has been a while since I have used 3.5.x, so I cannot be a 100% sure. From what I know of the VB code, I see no reason why it will not work, but please report any problems.
Bubble #5
03-04-2007, 06:28 PM
2.1.2 is a mandatory upgrade, as a cracker has altered 2.1.1's files. However when we went to upgrade and tried to activate this plugin we received this error:
WordPress database error: [Duplicate column name 'vb_threadid']
ALTER TABLE wp_posts ADD vb_threadid INT(10)
How should we fix this? :confused:
Also, we came up with a great feature idea if you'd like to include it in the next version. Since vB members are now automatically being subscribed to the sites blog, it would be great if their avatar also carried over. This way when they post a comment, their vb Avatar would also be displayed :)
Jafo232
03-04-2007, 07:09 PM
2.1.2 is a mandatory upgrade, as a cracker has altered 2.1.1's files. However when we went to upgrade and tried to activate this plugin we received this error:
How should we fix this? :confused:
Also, we came up with a great feature idea if you'd like to include it in the next version. Since vB members are now automatically being subscribed to the sites blog, it would be great if their avatar also carried over. This way when they post a comment, their vb Avatar would also be displayed :)
All that error means is the column already exists. The plugin should be enabled at that point. If it really bothers you, delete the vb_threadid column from the wp_posts table.
sandrodz
03-04-2007, 10:05 PM
can I use subdomain? like blog.flunkme.com for the blog? also do I have to change usergroup? can I use default vb name? like registered group?
thx.
Jafo232
03-05-2007, 01:25 AM
can I use subdomain? like blog.flunkme.com for the blog? also do I have to change usergroup? can I use default vb name? like registered group?
thx.
The script may experience certain cookie and/or session issues if using different sub-domains. I cannot tell you yes or no as I have not tested it in such an environment.
I do not understand your usergroup question.
cddw.ltd
03-05-2007, 10:38 AM
Never Mind : got it working now :)
Bubble #5
03-05-2007, 02:59 PM
All that error means is the column already exists.
That's what we first thought, but we deleted the vb_threadid column from the wp_posts table and we STILL get the same error everytime we try to install a plugin :( The only way the error goes away is if we deactivate this hack before we install the new plugin. Using the latest version of both this hack and Wordpress.
Jafo232
03-05-2007, 02:59 PM
Never Mind : got it working now :)
Great, click install please, ;)
Greg-J
03-07-2007, 09:50 PM
It has been a while since I have used 3.5.x, so I cannot be a 100% sure. From what I know of the VB code, I see no reason why it will not work, but please report any problems.
I installed and tested it and everything seemed to go fine until I logged out and tried to log back in. I would get forwarded to the URL entered in plugin manager as my forum unstall instead of the login rendering my wp admin completely inoperable. Regardless of browsers or cookies.
Let me know if you'de like my help in getting this running. I could really use it and will pay for the service of making it work with 3.5.4.
Thank you
Jafo232
03-08-2007, 02:59 AM
When you install this plugin, you no longer login via the wp login, only via the forum. If you find yourself locked out (i.e., you didn't map the usergroups), just rename the plugin and that will deactivate it.
mikesz
03-08-2007, 04:26 AM
Hello, I have got to the point where I can post to my forums and am now trying to map user groups. I can not find a default use, I have supermoderator, moderator, uses waiting for email verification and nonlogged users, nothing for logged/standard users, am I missing something?
TIA
mikesz
mikesz
03-08-2007, 04:48 AM
Hello, if this was a dog it would have bit my head off.. I was trying to add complexity where none existed. I thought the two columns were interacting with each other not realizing the they were all separate user groups. sorry for the trouble ... regards, mikesz
mikesz
03-08-2007, 04:50 AM
Hello, if this was a dog it would have bit my head off.. I was trying to add complexity where none existed. I thought the two columns were interacting with each other not realizing the they were all separate user groups. sorry for the trouble ... regards, mikesz
btw, I am running the wordpress in a subdomain so I had to change the relative path in the script to absolute and the instruction worked great!
mikesz
03-08-2007, 08:33 AM
I got everything set correctly I think and I can post a message and it gets posted to WP and VB like I expected. I mapped all the user groups and that appears to have worked but the login recognition is not working. I logged into the webmaster account on vb and called the blog and expected that it would know that I am a vb user but it does not. I can log into the admin account on WP but I thought that wp was suppose to know how the vb users are?
any ideas?
TIA, mikesz
Jafo232
03-08-2007, 03:03 PM
Could be a problem with the subdomains as discussed before in this thread. It gets a bit tricky with the cookies and sessions. It is quite possible that is may not work for you with subdomains.
capncapo
03-08-2007, 04:43 PM
I am having trouble with this. I have vb 3.6.4 and WP 2.1.2 I have installed everything and I can make a test post. But when I try to login, like others it takes me to the forums. If I go to the wp-login.php it does the same takes me to the forum. If I go to my site and where I have wp installed I am not logged in even tho I am logged in via VB. I have followed the instructions to the letter and mapped the users.
Jafo232
03-08-2007, 05:27 PM
Are you using subdomains? Did you try checking the "Remember Me" box?
Greg-J
03-08-2007, 05:54 PM
When you install this plugin, you no longer login via the wp login, only via the forum. If you find yourself locked out (i.e., you didn't map the usergroups), just rename the plugin and that will deactivate it.
I mapped the usergroups, but when I log out of wordpress it takes me to the forums with the message that I didn't log out properly and a link to log out. I click that link, am logged out, and then log back in. When visiting the wordpress install I am logged out.
I have done this with both my username and another username on another computer with the same results. The wordpress install simply does not grab the login information.
Jafo232
03-08-2007, 06:00 PM
Yes, as per the readme it does matter. The hack will NOT overwrite current WP users. Make sure that your VB admin username is not the same as the WP admin username.
capncapo
03-08-2007, 06:10 PM
Are you using subdomains? Did you try checking the "Remember Me" box?
No subdomains.
My forum is at http://mydomain.com/forums The World Press is at http://mydomain.com/wp
I have checked the Remember Me box and it is still not working, so I am not sure what the problem is.
Greg-J
03-08-2007, 06:29 PM
Yes, as per the readme it does matter. The hack will NOT overwrite current WP users. Make sure that your VB admin username is not the same as the WP admin username.
I tried it with another username on a different PC with the exact same effect. Logged into the forum, clicked a link from the forum to the blog and all I get is the Login link with redirects me to the forum homepage.
capncapo
03-08-2007, 08:11 PM
I tried it with another username on a different PC with the exact same effect. Logged into the forum, clicked a link from the forum to the blog and all I get is the Login link with redirects me to the forum homepage.
This is the same problem that I am having.
Greg-J
03-08-2007, 08:16 PM
If you figure it out, let me know because I currently don't have a clue on how this is suppose to work.
To me it would make more sense to allow them to simply log in with their vbulletin credentials on either vbulletin or wordpress. While it may make sense to a developer to have it the way it is now, it makes a lot less sense to an end user.
jesusdlg
03-08-2007, 10:26 PM
Hello Jafo, everyboy!
1st of all thank you for this plugin. I'll like to install the plguin but i'¡ve a few questions before, hope you can help me.
Currently I've a vb forum with lots of people in there so I'm planning to make this install just to permit the vb users to post comments on my new wp install. I dont want to have the forum as the post area for my wp, i just want to share users between system. Can I do this?
Now regarding the admin, once I install this plugin, should I be able to login on the wp-admin? As I want to install some other plugins in order to perform certain tasks on my wp.
Thanks in advance for your help and your effort to create this plugin.
Jesus
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.