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...