PDA

View Full Version : Integration with vBulletin - Complete Wordpress/Vbulletin Bridge - Share Users And Postings


Pages : 1 2 [3] 4 5 6

abaum
08-21-2007, 12:38 PM
Hello,

is a conversion of this or a similar modification for Wordpress MU planned?

Greetings

Andreas

Jafo232
08-21-2007, 03:09 PM
ran into problem my members and guest can view the wordpress posting frontend and from the main vb thread with the "Integrate On" but as a admin i can't view it. It only shows this on the front page


but when i diabled the integration i can see it.and the path is correct any ideas

I am thinking something was mucked when you did the template edits. Not sure without actually seeing anything.

Jafo232
08-21-2007, 03:10 PM
is a conversion of this or a similar modification for Wordpress MU planned?


No plans at this time.

AntiThesis
08-22-2007, 11:25 AM
Hey Jafo

Sorry to bug you but is the comments only thing possible?

redraider
08-26-2007, 10:27 PM
when i put a post in wordpress with Bolds and URLs, it comes as <a href .... and <strong> on the forums. What am i doing wrong?

Jafo232
08-27-2007, 02:49 AM
The forum you post to should probably have HTML on.

redraider
08-27-2007, 01:43 PM
So Stupid of me! :o

Thanks, It works great :)

jamestl2
08-31-2007, 05:26 PM
Hey,
is there any way to put certain wp posts into different forums? For example, I have categories on my WP site like humor and politics, and I made a humor, and a politics board on my forum, so I wanted to put my WP posts into their corresponding VB boards.

Is this possible?
Hope this makes sense

WEBclay
08-31-2007, 05:29 PM
Yeah that is something I am interested too. Not in own forums but instead into subforums of a parent forum :)

LPH2004
09-01-2007, 02:32 AM
I have the bridge software installed and all appears to work except avatar images. Thank you!

http://www.whatisnew.com/2007/08/29/living-in-onenote/

Notice the broken images for the avatar. Any suggestions on how to get this to work? I saw someone did a replace on this line

<?php echo $vbridge[vb_parser]->do_parse($reply->pagetext, false, true); ?>

However, I was not sure what to put there.

Update: I changed themes and will continue to play around with things to see what is happening.

Jafo232
09-01-2007, 03:23 AM
Hey,
is there any way to put certain wp posts into different forums? For example, I have categories on my WP site like humor and politics, and I made a humor, and a politics board on my forum, so I wanted to put my WP posts into their corresponding VB boards.

Is this possible?
Hope this makes sense

Yes. When you make a post, there should be a drop down box to select which forum to post to.

XManuX
09-01-2007, 01:48 PM
Aha. Just noticed it.


[25-Jul-2007 16:05:30] PHP Warning: require_once(/includes/class_bbcode.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in c:\domains\caliburn-l2.com\webroot\news\wp-content\plugins\vbbridge.php on line 350
[25-Jul-2007 16:05:30] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/includes/class_bbcode.php' (include_path='.;c:\php\includes') in c:\domains\caliburn-l2.com\webroot\news\wp-content\plugins\vbbridge.php on line 350

Line 350:
require_once($vwd . '/includes/class_bbcode.php');

$vwd=
$vwd = getcwd();

I believe the "Forum URL" setting on the Vbridge settings defines that. It's set correctly though. Forum Relative path as well (/forums) I tried your absolute path fix, but no luck.


EDIT:

Well, resolved that. But now I get
Class 'vBulletinHook' not found in e:\domains\l2aethernia.com\wwwroot\forums\includes \class_bbcode.php on line 2397

And yes, the Plugin/Hook system is turned on.

Exactly same pbr here :

#1 : got the error on line 350 when adding VB comments feature to WP.

#2 : modified
chdir($_SERVER['DOCUMENT_ROOT'] . get_option('vbb_VBRPATH'));
into
chdir('/my/absolute/path/to/vb/dir');
but it didn't help

#3 : modified the line 350
from
require_once($vwd . '/includes/class_bbcode.php');
to
require_once( '/home/httpd/vhosts/MyDomain/httpdocs/boards/includes/class_bbcode.php');

and this solved the "Failed opening required '/includes/class_bbcode.php' (include_path='.;c:\php\includes')" error

#4 now i'm also getting the "Fatal error: Undefined class name 'vbulletinhook' in /home/httpd/vhosts/ladln.org/httpdocs/boards/includes/class_bbcode.php on line 2357" error (i also tried the define('DISABLE_HOOKS', true); )

any ideas ?

jsalvit
09-06-2007, 06:48 PM
Is there a fix to either strip out html code from the blog post, or replace it with bbcode? This way if someone sees the post on the blog, the style and links will work and then when they go to the forum the links and bolds will appear the same way? instead of visible code?

Riccardo83
09-07-2007, 07:48 AM
Does that mean I cant use the same username for vB and Wordpress ????

tokenyank
09-07-2007, 11:33 PM
If this could be made to play nicely with WordPress MU, you'd be on my Christmas card list for ever!

Flight_Teacher
09-08-2007, 01:45 AM
I got the hack installed (thank-you!) still testing it out.

If you make a post in the forum, will it show on Wordpress?

Flight_Teacher
09-08-2007, 05:13 AM
HELP!!!

I can't log in to my wordpress anymore. What is the fix for this?

Jafo232
09-10-2007, 02:51 PM
If you can't login, the you either did not map users, or you are trying to use the same admin username in Vbulletin with Wordpress..

Delete/rename the plugin, start over.

pericolosogr
09-15-2007, 02:40 AM
if my blog resides on www.domain.com/blog and my forum on www.domain.com/forum it means i cant use this mod or any other available right now on thw web?

Jafo232
09-15-2007, 04:05 AM
if my blog resides on www.domain.com/blog and my forum on www.domain.com/forum it means i cant use this mod or any other available right now on thw web?

That is not correct. You can use it. The only time it would matter is if the blog was at blog.yourdomain.com and your forum was at forum.yourdomain.com for example.

pericolosogr
09-15-2007, 04:35 PM
That is not correct. You can use it. The only time it would matter is if the blog was at blog.yourdomain.com and your forum was at forum.yourdomain.com for example.
so i can use this mode:D
thanks a lot:D

pericolosogr
09-15-2007, 06:04 PM
which are exactly the index.php single.php page.php i have to edit so that i can use vb for comments?

very nice mod, thanx a lot

Jafo232
09-15-2007, 06:34 PM
They are your wordpress template files, depending on your template.

V3RT1G0
09-16-2007, 01:14 AM
is there a reason why posts dont get recorded when i post through wordpress? like the post is there but itll still say i have 0 posts...

Flight_Teacher
09-16-2007, 06:27 PM
Thanks for the help. I had the URL screwed up. Fixed now. This plugin is working great.

Is there a way to show recent forum "posts" on the "blog" ? How would I call that up in Wordpress??

Thanks.

djr
09-16-2007, 10:24 PM
I can't for the life of me getting this mod to work. I have installed everything correctly (I'm by no means a vB n00b, been dealing with vB since vB2.0), I've configured all the options and I changed all $vwd's and relative paths to absolute ones where necessary (my server has safe_mode and open_basedir to ON).

When I go to post_new in WP as instructed for the first test I get either errors or I see no forumlist. I see the error messages when I leave this line untouched:

require_once($vwd . '/includes/functions_misc.php');

The errors are:

Warning: vb_post_form(): open_basedir restriction in effect. File(/includes/functions_misc.php) is not within the allowed path(s): (/var/www/vhosts/mydomainname/httpdocs:/tmp) in /var/www/vhosts/mydomainname/httpdocs/wp-content/plugins/vbbridge.php on line 466

(and two other inclusion errors). It looks like the $vwd variable is empty at this point.

If I change the require_once function to use the full absolute file path, then the inclusion errors dissappear, but I see no forums in the forumlist. In this case the page source gives me this error:

Fatal error: Call to undefined function: fetch_foruminfo() in /var/www/vhosts/iphoneclub.nl/httpdocs/wp-content/plugins/vbbridge.php on line 478

This function is only defined in functions.php (and by quick glance not in functions_misc.php). When I try to include functions.php instead of functions_misc.php WP throws me an error "Cannot redeclare is_valid_email".

Setup:

vB 3.6.8 (stock install)
WordPress 2.2
Latest vBBridge plugin
WordPress and vB on same domain (/ and /forum)
Same database with different prefixesAny help is HIGHLY appreciated, as I would love to get this to work and currently am holding off opening the new forums.

Thanks!

V3RT1G0
09-16-2007, 10:29 PM
yea i cant get it to work either... i checked my vb this morning and the mod bearly started working after 24 hours... for some reason it took a long time to update post counts... but i still cant get it to work properly... first the posts arent counted as i said before but i dont get how to set the settings up... because your readme isnt very clear since it just says to put the ID for an unregistered user (am i supposed to make a user called guest or sumtin and supply that ID?) i just dont get it... a better readme would help a lot of people out... thanks. sorry if i didnt put it in words that make sense but its hard to explain lol

Jafo232
09-17-2007, 02:46 AM
This function is only defined in functions.php (and by quick glance not in functions_misc.php). When I try to include functions.php instead of functions_misc.php WP throws me an error "Cannot redeclare is_valid_email".


Not sure what you are editing here, but I think you need to use include_once, not include.

Jafo232
09-17-2007, 02:49 AM
yea i cant get it to work either... i checked my vb this morning and the mod bearly started working after 24 hours... for some reason it took a long time to update post counts... but i still cant get it to work properly... first the posts arent counted as i said before but i dont get how to set the settings up... because your readme isnt very clear since it just says to put the ID for an unregistered user (am i supposed to make a user called guest or sumtin and supply that ID?) i just dont get it... a better readme would help a lot of people out... thanks. sorry if i didnt put it in words that make sense but its hard to explain lol

It doesn't say put the ID of an unregistered user, that would make no sense. I think this illustrates that you are not reading the readme, you are quickly glancing it over. The readme states:

VB User ID: This is the userid comment threads will be started with if the author is not registered with VB.

In other words, if a WORDPRESS user writes an article but is not registered with VB, enter an ID of someone who IS registered so VB knows who to post the article as.

djr
09-17-2007, 03:01 AM
Not sure what you are editing here, but I think you need to use include_once, not include.Sorry, I meant require_once per the default vbbridge.php. It doesn't matter though .. if I leave the orginal line 466 intact (require_once .. functions_misc.php) I get the error as posted in my previous post and the forumlist is blank. I'd love to make this work, as this mod is exactly what I need.

I'm available thru MSN/Skype (chat) or whatever IM suits you if you'd like to research in detail.

Jafo232
09-17-2007, 03:02 AM
I would suggest that anywhere you see a require or include, use the full absolute path to the file. See if that fixes the errors.

djr
09-17-2007, 03:08 AM
I would suggest that anywhere you see a require or include, use the full absolute path to the file. See if that fixes the errors.Already done that :cool:

Jafo232
09-17-2007, 04:42 AM
And what error do you get?

