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)

wolfyman 10-23-2007 09:21 PM

Quote:

Originally Posted by wolfyman (Post 1365034)
I am getting this from a few users.

Quote:

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

Quote:

Originally Posted by misticjeff (Post 1367018)
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:
  1. Follow Jafo's install directions
  2. 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."
  3. Log out your newly created user
  4. Log back into VB with your VB administrator username.
  5. Go to the VB Admin Control Panel
  6. Click the "Users" category in the menu on the left side
  7. Click "Search for Users" in the sub-menu that appears
  8. Find your newly created user -- "admin" in my case
  9. Change the Primary Group to "Administrators" and click save
  10. Log out the current user
  11. Log back in with the user you just set to "Administrators" -- again, this was "admin" for me.
  12. 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

Quote:

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

Quote:

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

Quote:

no its not
yes its not working, I waste my hrs

Quote:

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

Quote:

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

Quote:

Originally Posted by letsjoy (Post 1372393)
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

Quote:

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.

Quote:

Originally Posted by Blackhat (Post 1370653)
...when I click SAVE or PUBLISH I get this

Quote:

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

Quote:

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

// $vwd = getcwd();

I replaced line 350, which was:
Code:

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

With:
Code:

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

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

I replaced line 466, which was:
Code:

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

With:
Code:

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

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

$vwd = getcwd();
to this and the errors are gone
Quote:

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

<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

Quote:

Originally Posted by WEBclay (Post 1350833)
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

Quote:

Originally Posted by redraider (Post 1376521)
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]: 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]: 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....&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:

Code:

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

Code:

chdir('/home/joesmith/forums');
Line 43:

Code:

$vwd = getcwd();
To:

Code:

$vwd="/home/joesmith/forums";
Line 60:

Code:

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

Code:

chdir('/home/joesmith/forums');
Line 350:

Code:

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

Code:

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

Code:

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

Code:

chdir('/home/joesmith/forums');
Line 466:

Code:

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

Code:

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


All times are GMT. The time now is 07:50 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02674 seconds
  • Memory Usage 1,856KB
  • 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
  • (19)bbcode_code_printable
  • (18)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