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)

Jafo232 07-21-2007 01:20 AM

You just use that same database. When your asked what the database information is to install Vbulletin, use the same information you used for wordpress (or vice versa).

kholland 07-21-2007 02:03 AM

Well, that sounds easy enough....thanks!

trichnosis 07-23-2007 04:03 AM

it looks good . i will try it

rsuplido 07-23-2007 05:42 PM

There is a slight problem on this mod. It doesn't seem to work through xmlrpc as well as the following:

Create a new WP post.
Save and Continue (instead of publish).
Publish.

For some reason, it doesn't create a new vB thread when a WP was previously saved.

posting via xmlrpc doesn't create a vB thread either.

chiwexa 07-23-2007 06:22 PM

Does it work, when my blog is at:

bloag.mydomain.org

and the forum is as

mydomain.org

:confused:

Jafo232 07-23-2007 07:47 PM

Quote:

Originally Posted by chiwexa (Post 1299420)
Does it work, when my blog is at:

bloag.mydomain.org

and the forum is as

mydomain.org

:confused:

No..

Tsukasa-san 07-25-2007 09:02 AM

I'm having some problems getting the comments part to work. Everytime I call for the Comments_Handler, my page gets blank. Currently, I have it like this:

Code:

<? $vbridge = Comment_Handler($post->ID); ? >


<div class="style1"><?php the_date('','<h2>','</h2>'); ?></div>

<div class="style1" id="post-<?php the_ID(); ?>
        <h3 class="style1"><a href=<?php echo get_option('vbb_VBURL') ?>/showthread.php?t=<?php echo $vbridge[id] ?>><?php the_title(); ?></a> </h3>
        <div class="style1">— <?php the_author() ?> <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div>

        <div class="style1">
        <?php the_content(__('(more...)')); ?></span>
<a href=<?php echo get_option('vbb_VBURL') ?>/showthread.php?t=<?php echo $vbridge[id] ?>>(<?php echo intval($vbridge[count]) ?>) comments</a>
        </div>
</div>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>

As you can see, I'm trying to edit the news title to go the topic as well, instead of the wp id. Also, without the comments handler, the link is [vburlblablabla]/showthread.php?t= - just blank topic ID. I assume that has to do with the comments handler not being included, so I won't go further in detail about that.

Thanks in advance.

Jafo232 07-25-2007 04:06 PM

You say you do it like so?

Code:

<? $vbridge = Comment_Handler($post->ID); ? >
Seems you are missing something here, the opening tag should be <?php and the closing tag has a space between the ? and the >. Many servers allow you to open the tag without php (i.e. <?) but I believe the closing tag cannot have a space in it.

Tsukasa-san 07-25-2007 05:31 PM

Hm, my bad. It's ?> alright, guess that space just came out of nowhere while pasting. Either way, that wasn't the problem before.

Jafo232 07-25-2007 06:28 PM

What does your servers error log say when you get a blank page?

JGM007 07-25-2007 06:49 PM

Hi Jafo,
I am a little unclear on the section of if you want to use VB for comments.
The first part was easy, but the second part where it says find this code or similar code, there is really nothing too similar.
So the closest I could guess on was to start right under where it says
<!-- You can start editing here. --> in comments.php
and replaced everything down to </ol>
However this did not work, it resulted in an error
Parse error: syntax error, unexpected T_ELSE in /home/madoshi2/public_html/crankyassgamer/wp-content/themes/default/comments.php on line 68

I tried replacing more but getting similar errors. I have reverted the comments.php back to its default for right now. But how much exactly are we supposed to replace, and did I even start replacing at the right spot?

The posting part is working fine.
Latest download of WP and VB installed.

Thank you!

Tsukasa-san 07-25-2007 07:10 PM

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.

Jafo232 07-25-2007 08:01 PM

You may want to put this near the top of the vbbridge.php file:

define('DISABLE_HOOKS', true);

See if that makes a difference for you.

Tsukasa-san 07-25-2007 08:28 PM

Tried that, same error. >_<

kholland 07-25-2007 09:13 PM

Jafo,

I named the VB user the same as the WP admin user login...exactly what i wasn't supposed to do. Is this easy to change in VB?? I couldn't find anything.

Thanks!

Jafo232 07-25-2007 10:00 PM

Quote:

Originally Posted by kholland (Post 1301627)
Jafo,