djr
09-17-2007, 05:01 AM
Hopefully without sounding too rude, as I appreciate the help, but have you read my rather extensive post (https://vborg.vbsupport.ru/showpost.php?p=1340439&postcount=540)? I try to give the coder as much info as possible.


If I change the require_once function to use the full absolute file path, then the inclusion errors dissappear, but I see no forums in the forumlist. In this case the page source gives me this error:

Fatal error: Call to undefined function: fetch_foruminfo() in /var/www/vhosts/iphoneclub.nl/httpdocs/wp-content/plugins/vbbridge.php on line 478

This function is only defined in functions.php (and by quick glance not in functions_misc.php). When I try to include functions.php instead of functions_misc.php WP throws me an error "Cannot redeclare is_valid_email".

jarod.tm
09-17-2007, 02:18 PM
Hi guys, i've installed this script and set all parameters.
Please, help me!!

When i go to write a test post, i've these errors:

Warning: vb_post_form() [function.vb-post-form]: open_basedir restriction in effect. File(/includes/functions_misc.php) is not within the allowed path(s): (/var/www/virtual/mysite.com/:/usr/share/php/:/tmp/) in /var/www/virtual/mysite.com/htdocs/blog/wp-content/plugins/vbbridge.php on line 466

Warning: vb_post_form(/includes/functions_misc.php) [function.vb-post-form]: failed to open stream: Operation not permitted in /var/www/virtual/mysite.com/htdocs/blog/wp-content/plugins/vbbridge.php on line 466

Fatal error: vb_post_form() [function.require]: Failed opening required '/includes/functions_misc.php' (include_path='.:/usr/share/pear') in /var/www/virtual/mysite.com/htdocs/blog/wp-content/plugins/vbbridge.php on line 466

Obviously i've changed my site's addres with: mysite.com

djr
09-17-2007, 02:40 PM
Same problem as me :-(

Jafo232
09-17-2007, 03:17 PM
Ok, I see what you guys are saying now.

This seems to be a configuration issue with your PHP installation. See this search (http://www.google.com/search?q=%22open_basedir+restriction+in+effect%22&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a) for other scripts having the same issue.

The PHP manual goes into further detail:

http://us3.php.net/features.safe-mode

Scroll down to where it explains open_basedir.

I am thinking that you may need to try using a relative path and that might bypass the issue. Without revealing too much server information, could you post the path that your forum is in, and the path that your vbulletin is in?

djr
09-17-2007, 03:26 PM
WordPress: /var/www/vhosts/mysite.com/httpdocs/
vB: /var/www/vhosts/mysite.com/httpdocs/forum/
WordPress URL: http://www.mysite.com
vB URL: http://www.mysite.com/forum/

Jafo232
09-17-2007, 03:28 PM
I would try making the path to the forum: ./forum and see if that changes anything..

DogManStar
09-17-2007, 07:18 PM
I have the same problem.
I tried without success ./forums

djr
09-17-2007, 09:55 PM
I had my host change me to a different server without safe_mode and/or open_basedir problems, but I still have the same problems at line 446 as posted earlier. There definitely seems to be something wrong with this line. I have changed all chdir again to the absolute path, changed the require_once @ line 446 to use the absolute path but WP still halts the page just before the tickbox is displayed and shows no vB forumlist at all. The page source error is (again):

Fatal error</b>: Call to undefined function: fetch_foruminfo() in /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/vbbridge.php on line 478

As previsously said, there is no fetch_foruminfo function in /forum/includes/functions_misc.php, so I think the errors start there.

Could you please have another look at the script? Thanks!

Jafo232
09-18-2007, 12:51 AM
The script is fine as it is working on over 400 installs. There is something we are missing here. There must be another error message somewhere. fetch_foruminfo is in functions.php and is already loaded during init, so my guess is, it cannot find ANY of the vb files.

UltraSTYLE
09-18-2007, 07:35 AM
I have the same problem

VB 3.6.8
WP 2.2.3
same domain install:
forum - mydomain.com/forum
wp - mydomain.com/magazine

I did exactly what djr did, and I have the same results = 0

I did small test and it is posting to the forum, but still showing errors and forum options are not available.

DogManStar
09-18-2007, 09:36 AM
I did small test and it is posting to the forum, but still showing errors and forum options are not available.

Same problem for me.
This mod is really great and i need it :up:

Jafo232
09-18-2007, 02:54 PM
Well, until someone can let me view their site and probably login via FTP, I am not sure how to resolve your situation as it is not happening on any of my production or test sites.

djr
09-19-2007, 02:39 AM
What timezone are you in Jafo? I'd like to sit together, but I'd preferably do this when it's not really busy on the website. Unfortunately I only have access to a production site, so let's hope you don't break anything :) Please PM me for further discussion.

Jafo232
09-19-2007, 02:43 AM
Just shot you a PM.

jarod.tm
09-19-2007, 08:40 AM
I've asked for support to my Hosting
I would say to you, If i solve the problem.

Bye.

XManuX
09-19-2007, 10:40 AM
I've solved my problem (explained here (https://vborg.vbsupport.ru/showpost.php?p=1330106&postcount=526))

The pbr was when invoking the code
$bbcode =& new vB_BbCodeParser($vbulletin, fetch_tag_list());

I finally decided to copy/paste all the code within the function managing comments (inside the bridge .PHP file) directly INTO wordpress 2.2.2 (in the WP theme)

and it worked perfectly !

Shack Dougall
09-20-2007, 02:18 PM
Has anyone gotten vbbridge to work with Wordpress 2.3? (which is now at RC1 and will be released this Monday, Sept 24th).

I have it working fine on WP2.2.2 (no complaints/great plugin!), but when I try to install it on a fresh WP2.3 install, I have problems.

I'm seeing two things: 1) on the WP Write screen, the vbridge forum selector doesn't display and everything below it is missing. and 2) when I turn on auto-integrate, the whole blog displays as a blank page.

Just wondered if it has been tested on 2.3 and/or if anyone has gotten it to work successfully.

Thanks! --Shack

Jafo232
09-20-2007, 02:22 PM
It has not been tested on 2.3 as of yet. When it is released, I will tackle it then.

Shack Dougall
09-20-2007, 04:22 PM
It has not been tested on 2.3 as of yet. When it is released, I will tackle it then.

Fair enough! :)

I started digging a little bit and one of the problems is that the wp-admin scripts have been re-organized in WP2.3. In particular, wp-admin/admin-db.php no longer exists.

I commented out the require-once for it in vbbridge.php to see if I could determine which functions were being used. And that seemed to fix the plugin.

I'm going to run with it until I can see a problem, but I just thought I'd ask. To your knowledge, is admin-db.php being used in vbbridge.php and if so, for what. I just want to track it down if I can.

Anyway, for now, vbbridge appears to be working in WP2.3 with the one change I mentioned above.

--Shack

Transverse Styles
09-21-2007, 02:33 PM
When I go to 'write', i get this error:

Warning: vb_post_form(/includes/functions_misc.php): failed to open stream: No such file or directory in /home/###/public_html/blog/wp-content/plugins/vbbridge.php on line 466

Fatal error: vb_post_form(): Failed opening required '/includes/functions_misc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/###/public_html/blog/wp-content/plugins/vbbridge.php on line 466

Any help? Wordpress version 2.2.2

Thanks

verrin
09-22-2007, 03:49 AM
Well I'm in with everyone I get the same 466 error. At least it will prevent me from going mad, that we're all on the same boat. All my plug-ins are the latest and up-to-date. Wordpress 2.2.3

Good luck Jafo fixing it, waiting anxiously.

kj_ugs
09-22-2007, 12:46 PM
Fair enough! :)

I started digging a little bit and one of the problems is that the wp-admin scripts have been re-organized in WP2.3. In particular, wp-admin/admin-db.php no longer exists.

I commented out the require-once for it in vbbridge.php to see if I could determine which functions were being used. And that seemed to fix the plugin.

I'm going to run with it until I can see a problem, but I just thought I'd ask. To your knowledge, is admin-db.php being used in vbbridge.php and if so, for what. I just want to track it down if I can.

Anyway, for now, vbbridge appears to be working in WP2.3 with the one change I mentioned above.

--Shack

That's quite interesting. Thanks for posting that :) I'm about to start building a new site and was wondering about WP2.3 compatibility.

kj_ugs
09-22-2007, 01:51 PM
The following appears at the bottom of my vbridge settings in my wordpress options tab.

\n"; } ### Present User Setup Form. function Vbridge_User_Setup() { global $wp_roles; $xx = 0; $wpdb =& $GLOBALS['wpdb']; $sql = "SELECT * FROM " . get_option('vbb_VBPRX') . "usergroup"; $results = $wpdb->get_results($sql); echo "
\n" . "
" . __('Vbridge User Settings', '') . "
\n"; ?>
Warning: Invalid argument supplied for foreach() in C:\wamp\www\xxx\blog\wp-content\plugins\vbbridge.php on line 287

Any idea what that could be?

I also get this... in my Users wordpress page when i go to VBridge User Settings

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Vbridge_User_Setup' was given in C:\wamp\www\BlacksMagicGroup\blog\wp-includes\plugin.php on line 160

I'm using the latest vBulletin 3.6.8 and Wordpress 2.2.3. both brand new clean installs.

DogManStar
09-22-2007, 01:51 PM
When I go to 'write', i get this error:



Any help? Wordpress version 2.2.2

Thanks

We're waiting for an answer of Jafo232 :)
I think he's doing some tests on djr server who has same problem.

kj_ugs
09-22-2007, 01:59 PM
The following appears at the bottom of my vbridge settings in my wordpress options tab.

\n"; } ### Present User Setup Form. function Vbridge_User_Setup() { global $wp_roles; $xx = 0; $wpdb =& $GLOBALS['wpdb']; $sql = "SELECT * FROM " . get_option('vbb_VBPRX') . "usergroup"; $results = $wpdb->get_results($sql); echo "
\n" . "
" . __('Vbridge User Settings', '') . "
\n"; ?>
Warning: Invalid argument supplied for foreach() in C:\wamp\www\xxx\blog\wp-content\plugins\vbbridge.php on line 287

Any idea what that could be?

I also get this... in my Users wordpress page when i go to VBridge User Settings. This is the only thing i get apart from the wordpress admin menu at the top.

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Vbridge_User_Setup' was given in C:\wamp\www\BlacksMagicGroup\blog\wp-includes\plugin.php on line 160

And when i go to write a test post as per the instructions, below the input box i get these errors...

Warning: vb_post_form(/includes/functions_misc.php) [function.vb-post-form]: failed to open stream: No such file or directory in /home/company/domains/xxx.com/public_html/blog/wp-content/plugins/vbbridge.php on line 466

Fatal error: vb_post_form() [function.require]: Failed opening required '/includes/functions_misc.php' (include_path='.:/usr/local/lib/php') in /home/company/domains/xxx.com/public_html/blog/wp-content/plugins/vbbridge.php on line 466


I'm using the latest vBulletin 3.6.8 and Wordpress 2.2.3. both brand new clean installs.



I should also say that the previous issue i have with fresh installs of Wordpress 2.2.1, 2.2.2 and 2.2.3 all with fresh installs of vBulletin 3.6.8.

My hosting environment is local and my wordpress and forum installs are in subdirectories in my localhost root folder...

http://localhost/site/forum
http://localhost/site/blog

Hope that is of some use in killing this bug.

ZippySLC
09-23-2007, 11:18 AM
This would be perfect for me, except my Wordpress install is at www. and my forums are at forums. Other than that, I meet all the requirements.

I really only care about vB being used as the commenting engine and not sharing users. Is there a way to get this working in my situation?

jarod.tm
09-24-2007, 06:18 PM
Hi guys,
i've solved my problem (post 2or3 pages ago) adding this code at line 43:

$vwd="/var/www/virtual/mysite.com/public/forum/";

over

chdir($_SERVER['DOCUMENT_ROOT'] . get_option('vbb_VBRPATH'));

Thanks to HostingVirtuale.com for their support.

But, i've another question:
when i post an article, i've a window with: Select Forum To Post To:
it's empty, dark.... how to use this?

Bye.

verrin
09-24-2007, 09:34 PM
Hi Jarod.tm can you be more specific with your fix. Where do you enter the code? I had you similar error when writing a test message.

Warning: vb_post_form() [function.vb-post-form]: open_basedir restriction in effect. File(/includes/functions_misc.php) is not within the allowed path(s): ('.:/proc/uptime:/tmp:/home:/usr/local/lib/php:/nfs/home:/usr/home:/usr/local/bin/') in XXXXXXXXXXXXXXXXXXX/wp-content/plugins/vbbridge.php on line 466

