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)

vbplusme 12-24-2009 02:24 AM

Quote:

Originally Posted by zordrack (Post 1936976)
I have a problem with vbridge plugin -- a conflict with vbulletin gzip compression.
I'm sorry if I didn't notice any previous discussion about this, I had read this thread, but not very carefully, I'm almost 18 hours coding and debugging today.

So, the problem is: turning on gzip compression in vbulletin admin panel causes wordpress with activated vbridge plugin to go somewhat nuts.
Instead of any wordpress page you can only see corrupted first page of vbulletin.
Turnin gzipping off eliminates the trouble, but that's not a nice solution, I think.

A little research turned out that critical line is line 88 in file vbridge.php
Code:

require_once($vwd . '/global.php');
. When gzipping in vbulletin is on, this inclusion results in immediate output of forum's front page and termination of all scripts.

So, the question is -- is there any way to suppress gzipping mode for vbridge inclusion, but leave it on for normal forum operation?

PS: Sorry if my text isn't easy to understand, I'm not native English...

You get gzip error problems when gzip is already enabled on your server. I think it has nothing to do with vbbridge. I this problem when I moved servers and discovered that if gzip is enabled on the server, vbulletin's implementation of gzip croaks. Check your server settings in phpinfo and you will probably find that gzip is enabled already. It has nothing to do with the elegance of the solution, that is the way it works.

HTH

1up_dave 12-24-2009 05:32 AM

I've found a temporary fix for the "admin/first user" bug.

The dilemma: I'm working on a project that is requiring a pretty complex setup, and this plugin was a crucial part of it, especially due to the fact that we need to fully support multiple contributors. Unfortunately, we ran into a huge issue during development, the issue being a bug where the author ID would change to 1, no matter who was editing it.

Ultimately, it came down to a box on the post editor which allows one to change the current author of the post being edited. This box works fine without the plugin active because it would pull the list of authors from the WP database, but the vB bridge does not push it's users into WP, so WP would still only find the same users in it's database. That means when anyone edited the post and saved it, the author box would default to user #1 (usually 'admin'), because, as I mentioned earlier, it does not "see" any of the vB users.

The solution:
Make A BACKUP Of Both Files BEFORE You Make ANY Edits!
These are core files, and can ruin your Wordpress backend. You Have Been Warned!



Open: wp-admin/includes/edit-form-advanced.php
Find and Delete/Comment:
PHP Code:

$authors get_editable_user_ids$current_user->id ); // TODO: ROLE SYSTEM
if ( $post->post_author && !in_array($post->post_author$authors) )
    
$authors[] = $post->post_author;
if ( 
$authors && count$authors ) > )
    
add_meta_box('authordiv'__('Post Author'), 'post_author_meta_box''post''normal''core'); 


Open: wp-admin/includes/edit-page-form.php
Find and Delete/Comment:
PHP Code:

$authors get_editable_user_ids$current_user->idtrue'page' ); // TODO: ROLE SYSTEM
if ( $post->post_author && !in_array($post->post_author$authors) )
    
$authors[] = $post->post_author;
if ( 
$authors && count$authors ) > )
    
add_meta_box('pageauthordiv'__('Page Author'), 'post_author_meta_box''page''normal''core'); 


That's it!
I'd love to figure out how to make the plugin disable this box, and will probably try to do so once this project is done, unless the developer beats me to it. One last reminder: Because we made core file edits, there's a strong chance that the changes you've just made will be overwritten in future upgrades.

M4GN3T 12-28-2009 07:17 PM

Is this working with vB4.0 or not?

AndyAA 12-28-2009 10:31 PM

Does anyone know how to display the authors details / about me (Biography, Location, Interests, Occupation ) in a post?

I have tried various solutions such as:

<?php echo $vbulletin->userinfo['location'] ?><br />
<?php the_author_ID(); ?>
<?php the_author_meta(); ?>
<?php the_author_description(); ?>

but no luck

I am desperate to find how to do this and have't had much success googling or searching for it.

amjadz4 12-29-2009 11:54 AM

hey people i'm back!! :D

Quote:

Originally Posted by M4GN3T (Post 1940746)
Is this working with vB4.0 or not?

Yes I have confirmed and tested it works with WP 2.9 and vB 4.0.0 Gold.

Quote:

Originally Posted by AndyAA (Post 1940951)
Does anyone know how to display the authors details / about me (Biography, Location, Interests, Occupation ) in a post?

I have tried various solutions such as:

<?php echo $vbulletin->userinfo['location'] ?><br />
<?php the_author_ID(); ?>
<?php the_author_meta(); ?>
<?php the_author_description(); ?>

but no luck

I am desperate to find how to do this and have't had much success googling or searching for it.

What post? vbulletin or wordpress?

MikesSite 12-30-2009 03:57 AM

I have this installed and working great on 3.8.4. Thanks for the great mod, dev! Also thanks for the help with the install amjadz4!

AndyAA 01-01-2010 08:26 PM

Quote:

Originally Posted by amjadz4 (Post 1941454)
Originally Posted by AndyAA
Does anyone know how to display the authors details / about me (Biography, Location, Interests, Occupation ) in a post?

I have tried various solutions such as:

<?php echo $vbulletin->userinfo['location'] ?><br />
<?php the_author_ID(); ?>
<?php the_author_meta(); ?>
<?php the_author_description(); ?>

but no luck

I am desperate to find how to do this and have't had much success googling or searching for it.



What post? vbulletin or wordpress?

In Wordpress please...I am desperate for a solution

flyah 01-01-2010 09:17 PM

does this really work with vb4.0? I mean, no bugs or whatever?

amjadz4 01-02-2010 03:27 AM

Quote:

Originally Posted by AndyAA (Post 1944311)
In Wordpress please...I am desperate for a solution

Hmm, should not be hard. I think it can be done using simple SQL commands and PHP. Also you have to include vBulletin's global.php before calling any variable.

Quote:

Originally Posted by flyah (Post 1944352)
does this really work with vb4.0? I mean, no bugs or whatever?

Yes it works. no bugs or whatever.

AllinJac 01-04-2010 09:00 AM

Sorry for the NUBIE question here but I am having a hell of a time finding

the_author

where is this located.... Is it in WordPress or vBulletin and can anyone tell me which file...

I went through every PHP file and could not find a single instance of the_author...

Thanks in advance for the helping!!!

http://allinjac.com/blog
http://allinjac.com/forums


All times are GMT. The time now is 04:55 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.02401 seconds
  • Memory Usage 1,765KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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