I named the VB user the same as the WP admin user login...exactly what i wasn't supposed to do. Is this easy to change in VB?? I couldn't find anything.

Thanks!

Create a new user in VB, and then use that one to bridge over.

kholland 07-25-2007 11:23 PM

Hi Jafo,

2 questions:

1. I know this has been asked before but thougt this might have changed...is there anything out there where I could import existing comments on WP into VB? I have over 12,000 on my blog and it would be nice to have that appear in VB.

2. Before I attempt to install and configure the plugin...in case there's bad errors will it break my blog? Anything I should watch out for or DO if that happens?

Thanks again...looks to be a great mod!

Kenneth

JGM007 07-26-2007 11:00 AM

Actually, anyone who as successfully installed this mod, would someone be willing to let me know what you need to replace in the last step of getting quotes to work?
Original question
Thank you! :-)

bmc 07-26-2007 04:16 PM

Hey Jafo,

First of all, this looks like a great mod and appreciate your time in creating it.

Now, onto my problem. I followed the directions step-by-step, and I got to the part where you're supposed to go to 'Users' -> 'vB Bridge Settings' inside of my Wordpress Dashboard. However, whenever I navigate to here, I get the following message:

Quote:

WordPress database error: [Table '333012_site.usergroup' doesn't exist]
SELECT * FROM usergroup
What am I doing wrong? How do I fix the problem? I don't know what I'm doing wrong!!

Any assistance would be greatly appreciated. I am running vB 3.6.8 and the latest stable version of Wordpress.

Thanks in advance for your time and assistance!

Jafo232 07-27-2007 03:02 PM

Quote:

Originally Posted by kholland (Post 1301737)
Hi Jafo,

2 questions:

1. I know this has been asked before but thougt this might have changed...is there anything out there where I could import existing comments on WP into VB? I have over 12,000 on my blog and it would be nice to have that appear in VB.

No there is not, however, you can do and if/else in the template to show the VB comments unless no thread was created else show the WP comments:

Code:

if ($vbridge[id] > 0) {

## Do VBRIDGE Code

}
##End Vbridge Replacement
else {
?>
<?php wp_link_pages(); ?>
<!--  <?php comments_popup_link(__('0 Comments'), __('1 Comments'), __('% Comments')); ?>
<?php
}
?>


Quote:

Originally Posted by kholland (Post 1301737)
2. Before I attempt to install and configure the plugin...in case there's bad errors will it break my blog? Anything I should watch out for or DO if that happens?

Thanks again...looks to be a great mod!

Kenneth

There should be nothing to break the blog. Just make a backup of your theme. If for some reason the plugin causes an error, you can delete the plugin, or rename it to turn it off.

Jafo232 07-27-2007 03:03 PM

Quote:

Originally Posted by JGM007 (Post 1302088)
Actually, anyone who as successfully installed this mod, would someone be willing to let me know what you need to replace in the last step of getting quotes to work?
Original question
Thank you! :-)

What part in the readme is giving you trouble on the comments?

Jafo232 07-27-2007 03:04 PM

Quote:

Originally Posted by bmc (Post 1302326)
Hey Jafo,

First of all, this looks like a great mod and appreciate your time in creating it.

Now, onto my problem. I followed the directions step-by-step, and I got to the part where you're supposed to go to 'Users' -> 'vB Bridge Settings' inside of my Wordpress Dashboard. However, whenever I navigate to here, I get the following message:



What am I doing wrong? How do I fix the problem? I don't know what I'm doing wrong!!

Any assistance would be greatly appreciated. I am running vB 3.6.8 and the latest stable version of Wordpress.

Thanks in advance for your time and assistance!

WP and VB need to reside in the same database, it sounds to me like they do not.

kholland 07-29-2007 11:13 PM

Hi,

I'm having some issues and I think I have the wrong values in the options page:

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

Is this the VB Customer number or the license number?

VB Username: This is the username comment threads will be started with if the author is not registered with VB.

This is the login name to VB....correct?

VB Forum ID: This is the default FORUM id where all comment threads will be posted. (Make sure this forum allows HTML).

I do not know where to find this value.

I get this error on the 'write post' page:

Warning: vb_post_form(/includes/functions_misc.php): failed to open stream: No such file or directory in /home/kenneth/public_html/blogtest/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/kenneth/public_html/blogtest/wp-content/plugins/vbbridge.php on line 466

