vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - Complete Wordpress/Vbulletin Bridge - Share Users And Postings (https://vborg.vbsupport.ru/showthread.php?t=205388)

andyfielder 06-27-2009 10:02 AM

Is there a way to make it post the excerpt instad of the actual post content.

Or converting HTML images to BB?

Looking a html image tags in the forum doesnt look good!

amjadz4 06-27-2009 05:10 PM

Quote:

Originally Posted by andyfielder (Post 1838345)
Is there a way to make it post the excerpt instad of the actual post content.

Or converting HTML images to BB?

Looking a html image tags in the forum doesnt look good!

Yes mate.... just enable it in dashboard > tools > vbridge settings.

as for HTML tags thingy, just enable HTML in all forums or install that mod i posted in the previous links.
:)

rcadden 06-29-2009 09:51 PM

Ugh - finally integrated the users so that scheduled posting works through, but now XMLRPC doesn't work. I searched through the thread and found that it was removed in the February update - any chance of getting that back?

Not only is it dead useful for offline desktop blogging using Windows Live Writer, but it's also the only way that most mobile apps can blog.

Btw, if anyone wants an example of the mod in action, you can hit http://www.symbian-guru.com, the forum is at /forum, but it's all integrated with comments and whatnot. I still need to update the wordpress side so that the Comments look better.

MorfiusX 06-30-2009 12:24 PM

Quote:

Originally Posted by GoodOmens (Post 1752347)
Ok I've made some changes to get post authors to correctly display:

Changed in vbbridge.php

PHP Code:

$sql "select replycount, postuserid FROM " .  TABLE_PREFIX "thread where threadid = '$results->vb_threadid'"

to

PHP Code:

$sql "select replycount, postuserid, postusername FROM " .  TABLE_PREFIX "thread where threadid = '$results->vb_threadid'"

and

PHP Code:

$ret = Array('id' => $results->vb_threadid'count' => $results2[replycount], 'thread_starter' => $results2[postuserid], 'replies' => $results3'vb_parser' => $parser); 

to

PHP Code:

$ret = Array('id' => $results->vb_threadid'count' => $results2[replycount], 'thread_starter' => $results2[postuserid], 'replies' => $results3'vb_parser' => $parser'postusername' => $results2[postusername]); 

Then in the instructions for the Author (wordpress templates) - this was only being called once and resulted in the same author being displayed in all my posts on the main page:

Changed:

PHP Code:

if (function_exists('Comment_Handler') and $vbridge == '') { 

to

PHP Code:

if (function_exists('Comment_Handler')) { 

Also to removed the following from the comment code (redundant since a function call is already made by the author portion of the code)

PHP Code:

if (function_exists('Comment_Handler')) {

    
$vbridge Comment_Handler($post->ID);

    global 
$vbulletin


Everything fully working on LineageJunkies.com

Thanks! This worked for me.

MorfiusX 06-30-2009 12:53 PM

I was having problems with the redirection when logging in to the Wordpress side of things. Looking through the code I found the following in "functions_vbbridge.php":
Code:

$login_url = site_url( 'wp-login.php?redirect_to=' . urlencode( $redirect ), 'login' );
However, I could not find where $redirect was being called from. In my case, I believe it was NULL. So, I replaced it with this code:
Code:

                if ($redirect) {

                        $login_url = site_url( 'wp-login.php?redirect_to=' . urlencode( $redirect ), 'login' );
                       
                } else {
                       
                        $login_url = site_url( 'wp-login.php?redirect_to=' . urlencode( "/wp-admin/" ), 'login' );
                       
                }


fmckinnon 07-01-2009 01:14 PM

OK - thanks for all your help.

I've been using this for about a week now.
Keep in mind: we are NOT using auto-integrate. We have no interest in sharing users ... only in crossposting our articles (WordPress) to our forums, and using the forums for the comment engine.

Earlier, I posted about how regardless of what UserID I have in the vbridge settings, it always posts to the forum as UserID #1. This somehow magically started working correctly all of a sudden - I never did go into phpmyadmin and change userID's around - it just started working.

HOWEVER - now that multiple articles have been published, the actual articles are now hitting the forum with RANDOM userID's ...

I think it has to be a conflict with the Users/Role Manager plugin we're using in WordPress - we have many contributors ... and when they publish their articles, they appear in the forums with random userID's ....

Example: user "SaintLewis" in wordpress adds an article and submits it to the editor. Editor approves and publishes. The article hits the forums in userid: 27? (which is someone else's userID, of course!).

Another user in wordpress publishes an article - and it gets published on the forums as another random ID.

Then, another one publishes, and it goes to the forum with the correct userID as defined in the vbridge settings.

I'd really love for this to work, but I'm on the brink of giving up unless someone has a clue what keeps causing this.

fmckinnon 07-01-2009 02:01 PM

EUREKA:

OK, we've discovered that all of the posts that went into the forums correctly were published directly. All of the ones that went INCORRECTLY were posts that were "scheduled to be published" and were published according to the schedule, automatically.

Seems like in my reading (and re-reading) of this 44+ page topic that i've seen some issues of scheduled posts.

kent_lkc 07-02-2009 04:30 PM

verified by me working like a charm on vB 3.8.3 . . . good job.

alanhoskins 07-02-2009 04:43 PM

Is there anyway, without using the forum for comments, to pull in the avatar from the forum to display next to each persons WP comment?

Spawnie1978 07-03-2009 05:52 AM

I get this error:
Quote:

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/palompon/public_html/wp-content/plugins/vbbridge.php on line 108

Warning: require_once(./includes/class_dm.php) [function.require-once]: failed to open stream: No such file or directory in /home/palompon/public_html/wp-content/plugins/vbbridge.php on line 113
Code in this line:
Code:

chdir($_SERVER['DOCUMENT_ROOT'] . get_option('vbb_VBRPATH'));
Seems like its searching for a table caled vbb_vbrpath but there is no such table in my database!

Problem solved...

Changed line to:
Code:

chdir('/home/palompon/public_html/forum');


All times are GMT. The time now is 10:47 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.01731 seconds
  • Memory Usage 1,769KB
  • 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
  • (4)bbcode_code_printable
  • (7)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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