By Magnus Karlsson on Wednesday, 21 January 2015
Posted in Technical Issues
Replies 8
Likes 0
Views 655
Votes 0
Hi,

I have categories that are public and they include blog entries that are viewable only for registered members. Works fine but the problem is that the blog entries "disappear" if I protect them with a password. This happens even if I am logged in.



Is that a setting I have missed or what?

Thanx in advance,
Magnus
Hello Magnus,

Can you provide us your backend and FTP access so we can have a better look on your issue here? Please advise.
·
Thursday, 22 January 2015 00:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I do not have access to the FTP-details from where I am now but will fix that later.

Here is the backend details to begin with

http://www.gladjeklick.se/administrator/
uid: **********
pwd: **********

You can use the same uid/pwd to login on the "problem-place" (http://www.gladjeklick.se/index.php/bokning/kurser/online) as well. Then you will se that the visible blog entries are named Test1 and Test3 but Test2 (the one with password) is not visible in the frontend.

Thanx!

KR,
magnus
·
Thursday, 22 January 2015 06:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Magnus,

I've checked your site and seems like your blog post only can be viewed by registered user: http://screen.stackideas.com/2015-01-22_1042.png That is why when you are not logged, you cannot see the post. But if you are logged in, you can see the post displayed with Password: http://screen.stackideas.com/2015-01-22_1043.png
·
Thursday, 22 January 2015 10:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

Attached are two pictures that perhaps explains it better

KR,
magnus
·
Thursday, 22 January 2015 19:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Strange... I see "Test2" if I click on "Categories" in the toolbar. But I do not see it if I click on the category icon (see second attachment in previous reply).

KR,
Magnus
·
Thursday, 22 January 2015 19:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Magnus,

Edit the file /components/com_easyblog/views/categories/view.html.php and at line 336 locate the codes below:


$data = $model->getBlogsBy('category', $catIds, $sort, null , null, null, null, array(), null, null, null, array(), array(), null, EBLOG_PAGINATION_CATEGORIES );


Replace it with,


$data = $model->getBlogsBy('category', $catIds, $sort, null , null, null, null, array(), null, null, true, array(), array(), null, EBLOG_PAGINATION_CATEGORIES );
·
Thursday, 22 January 2015 23:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Works like a dream!

Thanx!

KR,
Magnus
·
Friday, 23 January 2015 14:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Magnus,

You're welcome.
·
Friday, 23 January 2015 15:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post