Hi,
I have some problem with photos and videos privacy in our website,
If i set my videos or photos privacy to "private" or "me and my friends" other users likewise can see my photos or videos tumbnail in all photos or videos section but when they are clicking on those thumbnail system show them a message that said, "owner of this photo or video privacy do not allow you to open it" .
I think when user set photo or video privacy to "private" or "me and my friends" other users should not see anything about this posts.
if someone who has not any connection with someone else, first person should not see any image of second person until the first one set photos or videos privacy to public.
Cheers.
Hi.
If you want to hide photo thumbnails just set whole album as "Only me" or "Me & Friends".
Setting privacy to photo only will restrict access photo not a thumbnail in album.
When you change settings in Frontend -> Profile -> Privacy for Photos every activity on stream should have privacy restrictions.
Hi,
As you said "Setting privacy to photo only will restrict access photo not a thumbnail in album." but if photo's privacy set to private, thumbnails should not be seen in public feeds.
What can we do for this problem?
What if we don't want to have public view? do you know why? because when i choose picture privacy to private or me and my friends, it means i don't want anybody to see my photos, neither thumbnail nor full photo! it's not a good idea to show thumbnails of private photos in public feed.
If i can't change this i prefer to disable public view for all users!
Thanks.
Hi.
Please provide us with working administrator credentials.
I can't login to your site.
Please, edit your first post and add credentials to corresponding fields.
I need to check your settings.
Hi.
My IP is: 89.229.66.58.
Hi Saeed,
Let me clarify this issue first..
so you have a private video, and you want to hide the private video thumb inside stream and videos list page?
But I am sorry this is impossible, this behavior cant be done like that. The private only will work when you click the detail video and you cant see it.
thank you
Hi,
It's so important for us to solve this problem, i can say this is a critical problem in our system!
Is it possible to make changes in codes? and still can update jomsocial in future?
i allready make some changes in template, so if you guide me a little
can it be solved by editing core or template?
Hi Saeed,
Ok I will give you a pointer, but I only will help you on list video.
1. open this file components/com_community/templates/videos.list.php
2. you should give the if condition for the thumb image, check this code :
<img src="<?php echo $video->getThumbnail(); ?>" width="<?php echo $videoThumbWidth; ?>" height="<?php echo $videoThumbHeight; ?>" alt="" />
<?php $my = CFactory::getUser();
$canSee = CPrivacy::isAccessAllowed($my->id,$video->creator,$video->permissions);?>
<?php if($canSee):?>
<img src="<?php echo $video->getThumbnail(); ?>" width="<?php echo $videoThumbWidth; ?>" height="<?php echo $videoThumbHeight; ?>" alt="" />
<?php else:?>
<img src="http://YOURIMAGEURL" width="<?php echo $videoThumbWidth; ?>" height="<?php echo $videoThumbHeight; ?>" alt="" />
<?php endif?>
Hi,
I have tried it, but this line of your code
"CPrivacy::isAccessAllowed($my->id,$video->creator,$video->permissions);"
Always returns true, no matter what type of access that file has, so the "else" part is not running and in website all video thumbnails still visible to everyone!
May I know in which page you test it?
Anyway, by default the privacy video already respected on all videos page, so if you dont have permission to see the video, the video thumb wont be showed there.
yes it should not be showed but it shows,
i have test it by two unrelated users but when each of them upload a new video another user can see that video thumbnail in his/her videos,
i have test it by setting the video permissions to "me and my friend" and "only me" but the second user can see that videos whereas there is no any relation between them!