vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - VBulletin-Wordpress Bridge for 3.64 (https://vborg.vbsupport.ru/showthread.php?t=133107)

imranbaig 12-02-2006 10:00 PM

VBulletin-Wordpress Bridge for 3.64
 
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.

projectego 12-03-2006 12:24 PM

Sounds awesome! I'll definitely check this out. ;)

MrBig 12-03-2006 04:15 PM

looks nice:) but
Quote:

This hack will only work if your WordPress and vBulletin tables are in a single database
this is the only thing stopping me from using it ...

imranbaig 12-03-2006 05:01 PM

Quote:

Originally Posted by MrBig (Post 1130941)
looks nice:) but


this is the only thing stopping me from using it ...

WP db can co-exists with vb db, without any problem.

Mecho 12-03-2006 06:22 PM

does it mean that every new post that sends to forum , sends to WP too ?!

if i'm right i really need this . would u plz just explain a little bit more .

Thanks

imranbaig 12-03-2006 07:28 PM

What ever you post at WP (under <!--more-->) goes to a specific forum id that you have to specify under vb3-settings.php. And for that particular forum/post comments are linked, and if any posts are done there, it will show as comments in wp. I hope that explains?

category 12-03-2006 07:35 PM

hey can you explain how to use it after you installed it i dont udnerstand becuase i have comments off now?

when i publish in wordpress it gives me a blank page

imranbaig 12-03-2006 07:48 PM

Did you upload all and read above instructions properly??
blank page does come yeh but it posts and publishes everything nicely.
I'm working on this fix, since it was way too much time taken for this I decided to release it, also I'm a professional designer and coder, work for other ppl hence very little time to spend but I'll find some time to fix that blank page error :)

category 12-03-2006 07:52 PM

yep here is my site
i get no comments i dont understand what am i doing wrong i post on forum than it publish on wordpress?

kinda confused

imranbaig 12-03-2006 07:59 PM

You have missed, some edits or just did not upload all files properly.
Looks like an error with file uploads pls upload them all properly. before you upload, just edit the files or pass me on ur ftp details i will be more than willing to check it out my self.


All times are GMT. The time now is 04:48 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.01326 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete