Read/unread Articles

10 months 3 weeks ago #321554 by mattrosa
Read/unread Articles was created by mattrosa
Hi! I have searched about this matter but have not found anything.

I need the user to know when they have already read (or not read) an article.
Something like {read} Read {/ read}, or any other similar solution that
indicates if they have already accessed an article.

It is something simple but I can't find a solution anywhere. Could this be done
with auto actions? or with some other plugin?

Greetings, Matt.

Please Log in to join the conversation.

10 months 3 weeks ago #321560 by krileon
Replied by krileon on topic Read/unread Articles
We do not provide such a feature, but it's possible to implement though with CB Auto Actions and a custom database to hold the read state for each user.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: mattrosa

Please Log in to join the conversation.

10 months 3 weeks ago #321573 by mattrosa
Replied by mattrosa on topic Read/unread Articles
Cool!

I will try to replicate it on the demo site (even without a database) and if I succeed, I will buy the plugin. Any tip or advice you can give me will be welcome.

Thanks for now, Matt.

Please Log in to join the conversation.

10 months 3 weeks ago #321574 by krileon
Replied by krileon on topic Read/unread Articles
You likely won't be able to test that on our demo site as we block access to query and code actions for security purposes so you won't be able to execute the database queries you'd need to track read status in a custom database table.

You can probably do something simple like increment a field or change a text fields value using a field action to test the trigger behavior as you'd need to act on a Joomla event in the auto action, which is done by prefixing the trigger in CB Auto Actions with "joomla_". See the below Joomla documentation for content events.

docs.joomla.org/Plugin/Events/Content

onContentAfterDisplay would likely be the best place to check this. Then in the auto action condition against [var1] (this is the context variable of that trigger) to make sure it's com_content.article, which is the context of directly viewing an article. This should be without a doubt doable though.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.236 seconds

Facebook Twitter LinkedIn