vBulletin/Wordpress Bridge

WordPress Settings:
If you want to do file edits your self then go here

Download the attached files, and you need to edit only the following files, not all.
Edit:wp-rss2.php
PHP Code:
Code:
<wfw:commentRSS><?php echo comments_rss(); ?></wfw:commentRSS>
PHP Code:
<wfw:commentRSS>http://www.yoursite.com/forum/showthread.php?t=<?php echo $post->vb_threadid; ?></wfw:commentRSS>
Save file.

EDIT file:vb3-settings.php
PHP Code:
Code:
<?php
// This just holds the vb variables
$vb_bridge = 1; // 1=on 0=off
$vb_forumid = '2'; // forum id to post copy of article
$vb_userid = '1'; // user id to use for posting the article
$vb_username = 'admin'; // name of the user id
$vb_path = 'http://www.yoursite.com/forum'; //complete url of forums
$vb_dbprefix = 'vb3_'; //vBulletin database prefix
$vb_readmessage = 'Read the full blog entry.'; //message to be used in the forum to link back to the blog entry
?>
Save file.
Now upload all files.
Note: I have edited, files for default wp-theme, if you want you can just upload comments.php to any other template it does not matter much if you are bridging it., but do the following changes to single.php only if you are using a different template then default one.

EDIT: file single.php:
Look for:
PHP Code:
Code:
       You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.
Replace it with:
PHP Code:
Code:
You can <a href="/forum/showthread.php?t=<?php echo( $post->vb_threadid ); ?>&goto=newpost">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.
Make sure you have your forum path correct there.
Now Upload all files to your wp root

vBulletin Settings:

The RSS feed will not work if you haven't activated RSS External synidcation on your forum. To do this, on your forums admincp, go to vBulletin Options->External Data Provider and check 'Yes' on Enable RSS Syncidcation.

DB Settings:
Run this query:
PHP Code:
Code:
ALTER TABLE `wp_posts` ADD `vb_threadid` INT(10);
Upload postfeed.php to your forum root included in the attachment.
 
Back
Top