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)

Reynaldovb 02-22-2009 09:48 PM

Quote:

Originally Posted by Jafo232 (Post 1751729)
I just looked into it.. I doubt that any time soon I could make this ready for authors names in the permalink, sorry.. I can rewrite it to included the right username, however, it is rather obfuscated in the code, all the places I would have to add filters to remove the author from the URL on the backend.

Jaffo, thank you for trying :)

skariko 02-22-2009 09:54 PM

Quote:

Originally Posted by Jafo232 (Post 1751733)
I think this is a bit outside the scope of this product. However, you can globalize the $vbulletin object once integration is on. What you do with it, well, there are no limits.

If your question is "Will you show me how to do X", then I have to say I am sorry, I have very limited time for such things.

Thanks! :)

Quote:

Originally Posted by myHybridcar.com (Post 1751766)
Do a Google search for how to echo vBulletin phrases in PHP. Then, use them in your Wordpress templates.

Thanks, i've solved with a lot of searches on Google ;)

Jafo232 02-22-2009 10:30 PM

Quote:

Originally Posted by remotay (Post 1751778)
With the plugin enabled, I can no longer upload pictures using the NextGen gallery plugin for wordpress (The #1 most popular plugin for wordpress). Anyone else having this issue?

Yeah, I cannot guarantee this thing to play nice with other Wordpress plugins. It may or may not..

remotay 02-22-2009 10:51 PM

It works with all of my plugins except NextGen gallery. The older version seemed to work fine with it. NextGen gallery is the most popular WP Plugin out there, would be great to see this looked at in future versions.

Thank you again for all your hard work on the plugin, it is appreciated!

glowinggal 02-23-2009 12:49 AM

can you still use your nextgen gallery or it just won't let you upload? did your nextgen gallery completely stop working when it was enabled? we are looking into this integration for our new site design but our new site DOES use the nextgen gallery on the home page.

remotay 02-23-2009 02:24 AM

Nextgen gallery works, but you CANNOT upload new pictures. I can create gallerys but I can't physically upload the pictures into them. This is with the latest version of the Vbulletin Bridge plugin.

vbplusme 02-23-2009 03:34 AM

Quote:

Originally Posted by Jafo232 (Post 1751831)
Yeah, I cannot guarantee this thing to play nice with other Wordpress plugins. It may or may not..

I'd be thrilled if it just played nice with WordPress but frankly WordPress doesn't play nice with anything including itself.

I have been using this bridge since before version III and I ALWAYS have to clean up a mess that WP makes and at this point I am pretty sure its a WP quirk that makes it so that every post that the bridge makes has to be cleaned up because of how the database is stored in WP.

I just posted a very small article that was originally a post in vBulletin. When I copied it into WP the stripped ALL the formatting including line feeds so that I had to manually reformat the whole document in WP. When I posted it, I had to reformat the forum post again to put the code blocks back and strip out all the escapes that it added for double quotes.

You have my deepest respect for being able to make it work as well as it does Jafo.

Thanks for you effort.

If you have any suggestions about how to get a "standardized" post in WP and Forum, I would be really appreciative.

TIA, Michael

logiik 02-23-2009 05:10 AM

just checked my site and i'm getting this error now for some reason:

Fatal error: Cannot redeclare get_userdatabylogin() in /home/***/public_html/wp-content/plugins/functions_vbbridge.php on line 3

GoodOmens 02-23-2009 02:01 PM

The following code in the author code does not work:

Quote:

$vbridge['postusername']
If you look at the function your not returning anything called 'postusername':

Quote:

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

GoodOmens 02-23-2009 02:39 PM

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


All times are GMT. The time now is 06:54 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.01907 seconds
  • Memory Usage 1,763KB
  • 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
  • (7)bbcode_php_printable
  • (7)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