Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
VBulletin-Wordpress Bridge for 3.64 Details »»
VBulletin-Wordpress Bridge for 3.64
Version: 1.00, by imranbaig imranbaig is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.6.4 Rating:
Released: 12-02-2006 Last Update: 12-21-2006 Installs: 20
DB Changes
Additional Files  
No support by the author.

I wanted to start a site with WP the best blogging software and VB the Best forum software.
After searching at vb.org, I found a bridge which was for vb 3.0. and WP 2.0, I just edited carefully the newer version files, with permission from author Here, I'm releasing this bridge:

Note:
  • This hack will only work if your WordPress and vBulletin tables are in a single database.
  • This hack has only been tested on adding entries directly from the admin panel. It has not been tested on xmlrpc clients.
  • Use at your own risk. I will not be held liable for any loss of data nor problems that you might encounter on your site during the whole process of the mod.Backup your files and database(s) before proceeding.

WP 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:
<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:
<?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:
       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:
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:
ALTER TABLE `wp_postsADD `vb_threadidINT(10); 
Upload postfeed.php to your forum root included in the attachment.
Demo here:
DEMO
Please forgive me if there are any errors or anything left out in package
I'll try and support as much as I can. But cannot guarantee it

EDIT: Upload the new Attached postfeed.php, this was the culprit which was giving errors. This should fix everything.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-03-2006, 08:19 PM
imranbaig imranbaig is offline
 
Join Date: Sep 2005
Location: India
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by category View Post
yep here is my site http://www.drillerdeals.com/

i get no comments i dont understand what am i doing wrong i post on forum than it publish on wordpress?

kinda confused
If you want not to dsiplay comments on front page or if your comments are off then. Do the following:
find this in ur feed_functions.php:
PHP Code:
function comments_rss_link($link_text 'Comments RSS'$commentsrssfilename '') {
    global 
$post;
    include_once (
ABSPATH WPINC '/vb3-settings.php');

    if (
$vb_bridge) {
        
$url $vb_path '/postfeed.php?t=' $post->vb_threadid '&type=rss2';
    } else {
        
$url comments_rss($commentsrssfilename);
    }

    echo 
"<a href='$url'>$link_text</a>";

Replace it with:
PHP Code:
 function comments_rss_link($link_text 'Comments RSS'$commentsrssfilename '') {
    
$url comments_rss($commentsrssfilename);
    echo 
"<a href='$url'>$link_text</a>"
Or alternatively use this attached file and replace the existing one.
I think this should fix your problem, Also I have updated your files.
Let me know your result.
Reply With Quote
  #13  
Old 12-03-2006, 08:19 PM
category category is offline
 
Join Date: Jul 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

---
Reply With Quote
  #14  
Old 12-03-2006, 08:20 PM
imranbaig imranbaig is offline
 
Join Date: Sep 2005
Location: India
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by category View Post
---
Please check the above post.
Reply With Quote
  #15  
Old 12-03-2006, 08:27 PM
category category is offline
 
Join Date: Jul 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i updated it with your attachment still same problem comments are off
Reply With Quote
  #16  
Old 12-03-2006, 08:33 PM
imranbaig imranbaig is offline
 
Join Date: Sep 2005
Location: India
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh that one :P, I have fixed it check your site.
EDIT:Please Delete all your junk comments, test comments and start from beginning. since its getting late almost 4:30 in the morning I will hit bed soon
Reply With Quote
  #17  
Old 12-03-2006, 08:37 PM
category category is offline
 
Join Date: Jul 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah you fix the no comments now but how does the link works to the forum?
Reply With Quote
  #18  
Old 12-03-2006, 08:44 PM
imranbaig imranbaig is offline
 
Join Date: Sep 2005
Location: India
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Link works if your comments are on .
Since you disabled comments, in your template comments.php, the link does not work.
If you can tweak this your self you might able to get this work.
Look in my site in demo comments are on and all comments are from forum. Effectively comments are posted in forum, just turn them on and revert the code.
Reply With Quote
  #19  
Old 12-03-2006, 08:52 PM
category category is offline
 
Join Date: Jul 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome the comments are on now but how do i specify the tread becuase if you press comment now it goes to

also i used your comments template
Reply With Quote
  #20  
Old 12-03-2006, 09:10 PM
imranbaig imranbaig is offline
 
Join Date: Sep 2005
Location: India
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It just too complicated, why dont you turn on ur comments from wp??
Reply With Quote
  #21  
Old 12-03-2006, 09:26 PM
category category is offline
 
Join Date: Jul 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the comments are on
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08610 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete