The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Complete Wordpress/Vbulletin Bridge - Share Users And Postings Details »» | |||||||||||||||||||||||||||
Complete Wordpress/Vbulletin Bridge - Share Users And Postings
Developer Last Online: Oct 2022
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:
01/03/2007 - Fixed the unlock_tables() issue on some setups. 01/03/2007 - Fixed a bug in the script that if you used a MySQL database prefix, integration would not work. Please see this post for more information! Special thanks to axisoverdrive for giving me access to his server and letting me troubleshoot the issue! 01/05/2007 - Fixed issue where if a user saved (not published) and published later, the post would not be added to the forum. 01/05/2007 - When a post is edited, it will also be edited in the forum. 01/08/2007 - Modified slightly so when posts are edited, so are the titles (if edited). 02/07/2007 - Major modifications to new version (now 2.05). The list follows:
Special Thanks: axisoverdrive - Debugging Help, Kyraal - Paypal Donation, Kalina - Paypal Donation, Wildcard27 - Paypal Donation, Shri - Paypal Donation, pspcrazy - Paypal Donation, Tomahoochi - Paypal Donation. If you use this plug-in, and find it useful, please support us by nominating us for Mod Of The Month (MOTM) in the top right corner of this thread, or feel free to donate. Show Your Support
|
Comments |
#382
|
|||
|
|||
This is my first stab at creating the modification I was asking for in my previous post. Basically I want the "select" box that is visible on the "write" page for wordpress to offer some more usability:
1. I wanted it to be larger (easy enough) 2. I wanted it to show the relationships between my top-level forums (Categories), my second level forums (Forums) and my third level forums (Sub-Forums) so that I could make intelligent decisions about which "forum" i wanted my post to be in. Here is the modification. It is pretty raw right now but functional. I am working to factor it out to something a little more friendly to anyone by using the various api calls and variables presented from VB. Once I get the next cut done which should include these "upgrades" I will post it as well. I attached a picture of what this looks like as well so you can get an idea of what I am talking about in case I am not explaining it clearly. See the attachments. If you have any thoughts on how to do this better or more efficiently please let me know. I am decent coder but struggle with arrays: This is a context diff of vbbridge.php Code:
[root@abbadon plugins]# diff -b -B -c vbbridge.php.orig vbbridge.php *** vbbridge.php.orig Sun May 20 23:15:23 2007 --- vbbridge.php Mon May 21 22:47:32 2007 *************** *** 421,440 **** function VB_Post_Form () { if (get_option('vbb_VBPOST')) { ?> ! <CENTER> Select Forum To Post To: <BR><select id="forumid" name="forumid" class="inputbox" size="5" > ! <?php $wpdb =& $GLOBALS['wpdb']; - $sql = "SELECT forumid, title FROM " . get_option('vbb_VBPRX') . "forum order by displayorder"; - $results = $wpdb->get_results($sql); ! foreach ($results as $forum) { ! if ($forum->forumid == get_option('vbb_VBFID')) { $selector = ' selected'; } else { $selector = ''; } ! echo "<option value=$forum->forumid$selector>$forum->title</option>\n"; } - ?> </select> <BR> Or --- 421,491 ---- function VB_Post_Form () { if (get_option('vbb_VBPOST')) { ?> ! <!-- BEGIN EDIT BY ISI --> ! <CENTER> Select Forum To Post To: <BR><select id="forumid" name="forumid" class="inputbox" size="20" > <?php $wpdb =& $GLOBALS['wpdb']; + // connect to db (i couldn't figure out how to get this to work with the vbulletin api) + $conn = mysql_connect("localhost","dden","Oicu812"); + mysql_select_db("dden_blog", $conn); + + // create an array to keep track of what has been printed so we don't do it more than once + $printed = array(); + + // Get all top level (no parent) forums + $results = mysql_query("SELECT forumid, title, childlist FROM " . get_option('vbb_VBPRX') . "forum where parentid = '-1'"); + while ($row = mysql_fetch_array($results, MYSQL_ASSOC)) + { + // Check to see if the forumid has already been printed. + // If not print it and add it to the array of printed forumid to prevent duplicates + if (!array_search($row['forumid'], $printed)) + { + echo "<option value=$row[forumid]>$row[title]</option>\n"; + array_push($printed, $row['forumid']); + } + + // Get the forumid and title of the children of the top level + $childlist = explode(",", $row['childlist']); + foreach ($childlist as $child1) + { + if ($child1 != $row['forumid']) + { + $child1_results = mysql_query("SELECT forumid, title, childlist FROM " . get_option('vbb_VBPRX') . "forum where forumid = '$child1'", $conn); + while ($child1_row = mysql_fetch_assoc($child1_results)) + { + // Check to see if the forumid has already been printed. + // If not print it and add it to the array of printed forumid to prevent duplicates + if (!array_search($child1_row['forumid'], $printed)) + { + print "<option value=$child1_row[forumid]>--> $child1_row[title]</option>\n"; + array_push($printed, $child1_row['forumid']); + } + + // Get the forumid and title of the children of the first level for forum + $childlist2 = explode(",", $child1_row['childlist']); + foreach ($childlist2 as $child2) + { + if ($child2 != $child1_row['forumid']) + { + $child2_results = mysql_query("SELECT forumid, title, childlist FROM " . get_option('vbb_VBPRX') . "forum where forumid = '$child2'", $conn); + while ($child2_row = mysql_fetch_assoc($child2_results)) + { + if (!array_search($child2_row['forumid'], $printed)) + { + print "<option value=$child2_row[forumid]> ----> $child2_row[title]</option>\n"; + array_push($printed, $child2_row['forumid']); + } + } + } + } + } + } ! } } ?> + <!-- END EDIT BY ISI --> </select> <BR> Or Suggestions and comments welcome. -- Isi |
#383
|
||||
|
||||
Anybody can help me please, I mapped a special usergroup to authors, but they can't post because the error "you don't have enough permissions to acces this site".
In the wp acp the users are marked as authors. As Administrator I can write a post. Thanks Ok, I get it, it is necessary to assign the user rights again on /wp-admin/users.php manually. |
#384
|
|||
|
|||
Quote:
I made no changes to the site. The mod was working fine, as were both my blog and forums. It seems to have just occured randomly. I'm thinking it may have something to do with insufficient bandwidth. |
#385
|
|||
|
|||
Hi all,
I seem to be running into a lot of trouble when installing this plugin. I am new to vBulletin however and this is the first mod that I've tried to install. I followed the readme exactly and it looked as though everything was working. I made the test post and it worked great. However, soon after that I was unable to access my WP admin page and kept getting a "You do not have sufficient permissions to access this page" message. Deleting the plugin has allowed me back into WP but I can't seem to get it working, each time I reinstall I get the same. I'm not particularly interested in the mapping of users feature. I just want the option for a thread to be made automatically on the forums when a WP article is posted, the comments link to redirect to it and that's about it. If somebody could talk me through the installation it'd be greatly appreciated. I'm available on MSN if anybody has a moment? Thanks, Parm |
#386
|
|||
|
|||
Mapping is required, which is why you cannot login.
|
#387
|
|||
|
|||
Thanks for the update Jafo. When I first installed the plugin, on the mapping options page I chose not to map any of the users and I think that's what is now causing me problems.
How do I go about undoing what I've already done? I've tried removing and reinstalling the plugin but I can no longer get to the options page without being locked out of wordpress. |
#388
|
|||
|
|||
A got a couple questions:
a. Is it possible to hard code the blog commenting forum choice into every post without having to select it. When we post using windows live writer, it doesn't create the comment thread. b. I do not want to use user bridge, just commenting. Any suggestions? |
#389
|
|||
|
|||
I Installed this one and I made post to see if this one works till here everything Ok.. when I go to: Turn Auto-Integrate On: YES I can't log into the wordpress any more i am redirected at my index page.. I want to tell sth. my forum is on root so www.mysite.com and wordpress www.mysite.com/wordpress
at Forum Relative Path: I don't write anything because i don't know what to writw after all I try to replace the: Code:
chdir($_SERVER['DOCUMENT_ROOT'] . get_option('vbb_VBRPATH')); Code:
chdir('/myabsolute path'); |
#390
|
|||
|
|||
Please read the directions. From now on, I am not answering these "I cannot login to wordpress, I am redirected to the forum login". If you read the directions, you would understand why you are being redirected.
|
#391
|
|||
|
|||
So can you tell me why.. I tried o lot of times..
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|