Warning: vb_post_form(/includes/functions_misc.php) [function.vb-post-form]: failed to open stream: Operation not permitted in /XXXXXXXXXXXXXXXXXXX/wp-content/plugins/vbbridge.php on line 466

Fatal error: vb_post_form() [function.require]: Failed opening required '/includes/functions_misc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in
XXXXXXXXXXXXXX/wp-content/plugins/vbbridge.php on line 466

jarod.tm
09-25-2007, 07:44 AM
Hi guys,
i've solved my problem (post 2or3 pages ago) adding this code at line 43:

$vwd="/var/www/virtual/mysite.com/public/forum/";

over

chdir($_SERVER['DOCUMENT_ROOT'] . get_option('vbb_VBRPATH'));

But, i've another question:
when i post an article, i've a window with:
it's empty, dark.... how to use this?

Bye.

In VBRIDGE.php at line 43, add this:

$vwd="/var/www/virtual/YOURSITE/YOUR PUBLIC FOLDER/FORUM FOLDER/";

With your path!

Caddyman
09-27-2007, 10:00 PM
I'd pay someone to integrate this using vB and WP-MU

anyone know how to do that? PM me.

pspcrazy
09-27-2007, 10:11 PM
Ugh I messed up my site by upgrading to wordpress 2.3 I wish i read before upgrading, now i have a blank page :|

WEBclay
09-28-2007, 10:25 AM
Posting into a forum with wp 2.3 works just fine. I get an error at users-vbridge users