Thanks!

kholland 07-30-2007 08:17 PM

Ok, referring to my last post above, I got that part figured out so I wanted to let you know.

:)

kholland 07-30-2007 10:49 PM

Hi,

I deleted the plugin to start over but when I try to reupload the plugin I am directed to my VB page instead of Wordpress. Obviously it's some sort of setting that was changed after the first install. Where do i fix this?

Thanks.

Kenneth

Jafo232 07-31-2007 02:58 AM

Hmm, looks like you left the integration on.. The easiest way is to quickly rename your vbulletin file global.php, login to wp (you may have to refresh it twice), and then rename the global.php file back to global.php.

kholland 07-31-2007 03:09 AM

Yes. That did it! Thanks Jafo. I'm still trying to get this figured out, but I'm getting close.

Thx!

MyArcade 07-31-2007 04:49 AM

I could use this for Wordpress MU, im going to try and get it to work.

jsalvit 08-01-2007 04:08 PM

I am new to this, just installed vb3.6.8 and noticed that your mod is for 3.6.7, can I still install it?

Jafo232 08-01-2007 04:10 PM

Quote:

Originally Posted by jsalvit (Post 1307247)
I am new to this, just installed vb3.6.8 and noticed that your mod is for 3.6.7, can I still install it?

Yes..

tpearl5 08-05-2007 05:59 PM

I'm getting this error on the post-new page:

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 would imagine that has something to do with the Forum Relative Path. My forums are in the main directory. I've tried several different things, including nothing at all.. What am I doing wrong?

Jafo232 08-05-2007 06:47 PM

Quote:

Originally Posted by tpearl5 (Post 1310552)

I would imagine that has something to do with the Forum Relative Path. My forums are in the main directory. I've tried several different things, including nothing at all.. What am I doing wrong?

Look at the third thing in the Limitations section of the main post in this thread.

tpearl5 08-06-2007 03:39 AM

Quote:

Originally Posted by Jafo232 (Post 1310576)
Look at the third thing in the Limitations section of the main post in this thread.

Ah, I didn't even see that.

I tried it, and now it seems like the posts are posting to the forum, but still showing the error.

Jafo232 08-06-2007 04:38 AM

Quote:

Originally Posted by tpearl5 (Post 1310851)
Ah, I didn't even see that.

I tried it, and now it seems like the posts are posting to the forum, but still showing the error.

Where you see:

$vwd = getcwd();

Do as per the instructions in the limitations section (add the path):

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

jsalvit 08-06-2007 04:28 PM

The images that are included in a comment, like smilies, images/comment_arr.gif and the images/buttons/viewpost.gif are not displaying. It is because they are referencing the images relatively. Is there a way to set the references to be absolute?

Jafo232 08-06-2007 04:31 PM

Sure, you could.. In the template look for something along the lines of:

Code:

<img src="<?php bloginfo('stylesheet_directory'); ?>/images/comment_arr.gif" alt="" />
Just use the absolute path there..

jsalvit 08-06-2007 05:54 PM

Quote:

Originally Posted by Jafo232 (Post 1311259)
Sure, you could.. In the template look for something along the lines of:

Code:

<img src="<?php bloginfo('stylesheet_directory'); ?>/images/comment_arr.gif" alt="" />
Just use the absolute path there..


That works, but only for the comment_arr.gif. There are other images included in this line of code
Code:

<?php echo $vbridge[vb_parser]->do_parse($reply->pagetext, false, true); ?>
whose image references are relative. Is there a way to set those images?

Jafo232 08-06-2007 05:57 PM

That is just the page text, not an image.

jsalvit 08-06-2007 06:03 PM

Take a look at this post on jeff's recipes. Look at it in IE so you can see the images not being displayed.

http://www.jeffsrecipes.com/2007/06/22/recipes/general-cooking/yes-i-will-be-canning-this-year/


The last comment has 2 missing images: 1 for the comment_arr.gif and another for the smiley. It is the smiley that I would like to show.

Jafo232 08-06-2007 06:15 PM

Probably won't work because the way Vbulletin is coded to show the relative path. You can turn smileys off by changing the last argument to false:

do_parse($reply->pagetext, false, false)


All times are GMT. The time now is 05:17 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.02513 seconds
  • Memory Usage 1,843KB
  • 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
  • (10)bbcode_code_printable
  • (12)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