TomasDR
12-26-2011, 07:48 PM
I wrote the original vB3 addon but for the life of me I cannot figure out how to update it to vB4.
https://vborg.vbsupport.ru/showthread.php?t=198368
All it does is allow Private Album pictures to be visible in a post using the IMG tag, of course if the user can read the post.
I have tried it several ways without success.
Always using the hook: album_can_see_private
if ($vbulletin->bf_ugp_forumpermissions['canview'])
{
$can_see_private = true;
}OR
if ($vbulletin->bf_ugp_forumpermissions['canview'])
{
$can_see_private = true;
$canviewalbum = true;
}ALSO a very basic & open way
if (THIS_SCRIPT != 'album')
{
$can_see_private = true;
$canviewalbum = true; //(tried with and without this line)
}The last attempt shows the album cover pic on the Profile page even if it's a private album, but the pictures are still not viewable in the thread!
Any assistance is greatly appreciated.
--------------- Added 1324946906 at 1324946906 ---------------
I found out why it was broken. The "Profile Privacy" setting was overwriting it, but if anyone knows the correct/clean way I would appreciate it.
https://vborg.vbsupport.ru/showthread.php?t=198368
All it does is allow Private Album pictures to be visible in a post using the IMG tag, of course if the user can read the post.
I have tried it several ways without success.
Always using the hook: album_can_see_private
if ($vbulletin->bf_ugp_forumpermissions['canview'])
{
$can_see_private = true;
}OR
if ($vbulletin->bf_ugp_forumpermissions['canview'])
{
$can_see_private = true;
$canviewalbum = true;
}ALSO a very basic & open way
if (THIS_SCRIPT != 'album')
{
$can_see_private = true;
$canviewalbum = true; //(tried with and without this line)
}The last attempt shows the album cover pic on the Profile page even if it's a private album, but the pictures are still not viewable in the thread!
Any assistance is greatly appreciated.
--------------- Added 1324946906 at 1324946906 ---------------
I found out why it was broken. The "Profile Privacy" setting was overwriting it, but if anyone knows the correct/clean way I would appreciate it.