By Sandi Beach on Wednesday, 16 August 2017
Posted in General
Replies 10
Likes 0
Views 493
Votes 0
Hi there,

Is there a way to hide related posts that are registered from the public, but show once logged in?

Thanks,
P.T.
That was no setting for this, but you can try download my attached file and replace into this following template override location.

JoomlaFolder/templates/YourCurrentTemplate/html/com_easyblog/blogs/entry/default.php
·
Thursday, 17 August 2017 00:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Thanks for the updated default template. However, it's not giving me exactly what I'm hoping for. Right now the new default template hides ALL the related posts from public, and displays them once logged in.

I was looking for something like so:

Public - see some related posts, only posts that are set for public

Registered Members - see all related posts, public & registered posts

Thank you,
P.T.
·
Thursday, 17 August 2017 20:03
·
0 Likes
·
0 Votes
·
0 Comments
·
May i know how you set some of the existing blog post only visible for public?

If I am not wrong, if those blog post set to only registered user can view it, these blog post shouldn't show in related blog post if the user haven't login yet.

perhaps you can provide us with your following details at http://stackideas.com/dashboard/site so we can better have a check?
- Joomla backend access
- FTP access
- Which blog post URL page still showing those blog post which only registered user can access
·
Friday, 18 August 2017 00:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

"If I am not wrong, if those blog post set to only registered user can view it, these blog post shouldn't show in related blog post if the user haven't login yet." - you are not wrong. Although, I should clarify something - when I said registered blog posts I meant posts that are assigned to registered categories.

Here is a the blog post that would have Related Posts, but since we have updated the default template to the one you provided - no related posts are displaying to the public - you can see once you're logged in.
http://mjimji.devcourtland.com/administrative-impact-podcasts/this-is-to-show-related-posts


***Update on what I'm looking for:

Public - see some related posts, only posts that are set for public (AKA posts that are assigned to public categories)

Registered Members - see all related posts, public & registered posts (posts that are assigned to public categories AND posts that are assigned to registered categories)

I have provided Joomla Admin access to our dev site here: http://stackideas.com/dashboard/site

Thank you.
·
Friday, 18 August 2017 00:51
·
0 Likes
·
0 Votes
·
0 Comments
·
I already renamed that this file JoomlaFolder/templates/YourCurrentTemplate/html/com_easyblog/blogs/entry/default.php from your site, now i can see those related blog post when i access this page http://mjimji.devcourtland.com/administrative-impact-podcasts/this-is-to-show-related-posts

Then i checked further these related post actually posted in this category 'Administrative IMPACT Podcasts' which you the permission to "viewable by everyone", you can check my attached screenshot below.

That is why those related post still showing up for the guest user.

Perhaps you can try this following scenario and see how it goes?

1. set CategoryA to "viewable by everyone" and CategoryB set to "viewable by registered member".
2. Submit 2 blog post :
- BlogA - post in this CategoryA and contain one of the tag
- BlogB - post in this CategoryB and contain same tag with BlogA
3. Try view on BlogA page and see whether this BlogB will show up in related post area for guest user?
·
Friday, 18 August 2017 10:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Thank you so much! This works. So I just need to copy this file (".../blogs/entry/default.php") from my dev site to live - correct? Or would you need to send me an attachment of the default.php file?

Thank you again!
·
Friday, 18 August 2017 20:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Sandi,

Actually you do not need to replace any PHP file on your live site is because by default those guest user shouldn't see these blog post which only accessible by registered user.

Ensure that you have configure those category permission correctly on your live site.

Perhaps you can try this following scenario and see how it goes?

1. set CategoryA to "viewable by everyone" and CategoryB set to "viewable by registered member".
2. Submit 2 blog post :
- BlogA - post in this CategoryA and contain one of the tag
- BlogB - post in this CategoryB and contain same tag with BlogA
3. Try view on BlogA page and see whether this BlogB will show up in related post area for guest user?
·
Friday, 18 August 2017 23:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

This issue is resolved. Thank you for your help.
·
Friday, 25 August 2017 22:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Sandi, glad that your issues are resolved now
·
Friday, 25 August 2017 22:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post