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)

jsalvit 08-06-2007 06:20 PM

I figured out a way to fix it. I do a string replace for the original src= and replace it with my root relative image src.

I replaced your line
Code:

echo $vbridge[vb_parser]->do_parse($reply->pagetext, false, true);
with this:

Code:

echo str_replace("src=\"", "src=\"/forum/", $vbridge[vb_parser]->do_parse($reply->pagetext, false, true));

markbolyard 08-07-2007 05:51 PM

Quote:

Originally Posted by tpearl5 (Post 1310552)
Warning: require_once(/includes/functions_misc.php) [function.require-once]: failed to open stream: No such file or directory in /home/site/public_html/blog/wp-content/plugins/vbbridge.php on line 466

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

I got this error too. I edited vbbridge.php and made the changes you mentioned:

All instances of this: chdir($_SERVER['DOCUMENT_ROOT'] . get_option('vbb_VBRPATH'));

were changed to this:

chdir('/home/monksdin/public_html/entertainmentforum');

and $vwd = getcwd(); was changed to

$vwd = getcwd('/home/monksdin/public_html/entertainmentforum');

With that being said, in the Write Post Screen, I get the above errors.

I can make a post, and that post gets to the forum... but then when I view my blog, I get this too:

Warning: Wrong parameter count for getcwd() in /home/monksdin/public_html/entertainmentblog/wp-content/plugins/vbbridge.php on line 43

Unable to add cookies, header already sent.
File: /home/monksdin/public_html/entertainmentblog/wp-content/plugins/vbbridge.php
Line: 43


My forum is http://www.monksdiner.com/entertainmentforum
and my blog is http://www.monksdiner.com/entertainmentblog

Any help would be appreciated. Thank you.

Jafo232 08-07-2007 05:55 PM

Sorry, must have been blurry-eyed and caffeinated when I said:

Code:

$vwd = getcwd('/some/path/to/vb');
Should be:

Code:

$vwd = '/home/monksdin/public_html/entertainmentforum';

markbolyard 08-07-2007 06:02 PM

Trying it now. Thanks. Will let you now how it works.

markbolyard 08-07-2007 06:34 PM

Ok, well here is my problem now. I'm not sure that fixed it, but I think it did.

However, I have a usergroup called blog staff. I am in that usergroup. That usergroup, I gave Author access too, and now I can't get back into the wp-admin. I deleted vbbridge.php from the plugin directory, and that fixes is... so here is what I need to know...

If I upload vbbridge again, and reactivate it, I automatically become a Author, therefore not being able to change the associations... How can I get around this? Did it alter the database? I did notice all my setting for vbbridge are still correct when I re-activate it, so it must have stored that info somewhere.

Thanks

markbolyard 08-07-2007 07:11 PM

Figured it out. Thanks.

markbolyard 08-07-2007 10:30 PM

Ok, I got everything working great. Now, the only problem I am having is the mapping of usergroups, and how this handles members that have a primamry usergroup, and a secondary.

I have Admins, Mods, and registered members... I also have a usergroup called blog staff.

Blog Staff is a secondary usergroup to those Admins, Mods, and Registered Members. I have blog staff mapped to be Authors of posts, however they cannot access Write Features.

Any idea how to handle this? I don't want some of the blog staff to have full access, just be able to post, and I also don't want to upgrade registered members to mod or admin status either.

Thanks.

Jafo232 08-08-2007 03:23 AM

Mapping only works with PRIMARY usergroups, not secondary..

Brew 08-10-2007 03:14 PM

Heya Jafo!

Awesome mod man, great job!

I have everything working but I do have a small formatting problem.

In the image I posted below you'll see that the text of the comments are very small.

I'm sure it's a CSS thing but I can't seem to locate where the comments class is located.

The image is probably blurry but you can see that the text is extremely little.

* Also, Do you know how to get other parts of WP to recognize the new commenting system? Like the stats widget and latest comments etc.

I also have a request.

* Would it be possible for a future version to have the ability to post in vB and have the article posted to WP as well? The editing functions in vB are so much better than WP is.

Thanks for your help and a great mod!

