By Peter Jenni on Sunday, 13 November 2022
Posted in General Issues
Replies 8
Likes 0
Views 0.9K
Votes 0
Hi,
I would like to have a category (or even in the whole blog) where the "Read more" is only possible for registered users. But I can't find a corresponding rights assignment. Can this be realized in the Easy-Blog at all?
Thanks and best greeting
Peter
We don't have such settings but you can modify the theme file /components/com_easyblog/themes/wireframe/listing/default.php and at line 38, replace the codes below:


<?php if ($post->hasReadmore() && $params->get('post_readmore', true)) { ?>
<div class="eb-post-more mt-20">
<?php echo $this->html('post.list.readmore', $post); ?>
</div>
<?php } ?>


With,


<?php if ($this->my->id && $post->hasReadmore() && $params->get('post_readmore', true)) { ?>
<div class="eb-post-more mt-20">
<?php echo $this->html('post.list.readmore', $post); ?>
</div>
<?php } ?>
·
Sunday, 13 November 2022 15:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, I have modified, the wireframe template, use this template as default template, but nothing change. Read more is also open for all users.
·
Monday, 14 November 2022 05:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you share with us which blog listing page still shows the read more button?

Because different view might need to modify the different PHP file.
·
Monday, 14 November 2022 11:09
·
0 Likes
·
0 Votes
·
0 Comments
·
"Read more" still works throughout the blog. So all categories are affected. See: http://www.dach.asia
·
Tuesday, 15 November 2022 06:13
·
0 Likes
·
0 Votes
·
0 Comments
·
It seems like that is a grid view + magazine feature slider.

Can you download my attached files and place these files into your current template new directory folder and see how it goes?

JoomlaFolder/templates/yourCurrentTemplate/html/com_easyblog/helpers/featured/slider/magazine.php
JoomlaFolder/templates/yourCurrentTemplate/html/com_easyblog/listing/simple.php
·
Tuesday, 15 November 2022 12:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes thanks. No it works.

But it's not what I had in mind. I want that when a non-registered user clicks on the read more button, he gets the prompt to log in first, since all the text is only accessible to registered users.
·
Tuesday, 15 November 2022 16:35
·
0 Likes
·
0 Votes
·
0 Comments
·
I see, then you can revert all the changes we suggested above, you just need to enable this setting Login To Read Full Post from the backend > Easyblog > settings > general.

Hope this help.
·
Tuesday, 15 November 2022 16:51
·
0 Likes
·
0 Votes
·
0 Comments
·
I am sorry that I couldn't know this "Login To Read Full Post" setting behavior already changed in Easyblog 6.x, when you activate this setting, it will only show a box to tell users that they need to login first in order to read the full blog content.

By the way, can you download my attached files then place the following files into this new directory folder from your current template and see how it goes?

JoomlaFolder/templates/yourCurrentTemplate/html/com_easyblog/entry/default/...

So the behavior will redirect the user to the login page when the guest user accesses the blog entry page.
·
Tuesday, 15 November 2022 17:03
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post