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)

Demo16 02-20-2010 12:56 PM

OK now it works tnx but I got one problem.

For example if I have a post which has a vb author and I click on the authors name the page can't find all the post of this author, only says:

Nothing Found
There are currently no posts in this section, please check back again later.

the problem is that my permalink use also the author name so category/post/author for this reason I got all blank pages.

Any clue why? mapping problem?

pujabrang 02-22-2010 12:03 AM

does it support 3.8.4???

CriStaS 02-25-2010 06:51 AM

Hello, thank you for your plugin!

Found a bug (at least for me)...

VB with restricted access (all forums are closed, authorised access only) + public WP:

Logged user have no problems.
Unauthorised user can see only "white screen" on WP page.

Short research and I found solution (hack) inside vb/global.php :

We have (~ 1000 line):
PHP Code:

...
if (!(
$vbulletin->userinfo['permissions']['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
        
$allowed_scripts = array(
                
'register',
                
'login',
                
'image',
                
'sendmessage',
                
'subscription',
                
'ajax'
        
);
        if (!
in_array(THIS_SCRIPT$allowed_scripts))
        {
                if (
defined('DIE_QUIETLY'))
                {
                        exit;
                }
                else
                {
                        
print_no_permission();
                }
        }
        else
        {
... 

We need:
PHP Code:

...
if (!(
$vbulletin->userinfo['permissions']['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
        
$allowed_scripts = array(
                
'register',
                
'login',
                
'image',
                
'sendmessage',
                
'subscription',
                
'ajax'
        
);
        if(
THIS_SCRIPT == 'vbridge')
        {
                
#vbridge unauth hack...
        
}
        elseif (!
in_array(THIS_SCRIPT$allowed_scripts))
        {
                if (
defined('DIE_QUIETLY'))
                {
                        exit;
                }
                else
                {
                        
print_no_permission();
                }
        }
        else
        {
... 

The hack :
PHP Code:

        if(THIS_SCRIPT == 'vbridge')
        {
                
#vbridge unauth hack...
        
}
        else 

checks if current caller is vbridge and passes global without auth tests.

I know that it isn't good way, but I don't have much time to fix this in a right way...

P.S. vB v3.8.4, WP 2.9.2, vbridge 4.01.13

By the way. It works on domain (WP) and sub.domain (VB) for me with small hack too...

caracena 02-26-2010 10:25 AM

Quote:

Originally Posted by Demo16 (Post 1987265)
OK now it works tnx but I got one problem.

For example if I have a post which has a vb author and I click on the authors name the page can't find all the post of this author, only says:


Nothing Found
There are currently no posts in this section, please check back again later.

the problem is that my permalink use also the author name so category/post/author for this reason I got all blank pages.

Any clue why? mapping problem?

Althou in my case everything is working, I have the same problem but that is becouse "Find all posts from this user" searchs for WP posts. You would need to change the code in WP so it points to the user's posts in vB (like when you see at users statistics in vB)

Quote:

Originally Posted by pujabrang (Post 1988453)
does it support 3.8.4???

Yes.

Quote:

Originally Posted by CriStaS (Post 1991016)
Hello, thank you for your plugin!

Found a bug (at least for me)...

VB with restricted access (all forums are closed, authorised access only) + public WP:

Logged user have no problems.
Unauthorised user can see only "white screen" on WP page.

Short research and I found solution (hack) inside vb/global.php :

We have (~ 1000 line):
PHP Code:

...
if (!(
$vbulletin->userinfo['permissions']['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
        
$allowed_scripts = array(
                
'register',
                
'login',
                
'image',
                
'sendmessage',
                
'subscription',
                
'ajax'
        
);
        if (!
in_array(THIS_SCRIPT$allowed_scripts))
        {
                if (
defined('DIE_QUIETLY'))
                {
                        exit;
                }
                else
                {
                        
print_no_permission();
                }
        }
        else
        {
... 

We need:
PHP Code:

...
if (!(
$vbulletin->userinfo['permissions']['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
        
$allowed_scripts = array(
                
'register',
                
'login',
                
'image',
                
'sendmessage',
                
'subscription',
                
'ajax'
        
);
        if(
THIS_SCRIPT == 'vbridge')
        {
                
#vbridge unauth hack...
        
}
        elseif (!
in_array(THIS_SCRIPT$allowed_scripts))
        {
                if (
defined('DIE_QUIETLY'))
                {
                        exit;
                }
                else
                {
                        
print_no_permission();
                }
        }
        else
        {
... 

The hack :
PHP Code:

        if(THIS_SCRIPT == 'vbridge')
        {
                
#vbridge unauth hack...
        
}
        else 

checks if current caller is vbridge and passes global without auth tests.

I know that it isn't good way, but I don't have much time to fix this in a right way...

P.S. vB v3.8.4, WP 2.9.2, vbridge 4.01.13

By the way. It works on domain (WP) and sub.domain (VB) for me with small hack too...

All you need to do (I think) is map the users right from vB to WP. Make the group "Registered Users" from vB as Subscribers in WP but before that, install a plugin in WP that will let you set permissions based on WP user groups. WP doesn't really cares for your vB privacy settings so if you get blank pages, I'm sure you have something wrong with the bridge installation.

spwolf 02-27-2010 01:32 AM

Quote:

Originally Posted by Stephan Whelan (Post 1984865)
Thanks for your help previously but we've only just got round to restesting this. Even though we disabled all other plugins we still get the same error:

[Wed Feb 17 20:09:23 2010] [error] [client xx.xx.xx.xx] PHP Fatal error: Cannot redeclare get_userdatabylogin() in /home/xxxxx/xxxxx/blogs/wp-content/plugins/functions_vbbridge.php on line 3, referer: http://blogs.xxxxx.com/wp-admin/plug...us=all&paged=1

Any more ideas?

same here, disabled everything and still same error...

caracena 02-28-2010 10:12 AM

Hi all,

After playing with WP and this plugin for like two months or so, I finally opend it to the public... The forum was already running and only changed the skin (first try to make one lol).

If you care to look at it, please send me a comment with your thoughts.

http://www.pescaydevolucion.com (fly fishing site in spanish)

PS: Didn't use vB for comments... just users and avatars customly and proportionally sized ;). Sorry it's in Spanish :P

caracena 02-28-2010 07:27 PM

Hi all,

WP doesn't have a tracking system by itself so I decided to use a plugin called WassUp. It tracks visitors on your site and offers statistics as a widget. I can confirm that displays vBulletin users navigating the WP site with their usernames and all ;)

Ima so hapy!

Quantnet 02-28-2010 09:35 PM

Quote:

Originally Posted by caracena (Post 1993567)
Hi all,

After playing with WP and this plugin for like two months or so, I finally opend it to the public... The forum was already running and only changed the skin (first try to make one lol).

If you care to look at it, please send me a comment with your thoughts.

http://www.pescaydevolucion.com (fly fishing site in spanish)

PS: Didn't use vB for comments... just users and avatars customly and proportionally sized ;). Sorry it's in Spanish :P

i looked at your site and since it's in Spanish, i can't understand much.

I like to know how you get the avatar to display in WP from the user's VB avatar.

Do you store avatar in database or in file?

PlayersBay 03-01-2010 01:22 AM

I have an urgent problem with my site using wp-vb integration.

Suddenly the integration stopped working, have no clue why.

My site goes blank on wp part if I keep plugin installed, shows again when I put wordpress bridge functions off (but than my users can't access wordpress part).

I would appreciate help ASAP. $25/hour.

naoneo 03-01-2010 09:41 AM

To everyone who wants to access the CURRENT users avatar.
Instead of
PHP Code:

/image.php?u=<?php echo $reply['userid'?>

Use
PHP Code:

/image.php?u=<?php echo $userid get_option('vbb_VBUSERID'); ?>



All times are GMT. The time now is 05:41 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.04805 seconds
  • Memory Usage 1,800KB
  • 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
  • (8)bbcode_php_printable
  • (5)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