By Sam Ray on Sunday, 07 May 2017
Posted in General
Replies 5
Likes 0
Views 131
Votes 0
Hi,

My Easyblog Archive module is showing active posts instead of archived posts. Please let me know what I may be doing wrong. I have (at this time) 22 archived posts and 13 active posts. The archive module is showing the 13 active posts instead of the 22 archived posts.
Hello Sam,

Perhaps if you could wait for 5.1.8 as I have already logged this issue into our internal issue tracker. There will be a new configuration option on the module.
·
Sunday, 07 May 2017 22:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sam,

It seems like the archive module isn't really fetching posts that are archived. Instead, it is just categorizing published posts by their date (month / year). If I recall correctly, some customers doesn't want to manually archive the posts but they want to use this module.

In the next release, we will add an option in the module to only fetch archived posts or published posts. Temporarily, this is what you can do, edit the file /administrator/components/com_easyblog/models/archive.php and at line 312, locate the codes below:

[gist]
. 'AND a.'.$db->nameQuote('state') .'=' . $db->Quote(EASYBLOG_POST_NORMAL) . ' '
[/gist]

Replace it with,

[gist]
. 'AND a.'.$db->nameQuote('state') .'=' . $db->Quote(EASYBLOG_POST_ARCHIVED) . ' '
[/gist]
·
Sunday, 07 May 2017 13:19
·
0 Likes
·
0 Votes
·
0 Comments
·
no change after updating the archive.php file. Maybe if you could attach a copy of the file with the tested changes, I can upload the new file.
·
Sunday, 07 May 2017 20:58
·
0 Likes
·
0 Votes
·
0 Comments
·
sure. I can wait for the update.

thank you.
·
Sunday, 07 May 2017 23:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for understanding Sam!
·
Sunday, 07 May 2017 23:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post