By ACV multimedia on Thursday, 11 June 2020
Posted in Technical Issues
Likes 0
Views 636
Votes 0
We need to see the content of the posts (media included) in the public part without being logged in but the content can only be downloaded if you are logged in. With the permission system of easyblog we don't see how to do it, is it possible to do it?
Hello,

Hm, I am not sure if I understand you here but if I am seeing the content, I should already be able to download the media files because technically that is what the browser is already doing.
·
Thursday, 11 June 2020 23:30
·
0 Likes
·
0 Votes
·
0 Comments
·
We want to restrict the downloads only to registered users, is this possible? We have noticed we can override the blocks/file template but it seems it's not working for us. Which files are affected to override the pdf block?
·
Thursday, 11 June 2020 23:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

It's not possible to restrict downloads currently but if the user is already viewing it, they can already look at the network panel in their browser to get the absolute url to the media item (I believe in this case you are referring to the PDF file)
·
Friday, 12 June 2020 00:02
·
0 Likes
·
0 Votes
·
0 Comments
·
We are copying this website: . https://euscommerce.eus/es/resources If you click on each content it is only seen or downloaded when you register. But you can see the content. Easyblog doesn't do that.
·
Friday, 12 June 2020 01:06
·
0 Likes
·
0 Votes
·
0 Comments
·
I am not sure if I am following you here. I do not see any PDF files there. If you are referring to the video, I could easily download it from https://euscommerce.eus/es/media/videojs/221

In EasyBlog if you want to restrict public from accessing the full content, you can enable the login to read more feature in EasyBlog, https://take.ms/e3tfr . This will only display the introtext to the public while they need to login to view the full content
·
Friday, 12 June 2020 01:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

The good news is that with your help what we wanted for the categories that have private permits works well. http://6gzot.hosts.cx/es/recursos

But I see that it affects what we want to make public... I thought that this solution would take care of the permissions of the categories http://6gzot.hosts.cx/es/noticias

We need your help please, it´s very important for us this part.

Best regards.
·
Friday, 12 June 2020 05:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Perhaps you can try this workaround where you can restrict the certain category's viewable permission by go to
1.Backend>categories>select the category>permission>viewable by registered users
as shown: https://take.ms/uLFue
·
Friday, 12 June 2020 10:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, Mustafa,

That's the first thing we did, but if we use that option it hides the whole view. The option you recommended yesterday of "logging to read full post" is the ideal one, but it applies to all categories... you can't tell us what to change in the code to be able to do what we want? I think easyblog would gain a lot with this improvement.

THANK YOU
·
Friday, 12 June 2020 15:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You need to customize a bit as there is no setting for restrict 'login to read full post' for a certain category.
You can add the code:

if ($post->category_id == 8 && $this->my->guest) {
$currentUri = $post->getPermalink(true, true);
$uri = base64_encode($currentUri);

$url = EB::getLoginLink($uri);

return $post->app->redirect($url);
}

in the file:
.../components/com_easyblog/themes/wireframe/blogs/entry/default.posts.php
as shown https://take.ms/nMPBY where you need to change 8 to the category id that you want to restrict guest user to read full post. You can check the category id on backend https://take.ms/xREp7

You're suggested to backup the file that you want to customize beforehand for precaution
·
Friday, 12 June 2020 16:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

It still doesn't work, it asks you to log in to all the categories, I have activated the Login To Read Full Post button, the categories on the backend have all the permission to be visible to everyone and I have copied the code and put the ID of the category I want to restrict in this case the ID 2, but it still asks you to log in to all of them, not just to this one.

Did I do something wrong?
·
Friday, 12 June 2020 16:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah, sorry, I forgot to mention that you need to disable the Login To Read Full Post setting at the backend
Can you give it another try?
·
Friday, 12 June 2020 17:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I've already done the test by disabling the button and it still doesn't work everyone has access to the category

If in the section of the attached photo I change to registered what happens is that you can't see anything, but I have to leave this section visible to everyone, right?

Thanks,
·
Friday, 12 June 2020 18:05
·
0 Likes
·
0 Votes
·
0 Comments
·
If in the section of the attached photo I change to registered what happens is that you can't see anything, but I have to leave this section visible to everyone, right?

Yes this is correct.
By the way, may I know the do you have any template override for the file:
.../components/com_easyblog/themes/wireframe/blogs/entry/default.posts.php
by any chance
·
Friday, 12 June 2020 18:29
·
0 Likes
·
0 Votes
·
0 Comments
·
GREAT!!
·
Friday, 12 June 2020 19:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating, glad that your issue is resolved now
·
Friday, 12 June 2020 21:48
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post