vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Integration with vBulletin - Complete Wordpress/Vbulletin Bridge - Share Users And Postings (https://vborg.vbsupport.ru/showthread.php?t=134521)

pericolosogr 09-15-2007 04:35 PM

Quote:

Originally Posted by Jafo232 (Post 1339311)
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:
Code:

require_once($vwd . '/includes/functions_misc.php');
The errors are:
Code:

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:
Code:

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 prefixes
Any 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

Quote:

Originally Posted by djr (Post 1340439)
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

Quote:

Originally Posted by V3RT1G0 (Post 1340443)
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:

Quote:

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

Quote:

Originally Posted by Jafo232 (Post 1340585)
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

Quote:

Originally Posted by Jafo232 (Post 1340591)
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? I try to give the coder as much info as possible.

Quote:

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:
Code:

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 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):
Code:

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

Quote:

Originally Posted by UltraSTYLE (Post 1341533)
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)

The pbr was when invoking the code
PHP Code:

$bbcode =& new vB_BbCodeParser($vbulletinfetch_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

Quote:

Originally Posted by Jafo232 (Post 1343168)
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:

Quote:

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

Quote:

Originally Posted by Shack Dougall (Post 1343234)
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

Quote:

Originally Posted by Transverse Styles (Post 1343868)
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

Quote:

Originally Posted by kj_ugs (Post 1344591)
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:

PHP Code:

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

over

PHP Code:

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:
Quote:

Select Forum To Post To:
it's empty, dark.... how to use this?

Bye.


All times are GMT. The time now is 09:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02036 seconds
  • Memory Usage 1,860KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (3)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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