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
PHP Code:
if ($vbulletin->bf_ugp_forumpermissions['canview'])
{
$can_see_private = true;
}
OR
PHP Code:
if ($vbulletin->bf_ugp_forumpermissions['canview'])
{
$can_see_private = true;
$canviewalbum = true;
}
ALSO a very basic & open way
PHP Code:
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 [DATE]1324946906[/DATE] at [TIME]1324946906[/TIME] ---------------
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.