puertoblack2003 08-11-2007 12:29 AM

wow going through the thread and looking for my problem can find anything...


Ok my problem is when i activate the Integrate On i don't see whats posted in wordpress but whe i deactivate i can see the posting...any way of fixing that or do i need that on..

this is the actual meassage i get when i activate plugin
Quote:

Not Found

Sorry, but you are looking for something that isn't here.
i'm using vb 3.6.7 wp 2.2

boybawang 08-14-2007 01:46 AM

Hello,
This is a great/useful mod.
I am a having problem with the integration.
I am experiencing this when writing a post (wp-admin/post-new.php):
<b>Fatal error</b>: Call to a member function on a non-object in <b>/path/to/forum/includes/functions.php</b> on line <b>1013</b><br />

I figured it has somthing to do with the $vbulletin object. How do I include the $vbulletin object?

Jafo232 08-14-2007 02:00 AM

It should already be included. It sounds to me that it cannot find the config file. You need to make sure the paths are right.. See limitations in the main post..

boybawang 08-14-2007 02:21 AM

Thanks for the reply. I will try your suggestion. Wish me luck:D

boybawang 08-14-2007 07:15 AM

Well, I'm so disappointed right now :(
I followed just what is instructed in the Limitations section (I used define('FORUM_ABSOLUTE_PATH', '/path/to/my/forum'); ). I used to to replace the getcwd calls as well as the require_once('./global.php');


The error I reported above is now gone.
But now I think I'm experiencing a similar problem again. The call to vbsetcookie() fails:

path/to/vbulletin/includes/functions.php in vbsetcookie() function
Code:

        else if (empty($vbulletin->db->explain))
        { //show some sort of error message
                global $templateassoc, $vbulletin;
                if (empty($templateassoc))
                {
                        // this is being called before templates have been cached, so just get the default one
                        $template = $vbulletin->db->query_first_slave(" //this is line 1795
......

Fatal error: Call to a member function on a non-object in /path/to/forum/includes/functions.php on line 1795

I am using WP 2.2 & VB 3.6.7
WP is the root of my domain & VB is in a subfolder (named forum) of my domain

chronoshift 08-14-2007 07:38 PM

How in god's name are you supposed to fix the admin/admin limitation when you can't change the admin username in wordpress?

Stefano Virgill 08-15-2007 12:51 PM

Very very very interesting.
Unfortunately my domains are.
forum.domain.com
clog.domain.com

looking forward for the solution.

greetings

Steve

Jafo232 08-15-2007 03:31 PM

Quote:

Originally Posted by chronoshift (Post 1317577)
How in god's name are you supposed to fix the admin/admin limitation when you can't change the admin username in wordpress?

Change it in Vbulletin...

AntiThesis 08-17-2007 12:28 PM

Hi :)

Fantastic mod :D

Just one question... would it be possible to change the modification so that it doesn't merge users but does allow comments to go straight to vBulletin? In other words, I don't want my users to have a single sign-on but I do want auto-thread creation etc.

This would be fantastic :D

puertoblack2003 08-18-2007 10:26 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
Quote:

Not Found

Sorry, but you are looking for something that isn't here.
but when i diabled the integration i can see it.and the path is correct any ideas

WEBclay 08-20-2007 08:38 PM

I just want to say thousand thanks, works great so far :)

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

Quote:

Originally Posted by puertoblack2003 (Post 1320597)
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

Quote:

Originally Posted by abaum (Post 1322314)
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

Quote:

Originally Posted by jamestl2 (Post 1329597)
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

Quote:

Originally Posted by Tsukasa-san (Post 1301505)
Aha. Just noticed it.

Code:

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

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

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

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

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

into
PHP Code:

chdir('/my/absolute/path/to/vb/dir'); 

but it didn't help

#3 : modified the line 350
from
PHP Code:

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

to
PHP Code:

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

Quote:

Originally Posted by pericolosogr (Post 1339291)
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.


All times are GMT. The time now is 05:31 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.02233 seconds
  • Memory Usage 1,847KB
  • 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
  • (9)bbcode_code_printable
  • (4)bbcode_php_printable
  • (9)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