Hi.. Thanks for this trick.
I edited the file as you said. But no use, it didn't work. Still all privates albums are showing to normal members.
Quote:
Originally Posted by Birched
To not show private albums, do this:
IN:
all_albums.php
AFTER:
while ($album = $db->fetch_array($albums)) {
ADD:
if ($album['state'] == 'private' AND !can_view_private_albums($userinfo['userid']))
{
continue; }
|