WordPress database error: [Table 'cgpad_wp.usergroup' doesn't exist]
SELECT * FROM usergroup


Seems like something changed in wp 2.3 :(

Crazy Serb
09-29-2007, 03:53 PM
a lot of stuff changed in 2.3...

I am just waiting for a 2.3 compatible version of this mod as well...

Halfmad
09-30-2007, 01:10 PM
Hi Jafo,

I recently tried the plugin and although I thought it was working it appears to have problems importing users from VB to WP. Everything is activated, user mapping was done first before activating it. However if someone logs into the forum, then tries to view the main page they get an error message, which is essentially because they're not a user on the website.


Fatal error: Cannot redeclare get_users_drafts() (previously declared in /homepages/10/xxxxxx/htdocs/wp-admin/includes/user.php:233) in /homepages/10/xxxxxx/htdocs/wp-admin/admin-db.php on line 3

I do have a prefix on the VB tables but I believe this was fixed in version 2.03 of the plugin (I have 2.06). I'm tried uploading the plugin again just incase but without luck. I've deactivated/reactivated the plugin and redone the options from step 1 with any luck either.

Any suggestions? the cookies works for me (as I'm a user on both) without any issues.

WP and VB are both running the most up to date versions and share the same database. If I post in WP it adds it to the forum etc without any issues, it's purely the user transfer that isnt working.

I'll try changing the settings for prefix etc and see if I have any luck, user mapping etc appears to be setup fine.

The website forum in on the same domain simply in the \vb directory.

If a user registers in VB and I insert the same username/password in WP they can use the WP section as normal - cookie seems to work fine. It appears now to be purely the user not coming across automatically form Vb to WP.

yet another edit:

I've just checked that vbb_VBION is set to 1 in the wp_options table :) I was hoping it was that! :(

I started at the beginning of the comments on here and read them all, right near the end what do I find? It's not actually compatible with WP 2.3 (which I have). I'm guessing my problems might well come from that :) I'll wait and hopefully we'll get a new compatible version :)

Jafo232
10-01-2007, 03:13 PM
I have just upgraded three separate installs of Wordpress, all using the vbbridge plugin without any issue.

If someone will allow me access to their site via FTP so I can diagnose, then I can help, otherwise guessing at your problem will probably not help fix it...

WEBclay
10-01-2007, 03:56 PM
Posting into a forum with wp 2.3 works just fine. I get an error at users-vbridge users


WordPress database error: [Table 'cgpad_wp.usergroup' doesn't exist]
SELECT * FROM usergroup


Seems like something changed in wp 2.3 :(

Never mind Jafo. I didn't installed wp into the forum's database again, sorry for that. Works now like a charm...

marcus_brutus
10-02-2007, 06:37 AM
I have installed wordpress 2.3 and I'm using Vb 3.6.7.

I have been getting the same error message:

Warning: vb_post_form(/includes/functions_misc.php): failed to open stream: No such file or directory in C:\www\webroot\car_site\wordpress_2_3\wp-content\plugins\vbbridge.php on line 466

I tried commenting out the following line as Shack Dougal suggested earlier, but that does not work.

//require_once(ABSPATH . 'wp-admin/admin-db.php');//

I'm testing on my local server so I cannot give anyone FTP access.

Perhaps Jafo can give us all an update???

pspcrazy
10-03-2007, 11:37 PM
Sure deal jafo i'll make seperate databases with the same content so you can play with them. The issue is that with wp-cache it causes a blank screens :|

Jafo232
10-04-2007, 03:07 PM
Not sure why wp-cache would cause that. Try deleting the cache files. I use it on two sites using vbbridge without the issue.

There is one thing that should be noted and that is that Wordpress developers dropped a few tables on this new version (and forced the drop on the update). Some plugins (not this one) are throwing errors. Mostly to do with the post2cat table.

marcus_brutus
10-05-2007, 07:47 PM
I cannot use the vbridge plugin due to issues with error messages on line 466 and I've done around half a dozen fresh isntalls with wodpress 2.3 and the latest version of vbridge.

gariben
10-06-2007, 05:01 PM
Looking for someone to integrate vBulletin and Gallery script (http://gallery.menalto.com) to Wordpress based site.

If possible, the Gallery and vBulletin should be using the WordPress theme (design files). If not, maybe I can get somebody to change vBulletin design to match with Wordpress.

Must provide mini step by step procedure as I have to integrate about 5-6 similar websites (WP, vB, Gallery)

Email: tokyofriends@gmail.com

Thanks,
Mike
tokyofriends@gmail.com

MPDesignZ
10-07-2007, 04:30 AM
After reading a bit I see that you cannot get this to work with Wordpress 2.3. I really need this to work with WP 2.3, this is for a client and not myself.

I'm having the same error message as another member was having above. I'm running the newest version of vbulletin 3.6.8 and its a fresh install. I installed everything to the same database as the wordpress pages. everything worked like a charm until I got to the user integration on the site. I could make posts on the vbulletin site from the wordpress admin panel, but even after installing 2 times and following the instruction carefully I cannot get users to integrate together. This is a crucial part that I need. Seems the problems come in when we map usergroups & then tick the integrate field on the options part.

Here's the error message I get after doing this:

Fatal error: Cannot redeclare get_users_drafts() (previously declared in /home/content/xxxx/html/wp-admin/includes/user.php:233) in /home/content/xxxx/html/wp-admin/admin-db.php on line 3

If there is a easy fix either by hard coding or what have you please post it so we can get this plugin working for the site.

Thanks
MP

WEBclay
10-07-2007, 02:06 PM
I am not quite sure what doesn't work for you? I can map users in the wp-admin options using wp 2.3...

MPDesignZ
10-08-2007, 10:58 AM
I am not quite sure what doesn't work for you? I can map users in the wp-admin options using wp 2.3...

Great! Then how are you doing it without an error message :( I kept on getting an error. Is there something I'm missing here?


MP

WEBclay
10-08-2007, 11:05 AM
Can you post a screenshot so I can handle this to my programmer?

MPDesignZ
10-08-2007, 11:40 AM
Can you post a screenshot so I can handle this to my programmer?

Screenshot? All I get is a blank white page with that error message on it when I integrate members. Not sure what you mean.

MP

WEBclay
10-08-2007, 11:44 AM
So that means you don't see the page I attached?

MPDesignZ
10-08-2007, 12:01 PM
So that means you don't see the page I attached?

we see that page and then we set it. After all is set then we try to go back adn view the wordpress page and get that error I posted above. So I see that page and set it up but afterwards nada :(


MP

Jafo232
10-08-2007, 02:15 PM
After reading a bit I see that you cannot get this to work with Wordpress 2.3. I really need this to work with WP 2.3, this is for a client and not myself.

I'm having the same error message as another member was having above. I'm running the newest version of vbulletin 3.6.8 and its a fresh install. I installed everything to the same database as the wordpress pages. everything worked like a charm until I got to the user integration on the site. I could make posts on the vbulletin site from the wordpress admin panel, but even after installing 2 times and following the instruction carefully I cannot get users to integrate together. This is a crucial part that I need. Seems the problems come in when we map usergroups & then tick the integrate field on the options part.

Here's the error message I get after doing this:

Fatal error: Cannot redeclare get_users_drafts() (previously declared in /home/content/xxxx/html/wp-admin/includes/user.php:233) in /home/content/xxxx/html/wp-admin/admin-db.php on line 3

If there is a easy fix either by hard coding or what have you please post it so we can get this plugin working for the site.

Thanks
MP

This is not an error with vbbridge. This error must be coming from another plugin. MANY plugins were broken by WP 2.3, and so were many templates.

MPDesignZ
10-08-2007, 05:46 PM
Any idea which one it could be?

MP

Jafo232
10-08-2007, 06:21 PM
I have no idea.

adioking
10-08-2007, 09:35 PM
I have a somewhat different use in mind for this plugin, and I'd like to know if what I want to do is possible.

First, I don't want/need to share users between Wordpress and vBulletin. However, I do want all posts from Wordpress to be posted into my vBulletin for discussion.

Now it gets more complicated. The problem that I have is this:

I have multiple websites, each using Wordpress (i.e. http://www.highstakesreport.com and http://www.pokeronamac.com). I also have a separate website for my forums (http://www.pokerforumsonline.com).

What I want to do is take all new posts from each website and have new vBulletin threads created on pokerforumsonline.com with the content of each Wordpress post. I feel that this will get people from my other websites discussing the topics more, as well as build a community of people with common interests.

Can this be done? Perhaps I need to look more into a scraping software? Any suggestions?

Alan Pace
10-09-2007, 12:36 AM
This is not an error with vbbridge. This error must be coming from another plugin. MANY plugins were broken by WP 2.3, and so were many templates.
MPDesignZ and Jafo232, I *think* I have your answer. In any case, I think this will point you in the right direction. I'm about to upgrade to WP 2.3 on a site that uses this bridge, so I'll know for sure after that, but from my experience getting a Coppermine photo gallery bridge to work after another 2.3 upgrade, and based on the error you posted, I think the solution to this is likely to be relatively simple. With the 2.3 release Wordpress database functions were consolidated into wp-includes/wp-db.php, and moved out of several other files. The file wp-admin/admin-db.php is no longer used by WordPress and contains redundant functions. The bridge code has a "require" at line 400 for admin-db.php, hence the error message. This may not be the entire fix, but commenting out line 400 from vbbridge.php would be a logical first step. After that, you may get a similar error but the message may now reference some other no-longer-needed file. Once you've eliminated references to files that contain redundant functions, the bridge will probably work.

Alan Pace
10-09-2007, 03:00 AM
I just finished installing vbbridgeII on a new WordPress 2.3 site. The only change I had to make to the code for version 2.3 was to comment out line 400. It appears to be working fine.
Thanks!

MPDesignZ
10-09-2007, 05:03 AM
I just finished installing vbbridgeII on a new WordPress 2.3 site. The only change I had to make to the code for version 2.3 was to comment out line 400. It appears to be working fine.
Thanks!

Kudos to you! Commenting out that line made it work perfectly!

on another note. I did take all the plugins on the wordpress install off and then try this again and still did get the same error even though I deactivated all WP plugins. But commenting out this line made everything work perfectly! :D


MP

albn
10-10-2007, 06:24 AM
Hello, before I use vbulletin for the comment system, I have some questions that may seem silly, but this may hinge if I plan to use the plugin or not (Which by the way is excellent):

1. I have existing comments and getting a good reader base. Nothing on the level of some other blogs out there, but the point is, is there a way to export comments from WP to vB?

2. Next is the login issue, and I cannot seem to fully understand how it works. Right now, users can comment without registring, and to use the vBulletin in the same manner will the forum have to change the permissions to allow anonymous posting?

3. Another issue I do not fully grasp is can a user log into Wordpress and be logged into vBulletin as well, or does the user have to log into vBulletin before being logged into Wordpress?

Thanks for your help in the matter.

Edit: never mind, I went with bbPress instead.

adioking
10-11-2007, 08:56 AM
I'm still waiting for an answer if anybody is able to help me.

MPDesignZ
10-11-2007, 09:45 AM
My client wants this plugin to work differently than it is working. I have copied and pasted what he said below:

Hmmm. I don't think its working. I don't even want the comments section on the site. Just to have a link with how many comments and make a comment that takes them to the forum page. It's literally exactly like Apple Insider. Here's a link to a recent article and you'll see what I mean... http://www.appleinsider.com/articles/07/10/10/road_to_mac_os_x_leopard_dock_1_6.html

Take a look at the bottom left of the end of the article. You'll see how it says 97 comments. Then click on that and you'll see. They're showing the whole article, but I'd just like an excerpt of the article with a link at the end of the excerpt to the actual article page. Don't want to have duplicate content.

I have made the modifications that were in the readme file but it has not seemed to do diddly to anything. Did I miss something somewhere?

MP

MPDesignZ
10-12-2007, 12:16 PM
Really need an answer here please. I need to know how to take out the comment box on wordpress & just have the link with the amount of comments on wordpress that link to the forums.

MP

nishv
10-15-2007, 11:36 AM
Is it possible to make Wordpress/Vbulletin Bridge to NOT to Auto Integrate the users...

What I am trying to do is, make the comments postable on vBulletin and selected users on Wordpress who can post stuff... Which means, it will be cross posted to vB as well, but whoever wants to comment on it, needs to login to the forums to do so.

Thanks.

snoopy5
10-17-2007, 12:41 AM
Hi

vb 3.68 and wordpress 2.3 newset download. I just tried to integrate. Does not work. I have installed WP in teh same database, but with different prefixes.

vb and WP are on the same server & domain, but with different subdomains

I also changed the username of admin via phpmyadmin to be not in conflict with anything.

The problem is, that I even does not come to the step ti bridge the suer db. If I logout to see wjetehr ether is any bug, I get the error:

"cannot load /my_absolut_path_to/wordpress/global.php. You should check your path!"

"wordpress" is the dierctory in which I installed wordpress. I guess it is wrong that it tries to take thet path, since within WP, teher is no file called "global.php".

So what did I do wrong?

Jafo232
10-18-2007, 04:45 AM
It is trying to get global.php from your VBULLETIN install, not WP..

snoopy5
10-19-2007, 06:58 AM
ok, so where do I have to change what to make it right?

wolfyman
10-20-2007, 01:17 AM
after hours and hours of mistakes, I finally got this working.

LOVE IT!

Couple questions.

1. I cannot get the url rewrites to work in wordpress, it seems the only way to work this is with standard WP crap urls?
2. Will this work with any vbSEO type hack? Are there any free ways to rewrite my urls in WP and VB with this hack installed?

wolfyman
10-21-2007, 01:11 PM
I am getting this from a few users.

Only in IE though.


but I cant post in any forum threads... keep getting error message " your message needs to be longer than 1 character"....

gimpusmons
10-22-2007, 04:30 PM
MPDesignZ and Jafo232, I *think* I have your answer. In any case, I think this will point you in the right direction. I'm about to upgrade to WP 2.3 on a site that uses this bridge, so I'll know for sure after that, but from my experience getting a Coppermine photo gallery bridge to work after another 2.3 upgrade, and based on the error you posted, I think the solution to this is likely to be relatively simple. With the 2.3 release Wordpress database functions were consolidated into wp-includes/wp-db.php, and moved out of several other files. The file wp-admin/admin-db.php is no longer used by WordPress and contains redundant functions. The bridge code has a "require" at line 400 for admin-db.php, hence the error message. This may not be the entire fix, but commenting out line 400 from vbbridge.php would be a logical first step. After that, you may get a similar error but the message may now reference some other no-longer-needed file. Once you've eliminated references to files that contain redundant functions, the bridge will probably work.
I can confirm that correcting line 400 will fix the "admin-db.php" error for Wordpress v2.3. I'm not sure what "commenting out" means but I redirected the path to "wp-includes/wp-db.php" and now bridged forum users can view the blog without a problem.

Thanks for the tip Alan. This saved me a lot of time.

misticjeff
10-23-2007, 09:02 PM
Like many, many, many of the other people posting on this thread, I had the problem where I was being redirected away from /wp-admin even after I had mapped the users and had logged in using vBulletin.

I spent 2hours and 40 minutes trying to get this plugin to work. 2 hours and 30 minutes of that time was spent reading all 40 pages in this thread in hopes to discover a fix for my problem. Somewhere around page 30, Jafo kindly announced that he was refusing to help anyone who posted here looking for answers with this problem.

I was so close to just giving up. Just as I was about to smash my stupid laptop to pieces for being a lying bastard that wouldn't just let me into my damned admin panel, the answer came to me. I stood frozen with my MacBook raised high above my head, mere seconds away from hurling it to the hard-wood floor as visions of vBulletin control panels, PHP code and David Hasselhoff flashed before my eyes. It was at that moment that I knew that in order to get into the /wp-admin section, I needed to follow these steps:


Follow Jafo's install directions
After the plugin is successfully installed, register a new user with the EXACT SAME username as your WordPress administrator username. I was using "admin" to log into WP, so I created a VB user with the same name, "admin."
Log out your newly created user
Log back into VB with your VB administrator username.
Go to the VB Admin Control Panel
Click the "Users" category in the menu on the left side
Click "Search for Users" in the sub-menu that appears
Find your newly created user -- "admin" in my case
Change the Primary Group to "Administrators" and click save
Log out the current user
Log back in with the user you just set to "Administrators" -- again, this was "admin" for me.
Direct your browser to http://www.yourdomain.com/wp-admin and cheer!


I hope this helps someone. I did some cursing, a little punching and a lot of weeping in the 2 hours and 40 minutes that it took me to figure this out. If anyone is having problems following these directions, reply or PM me and I'll do my best to get back to you.

Word to your mothers,
Eric

wolfyman
10-23-2007, 09:21 PM
I am getting this from a few users.

but I cant post in any forum threads... keep getting error message " your message needs to be longer than 1 character"....



Anyone else?

puertoblack2003
10-23-2007, 09:30 PM
Like many, many, many of the other people posting on this thread, I had the problem where I was being redirected away from /wp-admin even after I had mapped the users and had logged in using vBulletin.

I spent 2hours and 40 minutes trying to get this plugin to work. 2 hours and 30 minutes of that time was spent reading all 40 pages in this thread in hopes to discover a fix for my problem. Somewhere around page 30, Jafo kindly announced that he was refusing to help anyone who posted here looking for answers with this problem.

I was so close to just giving up. Just as I was about to smash my stupid laptop to pieces for being a lying bastard that wouldn't just let me into my damned admin panel, the answer came to me. I stood frozen with my MacBook raised high above my head, mere seconds away from hurling it to the hard-wood floor as visions of vBulletin control panels, PHP code and David Hasselhoff flashed before my eyes. It was at that moment that I knew that in order to get into the /wp-admin section, I needed to follow these steps:


Follow Jafo's install directions
After the plugin is successfully installed, register a new user with the EXACT SAME username as your WordPress administrator username. I was using "admin" to log into WP, so I created a VB user with the same name, "admin."
Log out your newly created user
Log back into VB with your VB administrator username.
Go to the VB Admin Control Panel
Click the "Users" category in the menu on the left side
Click "Search for Users" in the sub-menu that appears
Find your newly created user -- "admin" in my case
Change the Primary Group to "Administrators" and click save
Log out the current user
Log back in with the user you just set to "Administrators" -- again, this was "admin" for me.
Direct your browser to http://www.yourdomain.com/wp-admin and cheer!


I hope this helps someone. I did some cursing, a little punching and a lot of weeping in the 2 hours and 40 minutes that it took me to figure this out. If anyone is having problems following these directions, reply or PM me and I'll do my best to get back to you.

Word to your mothers,
Eric



hahaha sorry that was the best i've read :).One thing i've learn form these hacks after 2 hours of trying to figure something out that don't work i just leave it alone.
But i'm glad you got it working.;)

Jafo232
10-26-2007, 02:37 AM
That is pretty funny :)

I am currently on a rather large project for another vb.org member and then have another one lined up after that, but then I promise I will revisit this hack and see what I can come up with to make it easier for the rest of you.. I have never had too much trouble writing code, but documentation is obviously not my strong point..

JirQUEST
10-28-2007, 08:20 PM
Am I the only one to suffer such an issue? I get this:

Fatal error: Cannot redeclare sanitize_url() in /XXXXXXXX/forums/includes/functions_wysiwyg.php on line 44

when I try to make a new post shortly after installation.

Blackhat
10-28-2007, 08:42 PM
I get this at the "Write Post" page


Warning: vb_post_form(/includes/functions_misc.php) [function.vb-post-form]: failed to open stream: No such file or directory in /home/xxxx/public_html/wp-content/plugins/vbbridge.php on line 466

Fatal error: vb_post_form() [function.require]: Failed opening required '/includes/functions_misc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/public_html/wp-content/plugins/vbbridge.php on line 466


and when I click SAVE or PUBLISH I get this


Fatal error: Cannot redeclare sanitize_url() (previously declared in /home/xxxx/public_html/wp-includes/formatting.php:1118) in /home/xxxx/public_html/forum/includes/functions_wysiwyg.php on line 44


Im using Wordpress 2.3.1 and vBulletin 3.6.8


Thanks

pericolosogr
10-30-2007, 01:29 AM
in my case, i am using wp 2.3.1 and vb 3.6.8, and when i hit save or publish or save and edit later i get a blank page wp-admin/post.php...
any ideas?

Jafo232
10-30-2007, 02:10 AM
Check your server log to see if it returns an error there..

Blackhat
10-30-2007, 08:57 AM
I dont get any messages about this in my error log

letsjoy
10-30-2007, 04:36 PM
is this mod is working fine ?

Blackhat
10-30-2007, 06:53 PM
no its not

Marc118
10-30-2007, 09:18 PM
I have the same errors as JirQUEST and Blackhat.

letsjoy
10-31-2007, 12:00 AM
no its not

yes its not working, I waste my hrs

I have the same errors as JirQUEST and Blackhat.

I also have same errors, it must be a bug.

If this is supported then when will we get answers :(

letsjoy
10-31-2007, 12:04 AM
Stable Wordpress Version greater than or equal to 2.2 or 2.3.

maybe not for 2.3.1

Marc118
10-31-2007, 01:28 AM
maybe not for 2.3.1

I am on 2.3.1 as well. I have just downloaded 2.3 and will try it out.

Edit; Did not work.

marcus_brutus
10-31-2007, 12:28 PM
I'm using WP 2.3 and Vbulletin 3.6.7.

I have been stuck on this issue for weeks now.

pericolosogr
10-31-2007, 04:54 PM
At least you get some errors...i wont get nothing:D

I get a blank page when plugin is active and i try to publish something
If i have integration to enabled i get a blank page everywhere, i did it and then had to delete the plugin to make wordpress work again!

Any answers in these problems?


wp 2.3.1 (fresh install{i did upgrade but then had issues so i went for a fresh one))
vb 3.6.8

Marc118
10-31-2007, 07:24 PM
Just for kicks I even installed 2.2.3 with no luck...

letsjoy
11-01-2007, 07:29 PM
At least you get some errors...i wont get nothing

I get a blank page when plugin is active and i try to publish something
If i have integration to enabled i get a blank page everywhere, i did it and then had to delete the plugin to make wordpress work again!

Any answers in these problems?


wp 2.3.1 (fresh install{i did upgrade but then had issues so i went for a fresh one))
vb 3.6.8


I also had fresh copy of WP 3.2.1

Where is Jafo232 ???

2 X Viverridae
11-01-2007, 09:38 PM
OK, on WP 2.3.1, vB 3.6.8, pretty much fresh installs, and I was getting the line 466 error, and the re-declaration error. I got rid of the line 466 error by replacing $vwd with the fully qualified path to my forum directory.

I also commented out line 400, as recommended earlier, the path to a now non-existent wp file.

Then I got the same thing as Blackhat.

...when I click SAVE or PUBLISH I get this

Fatal error: Cannot redeclare sanitize_url() (previously declared in /home/xxxx/public_html/wp-includes/formatting.php:1118) in /home/xxxx/public_html/forum/includes/functions_wysiwyg.php on line 44

The function sanitize_url was recently added to Wordpress, and collides with a vB function of the same name.

The addition to WP is noted here: http://trac.wordpress.org/changeset/6183

Open up the following 3 Wordpress files, and replace instances of 'sanitize_url' with 'wp_sanitize_url'
/wp-includes/default-filters.php
/wp-includes/formatting.php
/wp-includes/widgets.php

Party.

EDIT: Mebbe don't party yet - the auto-integrate seems to not be working properly vis-a-vis having a single sign-in for vB and WP right now, so I've turned it off for now, will report back once I've taken a closer look at it over the weekend. Everything else seems to function smoothly, it creates a post on the blog and starts a thread in the appropriate forum, so far.

Marc118
11-01-2007, 11:46 PM
Hey man thanks for that I am going to try that out I dont care much for the integration as it posting it in the forum so the users can discuss it there.

Marc118
11-02-2007, 12:25 AM
What format did you use when adding the full forum path? I can seem to get it to work with

home/XXXXX/public_html/forums/includes/functions_misc.php
public_html/forums/includes/functions_misc.php
forums/includes/functions_misc.php

misticjeff
11-02-2007, 05:46 AM
Thanks Viverridae,

That worked perfectly!

Eric

2 X Viverridae
11-02-2007, 07:49 AM
What format did you use when adding the full forum path? I can seem to get it to work with

home/XXXXX/public_html/forums/includes/functions_misc.php
public_html/forums/includes/functions_misc.php
forums/includes/functions_misc.php

I put the DirPath.php script (attached to this post) in my /forum directory, and ran it, which in my case on a funky fasthosts shared linux host for my test board, gave me the following for the path to my forum directory:
/home/fhlinux165/c/cannabismongoose.com/user/htdocs/forum


As I hardcoded the paths further on, I commented out line 43, making it:
// $vwd = getcwd();


I replaced line 350, which was:
require_once($vwd . '/includes/class_bbcode.php');


With:
require_once('/home/fhlinux165/c/cannabismongoose.com/user/htdocs/forum/includes/class_bbcode.php');


As WP no longer contains this file in 2.3.1, I commented out line 400, making it:
// require_once(ABSPATH . 'wp-admin/admin-db.php');


I replaced line 466, which was:
require_once($vwd . '/includes/functions_misc.php');


With:
require_once('/home/fhlinux165/c/cannabismongoose.com/user/htdocs/forum/includes/functions_misc.php');


Obviously, replace /home/fhlinux165/c/cannabismongoose.com/user/htdocs/forum with the path to your forums returned by the attached DirPath.php script run in your forum directory.

*I'd note that before I hardcoded the paths, I did try to change line 43 to:
$vwd = '/home/fhlinux165/c/cannabismongoose.com/user/htdocs/forum'

But it still gave me the line 466 error, so I went with hardcoding the paths, instead.

Cheers.

Blackhat
11-02-2007, 07:06 PM
Thanks :)

I replaced line 43
$vwd = getcwd();to this and the errors are gone
$vwd = ('/home/thelaten/public_html/forum');It seems to work pretty good now, the posts are being posted at the forum, but the comments is still being directed to the wp comment system

I also get this error when looking at the source
<b>Fatal error</b>: Call to undefined function: fetch_foruminfo() in <b>/home/thelaten/public_html/wp-content/plugins/vbbridge.php</b> on line <b>482</b><br />
Looks like it cant find the vb forums

2 X Viverridae
11-02-2007, 07:27 PM
@ Blackhat: what versions are you running?

pericolosogr
11-02-2007, 11:28 PM
Is this product still supported?

LBSources
11-04-2007, 11:27 PM
Never mind Jafo. I didn't installed wp into the forum's database again, sorry for that. Works now like a charm...
What do you mean by this WEBclay? I'm getting the same error now. I have fresh VB and WP installs right now.. SO before going forward.. What shall I do that was not outlined in the install info?


NVM After merging the VB DB into the WP all is ok .. SO far.. Running into the same issue as blackhat, but havent completed the install just yet .. Will post back soon enough..

LBSources
11-05-2007, 01:15 AM
Well .. Seems to work just fine as stated in the coders first post and with the help of 2 X Viverridae from his posts above.. I'm using VB as the commenting system also and this works with no problems. Its a bit clunky in that I'd rather see the VB portion somehow inline with WP rather then taking you completely to the VB forums interface and leaving WP totally..

Other than that no problems..

Anyone have an idea if what I'd like is possible? Any coders want to take a shot at it? PM me.. I've got a fresh WP and VB install so its not too much to mess with.

Thanks anyway ..

LBS

redraider
11-05-2007, 08:00 PM
I have a problem. When I choose "post an exerpt" in the forum, the link to actual post in the blog doesnt show up, instead the link as <a href"" in the link. I am not sure what I missed. Could you help!

You can check a sample post here: http://www.scorechase.com/vb/showthread.php?t=6742

As you can see the continue reading doesnt show up as a valid link to the actual post.

It works fine if I take the exerpts off.

Thanks

LBSources
11-05-2007, 08:28 PM
How did you get the inline comments to work? My install wants to take me to the forum to view the comments. How can I have them show up in the post/blog.

fatal1980
11-05-2007, 08:59 PM
I installed the latest version of Wordpress (2.31) and vBulletin (3.6.8). And I made the changes that "2 X Viverridae" suggested and the errors are gone. However I can't see any forums when hitting write therefore I can't post. Anyone have any ideas?

NM, figured it out!

redraider
11-05-2007, 09:46 PM
I have a problem. When I choose "post an exerpt" in the forum, the link to actual post in the blog doesnt show up, instead the link as <a href"" in the link. I am not sure what I missed. Could you help!

You can check a sample post here: http://www.scorechase.com/vb/showthread.php?t=6742

As you can see the continue reading doesnt show up as a valid link to the actual post.

It works fine if I take the exerpts off.

Thanks

Looks like this only happens if I choose more than 600 words in the excerpt.

Blue Fusion
11-06-2007, 10:07 PM
Warning: require_once(/includes/class_bbcode.php) [function.require-once (http://bntholdings.com/blog/function.require-once)]: failed to open stream: No such file or directory in /home/bnthold/public_html/blog/wp-content/plugins/vbbridge.php on line 350

Fatal error: require_once() [function.require (http://bntholdings.com/blog/function.require)]: Failed opening required '/includes/class_bbcode.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bnthold/public_html/blog/wp-content/plugins/vbbridge.php on line 350
got this error resently O_o dono what how that happen

Wings69
11-07-2007, 05:16 AM
Problem I'm having - maybe someone who uses this plugin can help...

I want stories to be moderated, so that I can edit any typos etc that they've missed.

If a user is set to contributor, they submit their story for review. However when I approve it, it shows up under my name.

If same user is set to author, they can submit their story but it automatically posts it on the forum & site, so I'm unable to make typo changes.

Any help? :) Thanks

Wings69
11-07-2007, 05:19 AM
Blue_Fusion: Try changing that line 350 to:

require_once('/home/bnthold/public_html/blog/includes/class_bbcode.php');

You may have to throw /forum in there after /blog or whatever your forum folder is.

If anyones still having that line 446 error lemme know and I'll provide a guide to fix it - however I did it with WP 2.3 as opposed to 2.3.1 so it may not be 100%

marcus_brutus
11-07-2007, 08:42 AM
Wings, I'm still having problems getting beyond the errors on line 466, so fire away and reply here or send me a personal message.

LBSources
11-07-2007, 05:35 PM
marcus for the line 466 errors try this: https://vborg.vbsupport.ru/showpost.php?p=1373791&postcount=633

parabat
11-07-2007, 11:12 PM
This mod looks really useful and exactly what I have been looking for, but I have one problem :( My Wordpress database and vBulletin database are separate. Is there any one that can assist me in modifying this mod to read from both databases. Failing that, how is the best way to join the two databases into one??
Thanx in advance

-PB

trilljester
11-08-2007, 05:13 AM
Hmmm, I think I'm going to stick at the 2.2 level until this hack is fully working with 2.3.1

Or play around with it on my test board and see if I can hack it together to work properly.

Wings69
11-10-2007, 12:00 AM
Alright for the 466 errors you gotta hardcode the directory data. For this example, I'll say our forums are on:

/home/joesmith/forums

Line 41 change:

chdir($_SERVER['DOCUMENT_ROOT'] . get_option('vbb_VBRPATH'));

To:

chdir('/home/joesmith/forums');

Line 43:

$vwd = getcwd();

To:

$vwd="/home/joesmith/forums";

Line 60:

chdir($_SERVER['DOCUMENT_ROOT'] . get_option('vbb_VBRPATH'));

To:

chdir('/home/joesmith/forums');

Line 350:

require_once($vwd . '/includes/class_bbcode.php');

To:

require_once('/home/joesmith/forums/includes/class_bbcode.php');

Line 379:

chdir($_SERVER['DOCUMENT_ROOT'] . get_option('vbb_VBRPATH'));

To:

chdir('/home/joesmith/forums');

Line 466:

require_once($vwd . '/includes/functions_misc.php');

To:

require_once('/home/joesmith/forums/includes/functions_misc.php');

LBSources
11-10-2007, 02:22 AM
Has anyone been able to integrate this inline into a wordpress theme as advertised?

IcedGFX B3aST
11-10-2007, 03:01 AM
hi, im getting frustrated... i get this error when i go to mysite.com/blog/wp-content/plugins/vbbridge.php :


Fatal error: Call to undefined function: get_option() in /home/(path)/html/blog/wp-content/plugins/vbbridge.php on line 39

^^^ excluded actual path

i did all the hardcoding of forum paths as stated above

tanujdude91
11-10-2007, 12:20 PM
Hi
Have a doubt here..
My vbulletin url would be forums.domain.com and wordpress is installed in domain.com
What should i enter in Relative Path???
URGENT HELP NEEDED.

alverde
11-12-2007, 01:28 PM
Hi, when I write a post in Wordpress, the same post is published on vbulletin but the html-code (<a href, <b>, ecc..) isn't replace with vbulletin-code. Could you help me?

pspcrazy
11-13-2007, 12:24 AM
Anyone get this to work with v2.3.1? i want to upgrade but i'm holding back at the moment.

Brandon Sheley
11-13-2007, 12:35 AM
I'm still very interested in this, may have to install it on a test board.

I'm a little concerned in the duplicate content posted on the blog and the forum, I haven't looked at the settings, but maybe you can edit the reposted text.

cheers

Blue Fusion
11-13-2007, 12:50 AM
Blue_Fusion: Try changing that line 350 to:

require_once('/home/bnthold/public_html/blog/includes/class_bbcode.php');

You may have to throw /forum in there after /blog or whatever your forum folder is.

If anyones still having that line 446 error lemme know and I'll provide a guide to fix it - however I did it with WP 2.3 as opposed to 2.3.1 so it may not be 100%
tried that no fixed sadly this happened after the patch 1 and patch 2 released from vb when it got borked

CyberRanger
11-13-2007, 11:47 AM
Fabulous! I love how this works. I had to do the following tweaks to get it working with vb 3.6.8 and WP 2.3.1

REPLACE all instances of chdir($_SERVER['DOCUMENT_ROOT'] . get_option('vbb_VBRPATH')); WITH chdir('/home/brentan/public_html/vb36');
$vwd='/home/brentan/public_html/vb36';

DELETE require_once(ABSPATH . 'wp-admin/admin-db.php');

REPLACE require_once($vwd . '/includes/functions_misc.php'); WITH require_once('/home/brentan/public_html/vb36/includes/functions_misc.php');

Followed 2 X Viverridae's advice on fixing the sanitize_url problem: https://vborg.vbsupport.ru/showpost.php?p=1373791&postcount=633


Putting in so many of the paths as absolute seemed over-kill but it made it work! All systems go!

LBSources
11-13-2007, 06:20 PM
Fabulous! I love how this works. I had to do the following tweaks to get it working with vb 3.6.8 and WP 2.3.1

REPLACE all instances of chdir($_SERVER['DOCUMENT_ROOT'] . get_option('vbb_VBRPATH')); WITH chdir('/home/brentan/public_html/vb36');
$vwd='/home/brentan/public_html/vb36';

DELETE require_once(ABSPATH . 'wp-admin/admin-db.php');

REPLACE require_once($vwd . '/includes/functions_misc.php'); WITH require_once('/home/brentan/public_html/vb36/includes/functions_misc.php');

Followed 2 X Viverridae's advice on fixing the sanitize_url problem: https://vborg.vbsupport.ru/showpost.php?p=1373791&postcount=633


Putting in so many of the paths as absolute seemed over-kill but it made it work! All systems go!CyberRanger are the vbposts inline with your WP interface? or do you have to go to the forums to comment, read comments or read posts?

An example is as jaffo posted:http://www.jeffsrecipes.com/

LBS

CyberRanger
11-13-2007, 06:54 PM
CyberRanger are the vbposts inline with your WP interface? or do you have to go to the forums to comment, read comments or read posts?

An example is as jaffo posted:http://www.jeffsrecipes.com/

LBS
Mine works like jaffo. Once a comment has been made, it can be viewed at the bottom of the WordPress article (see attached) or on the Forum. So, I guess for reading comments, they are inline.

I've setup my WordPress templates to use vb for comments so once you click on "Add your comment", you are taking to a vb page to add the comment. Once the comment is submit, the user is taken to the vb thread. I do wish this could be tweaked to route the user back to the WordPress article.

LBSources
11-13-2007, 07:27 PM
Mine works like jaffo. Once a comment has been made, it can be viewed at the bottom of the WordPress article (see attached) or on the Forum. So, I guess for reading comments, they are inline.

I've setup my WordPress templates to use vb for comments so once you click on "Add your comment", you are taking to a vb page to add the comment. Once the comment is submit, the user is taken to the vb thread. I do wish this could be tweaked to route the user back to the WordPress article.

Ah .. so this is also happening to you. What i'm ultimately trying to do is when even making a post you are not taken to the forum, but the forum is inline (IFRAME) into the WP template.. so the environment doesnt change..

Make sense?

LBS

CyberRanger
11-13-2007, 07:44 PM
Ah .. so this is also happening to you. What i'm ultimately trying to do is when even making a post you are not taken to the forum, but the forum is inline (IFRAME) into the WP template.. so the environment doesnt change..

Make sense?

LBSThat makes perfect sense and would be much better. But, I don't know how to do that. I simply followed the directions in the installation readme file.

Is the inline suppose to be possible?

LBSources
11-13-2007, 07:47 PM
That makes perfect sense and would be much better. But, I don't know how to do that. I simply followed the directions in the installation readme file.

Is the inline suppose to be possible?
I wish it were, but i'm sure no one on VB does because it drifts away from being the native Vb perception and of its use. Why use VB to manage posts in WP .. I'm guessing thats why we dont have any support in here from anyone..

Brandon Sheley
11-14-2007, 04:03 PM
Fabulous! I love how this works. I had to do the following tweaks to get it working with vb 3.6.8 and WP 2.3.1

REPLACE all instances of chdir($_SERVER['DOCUMENT_ROOT'] . get_option('vbb_VBRPATH')); WITH chdir('/home/brentan/public_html/vb36');
$vwd='/home/brentan/public_html/vb36';

DELETE require_once(ABSPATH . 'wp-admin/admin-db.php');

REPLACE require_once($vwd . '/includes/functions_misc.php'); WITH require_once('/home/brentan/public_html/vb36/includes/functions_misc.php');

Followed 2 X Viverridae's advice on fixing the sanitize_url problem: https://vborg.vbsupport.ru/showpost.php?p=1373791&postcount=633


Putting in so many of the paths as absolute seemed over-kill but it made it work! All systems go!

Is this the only way to get wp 2.3.1 and vb 3.6.8 to work together ?

thanks

LBSources
11-15-2007, 06:50 PM
Is this the only way to get wp 2.3.1 and vb 3.6.8 to work together ?

thanksYes.. in most cases ..

Keesa
11-18-2007, 08:03 AM
I was hoping someone could show me how this is working? Like may I get a link to your working install?

misticjeff
11-18-2007, 11:19 AM
Full working version here:

www.misticriver.net

it is nice to post news on the front page of the site and have a thread automagically started in the forums or choose not to.

Wordpress is sooooo much better as a news/blog frontend than vBAdvanced and soooo much more scalable. This is an excellent mod but does need some attention to get it working.

Brandon Sheley
11-19-2007, 06:19 PM
Full working version here:

www.misticriver.net

it is nice to post news on the front page of the site and have a thread automagically started in the forums or choose not to.

Wordpress is sooooo much better as a news/blog frontend than vBAdvanced and soooo much more scalable. This is an excellent mod but does need some attention to get it working.

that link doesn't load for me :(

can you expand a little on this auto thread ?
Can you have it just post a snippit of the blog post ?
I'm just concerned in duplicate content.

misticjeff
11-19-2007, 06:23 PM
that link doesn't load for me :(

can you expand a little on this auto thread ?
Can you have it just post a snippit of the blog post ?
I'm just concerned in duplicate content.
Got a server issue at the moment so the site is offline...

Basically you if you create a blog post you have a list of forums with which to select where you want the blog post to show up. There is a default forum as well so if you do not select, it will go into the default forum. There is also a checkbox which gives you the option to not have your blog entry posted in the forums.

I was concerned too about duplicate content so if I post a blog entry and it's going into the forums for discussion, 98% of the time I disable comments in WordPress for that entry since we'll be discussing in the forums.

To my knowledge, you have to post the entire blog entry. I don't believe you can post just a snippet.

We are absolutely loving it!

misticjeff
11-19-2007, 06:38 PM
Sorry for this extraneous post...

site is back up:

www.misticriver.net

puertoblack2003
11-19-2007, 07:03 PM
Sorry for this extraneous post...

site is back up:

www.misticriver.net


nice layout mist

Brandon Sheley
11-19-2007, 08:00 PM
nice layout mist

I 2nd this :)
it looks great

I'm trying to get this working on my blog www.vbulletinsetup.com but I get the blank page on post.php error.

Same thing if I disable plugins, going to check my server log right now.





this is in the error log

as far as the instructions, I'm to the test post part.

oh. I see whats up..
okay, attempt #2 :D

jarod.tm
11-20-2007, 06:45 AM
Hi Guys, thanks for and to this fantastic plugin!!

How can i insert 2 or 3 forum to post into?------ "Select forum to post to" like in the attacched image.

In vbridge options i can specify forum ID. How can i specify more ID?

Thanks.

jarod.tm
11-20-2007, 11:57 AM
Perhaps there is a problem...

Fatal error: Call to undefined function: fetch_foruminfo() in /var/www/virtual/mysite.com/htdocs/wp-content/plugins/vbbridge.php on line 480

I've found it with Firefox, on right click, "Source Code".... on the post-new.php page

CyberRanger
11-20-2007, 08:28 PM
Perhaps there is a problem...

Fatal error: Call to undefined function: fetch_foruminfo() in /var/www/virtual/mysite.com/htdocs/wp-content/plugins/vbbridge.php on line 480

I've found it with Firefox, on right click, "Source Code".... on the post-new.php page

Do you have your WordPress and VB tables in the same database?

CyberRanger
11-21-2007, 04:15 AM
Perhaps there is a problem...

Fatal error: Call to undefined function: fetch_foruminfo() in /var/www/virtual/mysite.com/htdocs/wp-content/plugins/vbbridge.php on line 480

I've found it with Firefox, on right click, "Source Code".... on the post-new.php page

well, I installed this on another forum and got that error too!

I fixed that by adding a require_once for functions.php (right after the require_once for functions_misc.php around line 473 of vbbridge.php.). Of course, why is that necessary on one site and not another with exact same versions of vb and wp???

Now I'm getting: Call to a member function on a non-object in <b>/home/strategy/public_html/forums/includes/functions.php</b> on line <b>1029</b>. Yet to figure out a fix.

TonyComix
11-21-2007, 11:51 AM
One question, Is there is a way that I could make a section in the forum were when I make a topic, it will post it on Word Press? And any comments posted in vbulletin will automaticly be placed in Word Press as well? Nice hack.

LBSources
11-22-2007, 11:56 AM
One question, Is there is a way that I could make a section in the forum were when I make a topic, it will post it on Word Press? And any comments posted in vbulletin will automaticly be placed in Word Press as well? Nice hack.No this isnt the idea of the mod..

Has anyone experienced a bunch of question marks (??) in between characters of posts in Wordpress since installing the mod?

Research says that its due to encoding not being UTF-8 ..

Has anyone else experienced this?

WEBclay
11-22-2007, 12:03 PM
Okay I guess I enjoyed the mod to early :( If I activate the MOD I can't write any post since I get a blank page after submitting :( Works fine if I deactivate the MOD...Any solutions for this? Seems like the userbridge worked fine.

misticjeff
11-22-2007, 12:33 PM
Hi Guys, thanks for and to this fantastic plugin!!

How can i insert 2 or 3 forum to post into?------ "Select forum to post to" like in the attacched image.

In vbridge options i can specify forum ID. How can i specify more ID?

Thanks.
Go into Options > Vbridge Settings

then identify a forum to post to... take a look at my settings in the attached photo

SBlueman
11-24-2007, 02:51 PM
I am getting this error at the bottom of write post page when attempting to try my first test post:

Warning: vb_post_form(/public_html/forums/includes/functions_misc.php) [function.vb-post-form]: failed to open stream: No such file or directory in /home/sblueman/public_html/blog/wp-content/plugins/vbbridge.php on line 464

Fatal error: vb_post_form() [function.require]: Failed opening required '/public_html/forums/includes/functions_misc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sblueman/public_html/blog/wp-content/plugins/vbbridge.php on line 464

And I am getting this error when I try to submit the test post:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/sblueman/public_html/blog/wp-content/plugins/vbbridge.php on line 60
cannot load /home/sblueman/public_htmlhttp://gridironfans.com/forums/global.php. You should check your path!

Ceege
11-25-2007, 09:20 PM
Yay, after 45 minutes I got it to work with 3.6.8 and 2.3.1

WEBclay
11-26-2007, 09:43 AM
So what do we need to change that it works buddy?

CyberRanger
11-26-2007, 10:50 PM
So what do we need to change that it works buddy?
At a minimum, do what I've outlined in this post: https://vborg.vbsupport.ru/showpost.php?p=1381677&postcount=662

Jafo232
11-27-2007, 06:01 AM
Just a note, I am working on this plugin this week. I have already addressed many of the issues here and believe I have fixed most.

While I am at it, I am adding support for multiple databases (i.e. wordpress in one db, VB in another)..

Unfortunately, there seems to be a new function in either VB or WP (guessing WP) called sanitize_url. It causes conflicts and fatal errors when posting. I have rectified the issue by creating a clean version of functions_wysiwyg.php where just the function name (and its calls) are changed. I saw no other way around it.

I also am hoping to add support for posting via xmlrpc, i.e. Microsofts Live Writer (http://windowslivewriter.spaces.live.com/blog/cns!D85741BB5E0BE8AA!174.entry) and other such applications..

I will be working on this off and on during the week. Hope to have something for you all soon..

SBlueman
11-27-2007, 06:36 AM
Great news!

Clayton
11-27-2007, 06:39 AM
While I am at it, I am adding support for multiple databases (i.e. wordpress in one db, VB in another)...

wow oh wow Jafo

if you achieve this then you will certainly be sent a donation

this is absolutely superb news and I shall eagerly await

great stuff

WEBclay
11-27-2007, 06:44 AM
Fantastic news Jafo, thanks for this great work :)

Jafo232
11-27-2007, 06:53 AM
Well, I will have a BETA up in my forum tomorrow. I have been running tests on it, but want to try a few fresh installs. Had to update some of the template edits (nothing too major).

I am almost positive it is multi-db capable, however the entire stumbling block on this to begin with is not so much with the scripting, as it is with certain installations of PHP from which I understand only allow one connection to a database per instance. This may be for older installs as I do not seem to have the issue on the latest PHP5..

As for the xmlrpc feature, I seemed to have gotten that to work too, with a hitch. It requires that you change users passwords in WP via the admincp before it will work. Probably would require a VB plugin to work around that, and honestly, I am not sure if there is such a demand... Basically, the issue is, WP just takes the password and runs it through md5() and saves it. Vbulletin on the other hand does an md5(md5(password . salt)) save.. Rather tricky on how to get the real password. I can only guess a plugin that will grab the users password via VB when they login and save it md5() to the WP database..

Well, that is all for the future.. I have a couple testers for tomorrow that will hopefully find any bugs that may be in the new code..

WEBclay
11-27-2007, 07:15 AM
Another good news thanks :) I can do some test if you want as I have finished my wordpress theme and it should be working now :) Is there also a way to use the wp categories to post into different forums?

LBSources
11-27-2007, 11:44 AM
Just a note, I am working on this plugin this week. I have already addressed many of the issues here and believe I have fixed most.

While I am at it, I am adding support for multiple databases (i.e. wordpress in one db, VB in another)..

Unfortunately, there seems to be a new function in either VB or WP (guessing WP) called sanitize_url. It causes conflicts and fatal errors when posting. I have rectified the issue by creating a clean version of functions_wysiwyg.php where just the function name (and its calls) are changed. I saw no other way around it.

I also am hoping to add support for posting via xmlrpc, i.e. Microsofts Live Writer (http://windowslivewriter.spaces.live.com/blog/cns!D85741BB5E0BE8AA!174.entry) and other such applications..

I will be working on this off and on during the week. Hope to have something for you all soon..Jaffo great to see you back here ..

LBSources
11-27-2007, 11:50 AM
Jaffo,

It seems though after installing this plugin and changing my encoding in WP to ISO-8859-1 that When I make posts they all come up with ??? where the " and ' punctuation marks are.. These ?? go into the WP and VB posts.

When I set WP encoding to UTF-8, then punctuation shows up as ?* in VB posts

My environmental settings are below.

VB 3.6.8 patch level 2
WP 2.3.1
PHP version 5.2.4
MySQL version 5.0.45-community

Any help is appreciated as its basically eliminating the object of the plug in. :( I have to go back to the WP post and VB post to make the corrections.

Definitely glad youre back and on track with this great hack again.

LBS

Jafo232
11-27-2007, 03:30 PM
Sounds like your encoding is different than usual. You need the encoding to be the same on VB and WP. It may be in your case that you are using utf-8..

LBSources
11-27-2007, 04:19 PM
Sounds like your encoding is different than usual. You need the encoding to be the same on VB and WP. It may be in your case that you are using utf-8..
Jaffo :)

As I said.. Im not using UTF-8 in VB, as the default is ISO-8859-1; I havent changed that. All I have changed is the wordpress from UTF-8 to ISO-8859-1.

When I make posts they all come up with ??? where the " and ' punctuation marks are.. These ?? go into the WP and VB posts.

When I set WP encoding to UTF-8, then punctuation shows up as ?* in VB

Jafo232
11-27-2007, 04:23 PM
Not sure why. Try changing your template in WP as a test, and see if the matter is resolved. It may also be an issue with your server. You may want to check and see what the default encoding is on your web server (if apache, check httpd.conf). Ideally, you will want these to be the same.

For everyone else.. Packaging up BETA now..

Jafo232
11-27-2007, 04:33 PM
For all of you to TEST, I have added the vbridgeIII-BETA.zip file to the modification (see very first post)...

Remember, it is BETA, so go easy on me if there are any bugs...

P.S. Don't forget to read the readme.txt!

Jafo232
11-27-2007, 04:36 PM
As for what has changed:

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.

LBSources
11-27-2007, 04:36 PM
Not sure why. Try changing your template in WP as a test, and see if the matter is resolved. It may also be an issue with your server. You may want to check and see what the default encoding is on your web server (if apache, check httpd.conf). Ideally, you will want these to be the same.

For everyone else.. Packaging up BETA now..Thanks Jafo .. Will look into it now..

WEBclay
11-27-2007, 05:19 PM
I still got the blank page after submitting the post in WP. Tables are in my vbulletin database and everything else works, just not the posting so I am not able to test if the post goes to my forums :(

Jafo232
11-27-2007, 05:21 PM
Do you have an error message in your servers error log?

LBSources
11-27-2007, 05:22 PM
Jafo no luck here.. Everything is inline as it should be.. There is no reason why this should be happening.. Any other ideas?

WEBclay
11-27-2007, 05:30 PM
Do you have an error message in your servers error log?

Does this help you out or do you need anything more?


[Tue Nov 27 20:28:56 2007] [error] [client 80.254.172.221] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of WWU002promoteUser(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /srv/www/vhosts/cgpad.org/httpdocs/forum/global.php(360) : eval()'d code on line 432, referer: http://www.cgpad.org/wp-admin/options-general.php?page=vbridgeIII-BETA/vbbridge.php
[Tue Nov 27 20:29:13 2007] [error] [client 80.254.172.221] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of WWU002promoteUser(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /srv/www/vhosts/cgpad.org/httpdocs/forum/global.php(360) : eval()'d code on line 432, referer: http://www.cgpad.org/wp-admin/post-new.php
[Tue Nov 27 20:29:13 2007] [error] [client 80.254.172.221] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/functions_wysiwyg2.php' (include_path='.:.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/vhosts/cgpad.org/httpdocs/wp-content/plugins/vbridgeIII-BETA/vbbridge.php on line 101, referer: http://www.cgpad.org/wp-admin/post-new.php

Jafo232
11-27-2007, 05:35 PM
Jafo no luck here.. Everything is inline as it should be.. There is no reason why this should be happening.. Any other ideas?

Not really, no.

CyberRanger
11-27-2007, 05:43 PM
For all of you to TEST, I have added the vbridgeIII-BETA.zip file to the modification (see very first post)...

Remember, it is BETA, so go easy on me if there are any bugs...

P.S. Don't forget to read the readme.txt!BETA loaded and working great so far with zero edits. :up:

I do wish instead of having html enabled in the forum the WP post could be converted to vbcode. :)

Jafo232
11-27-2007, 05:45 PM
Does this help you out or do you need anything more?

Hmm, was kind of afraid of that... Making sure that your plugin is in the plugins directory (no subdirectory!), change this line in vbbridge.php:


require_once($plugd . '/functions_wysiwyg2.php');

To:

require_once(ABSPATH . 'wp-content/plugins' . '/functions_wysiwyg2.php');

Also, make sure you uploaded the functions_wysiwyg2.php file..

Jafo232
11-27-2007, 05:46 PM
I do wish instead of having html enabled in the forum the WP post could be converted to vbcode. :)

Give it a shot, I think the BETA may handle that already.. Of course, there is some HTML that just wont translate..

WEBclay
11-27-2007, 05:53 PM
Hmm, was kind of afraid of that... Making sure that your plugin is in the plugins directory (no subdirectory!), change this line in vbbridge.php:


require_once($plugd . '/functions_wysiwyg2.php');

To:

require_once(ABSPATH . 'wp-content/plugins' . '/functions_wysiwyg2.php');

Also, make sure you uploaded the functions_wysiwyg2.php file..

Thanks a TON Jafo. I didn't recognized that the files have to be single placed into the plugins directory :)

Jafo232
11-27-2007, 06:19 PM
I hope all of you who download the BETA report back the good, bad, ugly here.. I would like to submit this for release soon. Any bugs you find will help expedite it.

CyberRanger
11-27-2007, 06:28 PM
Where do I check the encoding my forum uses? I know it simple but darn if I can find it.

Also, if I have a WordPress post create a vb thread then delete the vb thread, I get an error message if I try to have that WordPress post create a new vb thread. I guess that would need a vb plugin to clean up a table somewhere.

Jafo232
11-27-2007, 06:35 PM
Where do I check the encoding my forum uses? I know it simple but darn if I can find it.

Also, if I have a WordPress post create a vb thread then delete the vb thread, I get an error message if I try to have that WordPress post create a new vb thread. I guess that would need a vb plugin to clean up a table somewhere.

Care to elaborate on the error message?

Umm, usually the encoding is ISO-8859-1.. Can't remember where you check in VB..

CyberRanger
11-27-2007, 06:52 PM
Care to elaborate on the error message?
Sure thing! If I hard delete the vb thread then try to get the WP post to make a new vb thread I get this error:
Database error in vBulletin 3.6.8:

Invalid SQL:
UPDATE post SET pagetext = '\r\nFrankfurt am Main, Germany, 9 November 2007 – Leading video game publisher, Fireglow Games®, today released a new multilingual demo for “Stranger”, Fireglow’s upcoming RPG, which features the best elements of real-time strategy.
\r\n\r\n
You can download the demo here:\r\nhttp://www.fileplanet.com/182254/180000/fileinfo/Stranger-Demo?r=5\r\nStranger demo in English (218 Mb)\r\nStranger demo in German (218 Mb)\r\nStranger demo in Italian (218 Mb)\r\nStranger demo in Polish (220 Mb)\r\nStranger demo in Czech (220 Mb)\r\nStranger demo in Russian (226 Mb)\r\nYou will be able to find the game in stores in the end of November 2007.
\r\nAbout Stranger:
\r\nStranger is an RPG blended with the best elements of RTS.
\r\nAn innovative and never before seen magical system allows you to select your own strategy and tactics in the course of a battle, providing the suitable response to the enemy\'s move - you will be surprised by how simple yet versatile it is. Hiring, training a... Full Article (http://www.armchairgeneral.com/?p=3666)', title = 'PR: Fireglow games released a new exciting demo for STRANGER' WHERE postid=;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064
Date : Tuesday, November 27th 2007 @ 02:48:34 PM
Script : http://www.armchairgeneral.com/wordpress/wp-admin/post.php
Referrer : http://www.armchairgeneral.com/wordpress/wp-admin/post.php?action=edit&post=3666
IP Address : 24.199.229.157
Username : CyberRanger
Classname : vb_database


Umm, usually the encoding is ISO-8859-1.. Can't remember where you check in VB.. We have our WP install at utf-8. Changing WP to ISO-8859-1 seems to mess up our quotes. Thought I'd see what happens if I change the forum to utf-8. Hmmm ... must be in the config file??

CyberRanger
11-27-2007, 07:00 PM
Umm, usually the encoding is ISO-8859-1.. Can't remember where you check in VB..Ends up it's not a simple deal in vb, even a bit of contention over the issue. Basically, vb runs on ISO-8859-1

Thread of discussion: http://www.vbulletin.com/forum/showthread.php?t=205071&page=1

Jafo232
11-27-2007, 07:12 PM
Sure thing! If I hard delete the vb thread then try to get the WP post to make a new vb thread I get this error:


Ok, I see the issue.. I have fixed and reuploaded.. All you will have to do is reupload vbbridge.php.. Good catch..

CyberRanger
11-27-2007, 07:28 PM
Ok, I see the issue.. I have fixed and reuploaded.. All you will have to do is reupload vbbridge.php.. Good catch..fast work! The error message goes away but the wp post doesn't appear in vb.

WEBclay
11-27-2007, 08:43 PM
I had also to change the charset to utf-8 in my vb. To do this:

AdminCP -> Languages & Phrases -> Language Manager -> [edit settings]

Beside that the mod works like a treat. Didn't had to modify any of the files and no more "blank page" after posting. Well done and many many thanks for this hard work :up:

LBSources
11-27-2007, 09:01 PM
Jafo .. So the ?? rewriting from my quotes has been corrected? Is there anyway to correct this without upgrading to the beta version yet?

As I mentioned a few posts before; all of my ' and " are written as ?? in my posts to WP and VB

My WP is the same as the VB encoding. ISO-8859-1

LBSources
11-27-2007, 09:06 PM
I had also to change the charset to utf-8 in my vb. To do this:

AdminCP -> Languages & Phrases -> Language Manager -> [edit settings]

Beside that the mod works like a treat. Didn't had to modify any of the files and no more "blank page" after posting. Well done and many many thanks for this hard work :up:

It seems this has fixed it, but are there any consequences to changing this?

Evolution06
11-27-2007, 09:08 PM
I have done the instructions in the readme and.. Everything works good like posting to the forums and the integrating of users.. but w/e I click on after Turn Auto-Integrate On takes me to the forums and then if I follow http://pandemicdesign.net/blogs/ is gives me some weird search error and even if I click something else it still wont work.. so far I have checked everything... any ideas?

I am using the wordpress where members can create their own blogs.

Jafo232
11-27-2007, 10:50 PM
I am using the wordpress where members can create their own blogs.

As it states in the requirements:

DOES NOT support Wordpress MU.

CyberRanger
11-28-2007, 12:56 AM
With the BETA plug-in activated but turned "off", I get the following error on my WordPress main page:

Fatal error: Class 'vBulletinHook' not found in /home/brentan/public_html/vb36/includes/class_bbcode.php on line 2405

My forum software is installed in vb36.

Jafo232
11-28-2007, 01:24 AM
I believe you need to turn plugins on in Vbulletin..

CyberRanger
11-28-2007, 01:53 AM
I believe you need to turn plugins on in Vbulletin..

Plugins are turned on in vb. I can PM you site details if you'd like.

It is on my test site so no big deal. Could be something else I have that's funky.

Jafo232
11-28-2007, 02:30 AM
Plugins are turned on in vb. I can PM you site details if you'd like.

It is on my test site so no big deal. Could be something else I have that's funky.

In vbbridge.php at the beginning of the file, you should see this line:

define('NOSHUTDOWNFUNC', true);

See what happens when you ADD this line after it:

define('DISABLE_HOOKS', true);

SBlueman
11-28-2007, 04:46 AM
I got to setup the vbridge, and once I go to the next step of changing the Reading functions I get this error:

Fatal error: Cannot redeclare checked() (previously declared in /home/XXXXXX/public_html/forums/blogs/backend/functions_blog.php:412) in /home/XXXXXX/public_html/blog/wp-admin/includes/template.php on line 64

and nothing else, just a white screen with that error.

Now the entire admin dashboard in giving me that error.

Jafo232
11-28-2007, 04:51 AM
Ok, this is not an error from the vbbridge plugin..

SBlueman
11-28-2007, 05:22 AM
Odd....I only seem to be getting this error after I install the bridge. I re-installed wordpress and it was working fine up until the same step....

oh well....guess I'll just move on and try to find some other solution.

Evolution06
11-28-2007, 03:57 PM
As it states in the requirements:

Well that really sucks.. Any bridges for MU?

Jafo232
11-28-2007, 04:37 PM
Not that I know of. Since Jelsoft has released a blog product that plugs directly into Vbulletin, I really don't see the point..

SBlueman
11-29-2007, 04:07 AM
I don't know what the issue is....I did a clean install of wordpress, everything went fine....I go and activate the plugin, set it up and then when I go to post the test post I get:

Warning: main(DIR/includes/functions_newpost.php) [function.main]: failed to open stream: No such file or directory in /home/sblueman/public_html/forums/includes/class_dm_threadpost.php on line 18

Fatal error: main() [function.require]: Failed opening required 'DIR/includes/functions_newpost.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sblueman/public_html/forums/includes/class_dm_threadpost.php on line 18

Jafo232
11-29-2007, 04:13 AM
Somewhere in /home/sblueman/public_html/nflblog/wp-admin/includes/template.php, you are either trying to create a function called checked(), or include a file where it (or its included files) already have it declared..

SBlueman
11-29-2007, 04:19 AM
I haven't edited any files from the stock install...that is odd...

Jafo232
11-29-2007, 04:46 AM
I haven't edited any files from the stock install...that is odd...

function checked( $checked, $current) {
if ( $checked == $current)
echo ' checked="checked"';
}

SBlueman
11-29-2007, 05:28 AM
I'm sorry...I don't know what you are telling me. Am I supposed to remove that?

Evolution06
11-29-2007, 05:35 PM
Not that I know of. Since Jelsoft has released a blog product that plugs directly into Vbulletin, I really don't see the point..

Mainly cause wpmu is free and if it could be bridged that would be even better then paying $50 for a program only a few members might use.. I am only working on this because 1or2 members have requested it.

Jafo232
11-30-2007, 02:47 AM
I'm sorry...I don't know what you are telling me. Am I supposed to remove that?

Sorry about leaving you hanging there.. You have a plugin in your Vbulletin (blogs?) that has created a function called checked.. This is causing an error.. Probably the best bet is to do this:

https://vborg.vbsupport.ru/showpost.php?p=1390789&postcount=727

Assuming that your blog plugin is using the hook/plugin/product system in Vbulletin.

SBlueman
11-30-2007, 03:31 AM
That did it, thank you so much!

Clayton
11-30-2007, 05:13 AM
Jafo, impressive work, I will be getting to testing this shortly

Thank you so much for your work

Jafo232
11-30-2007, 06:04 AM
Just so everyone knows.. I did look into making this available for WPMU, but that script is SO different from the regular WP, I just don't have the desire or the time to mess with it, especially since I do not use that script.

With the release of the blog product by Jelsoft, I see no need for it anyway..

Clayton
11-30-2007, 07:17 AM
Hi Jafo, sorry about this however will we be able to set-up Wordpress on a different domain to the domain vBulletin is installed on, please?

so blogpress.com is linked to forums.com

I was under impression this was going to be possible with this upgrade

I thinks I may be mistaken?

wolfyman
11-30-2007, 11:39 AM
updates scare me..

mine seems to be working fine, I think I'll leave it alone for now.

Jafo232
11-30-2007, 03:36 PM
Hi Jafo, sorry about this however will we be able to set-up Wordpress on a different domain to the domain vBulletin is installed on, please?

so blogpress.com is linked to forums.com

I was under impression this was going to be possible with this upgrade

I thinks I may be mistaken?

No, it is not possible. You are confusing multiple databases with multiple domains. The domain restriction is still in effect.

Evolution06
11-30-2007, 03:50 PM
Just so everyone knows.. I did look into making this available for WPMU, but that script is SO different from the regular WP, I just don't have the desire or the time to mess with it, especially since I do not use that script.

With the release of the blog product by Jelsoft, I see no need for it anyway..

With what you have so far.. It all worked for me.. I mean it posted to the forums when a user logged on to the forums and followed the wp link it auto registered them.. only problem was it did some weird search thing.. Maybe I can figure out a way to fix that.. but I mean everything else worked fine for MU... Even though you say jelsoft did make the blog $50 is still alot of spend for some.. But maybe I can fix this problem and send you what I have done to look over.

redraider
12-01-2007, 02:29 AM
How do I upgrade from the previous version? The readme has installation instructions but no upgrade instructions. Please help.

Thanks

Jafo232
12-01-2007, 05:43 AM
How do I upgrade from the previous version? The readme has installation instructions but no upgrade instructions. Please help.

Thanks

Huh? Yes it does, it is the very first part of the readme?

SBlueman
12-02-2007, 12:23 AM
Just a question....do the instructions for the replacement codes need to be updated as far as using vBulletin as your comments system? I tried to follow the instructions but did not find some of the snippets of code to edit.

Jafo232
12-02-2007, 03:02 AM
The snippets of code generally depend on the template. Basically you are removing the existing code for the comments..

fumbler
12-02-2007, 04:43 AM
I have been trying for a while now to get this working. I have renamed the vbbridge.php file and CAN NOT login to my vbulletin now at all! Any idea how to fix this!?

fumbler
12-02-2007, 05:00 AM
just an update, I can login from another computer but not this one. I have cleared my cache, cookies, rebooted twice, clicked my heels together 3x and nothing seems to want to allow me to log back into my vb from this computer. any idea why?

will this mod work with vbseo installed?

Jafo232
12-02-2007, 05:47 AM
It sounds to me either a cookie or cache issue but you say you cleared cookies out.. Could be your ISP caching too, so try logging into the WP admin via wp-admin/?dontcacheme.

fumbler
12-02-2007, 05:58 AM
i can login to WP okay but not VB - just refreshes the screen but I'm not logged into the forum. I've even deleted the two files of this mod off of the server.

fumbler
12-02-2007, 06:50 AM
I tried this as was suggested many pages ago and it worked:
http://www.vbulletin.com/forum/showthread.php?t=220512&highlight=cookies

I look to be working alright now except for the fact that its not rendering the HTML. Any solution as to how to fix this:
http://www.sports-cards.ca/forums/recent-blog-posts/141-new-product-2007-08-upper-deck-series-1-hockey.html

Update:
I have now turned on HTML for the category these are being posted under BUT i want to put them under more then one category and NOT turn HTML on for all. Is there a way to change the HTML to bbcode? (on page of 38 of 51 now...). The formatting looks wretched in its current form and i really do not want to allow people to use HTML on a forum of this type.

Blackhat
12-02-2007, 08:04 AM
So when posting, everything is posted twice right ?

Blackhat
12-02-2007, 08:21 AM
**never mind**

https://vborg.vbsupport.ru/showpost.php?p=1390789&postcount=727

fumbler
12-03-2007, 11:30 PM
Does this Mod change how WP is saving data to the database? Ever since I've installed it, I am losing data in my post that looks like it just stops saving where it should be escaping characters such as dashes, quotes, etc.

AWJunkies
12-04-2007, 01:28 PM
So hmm is this mod safe? I have them integrated already via hard coding from 2 years ago. I would much rather have fresh fresh installs of both and have this if possible.

Jafo232
12-05-2007, 12:04 AM
Does this Mod change how WP is saving data to the database? Ever since I've installed it, I am losing data in my post that looks like it just stops saving where it should be escaping characters such as dashes, quotes, etc.

It does not change any data. It does not get the data to act upon until after it is saved. You may want to check any other plugins you have installed.

Jafo232
12-05-2007, 12:04 AM
So hmm is this mod safe? I have them integrated already via hard coding from 2 years ago. I would much rather have fresh fresh installs of both and have this if possible.

I have no had any reports that the mod has broken anything since the first version. Just make sure you check the requirements in the first post.

AWJunkies
12-06-2007, 06:22 AM
Works perfect so far going live with it tomorrow.

SBlueman
12-06-2007, 06:34 AM
I wish there was a way for me to get my vbulletin header on my wordpress page...anyone know how to do this?

AWJunkies
12-06-2007, 05:55 PM
yeah it is called edit the templates! Create your own theme. I just did it and so can you. There is a file in theme called header edit away!