Show only unread articles for a particular user

by dhacohen   Last Updated February 28, 2018 16:10 PM

I need a component for read and unread articles.

For example, when a user is logged into the Joomla site, the component should list only unread articles. If the user reads an article, it should change status from unread to read, and should not be shown in the component where your read articles are shown.

Does something like this exist? Thanks for your time!



Answers 4


As far as I know there isn't such component available. That is a pretty neat idea actually. The problem right now with for example the article manager would be that, there is no information stored about who is reading what. We have a hits field and that is all. Something more that I've noticed is that the users table "last logged in" field is immediately updated when a user logs in. So you can't use it for reference about the last time the currently logged in person logged on the site.

To achieve what you want you'll need to create a new component (maybe you could also achieve it with a plugin and a template override). You component should store the user id, the article ids, the last time the user logged in. Then on the base of this information you could show only articles that are relevant to the user.

Daniel Dimitrov
Daniel Dimitrov
May 08, 2014 12:43 PM

not to create a special component for your needs you can simply find a blog component you prefer and leave an inquiry for customization. As far as I know, customization will not take a lot of time. Particularly, i suggest looking at JoomBlog component and if you like the functionality contact support team.

user407
user407
May 14, 2014 14:43 PM

I think you need a plugin for this task. The plugin should check user-id and the article-id and save this in the database. And then with the onContentBeforeDisplay Plugin event you can hide this article with some simple php checks.

Plugin Events: http://docs.joomla.org/Plugin/Events

General Plugin Development: http://docs.joomla.org/Portal:Plugin_Development

Info: http://magazine.joomla.org/issues/issue-may-2014/item/1862-why-every-joomla-sitebuilder-should-learn-plugin-development

Joomla Agency
Joomla Agency
May 14, 2014 15:00 PM

Did you ever find something to answers your unread article need? I am looking for something similar.

Thank you.

Valérie
Valérie
February 28, 2018 16:07 PM

Related Questions



how to use trackback in joomla 3.0

Updated April 15, 2016 08:04 AM

Downloadable files in a new browser tab

Updated June 24, 2016 08:04 AM

Joomla extension to filter articles by date

Updated December 01, 2017 16:10 PM

Joomla3 specific article permissions on front end

Updated March 19, 2017 20:10 PM