โ ๏ธ Deprecated - This Craft CMS 2.x plugin is no longer supported.
Login Count is a Craft CMS plugin that allows you to track how many times your users have logged in.
It is useful to show specific messages to users or promotions after X amount of logins.
- Add the
logincount
directory into yourcraft/plugins
directory. - Navigate to
Settings -> Plugins
and click the "Install" button.
- Set a 'delay' between each time a user logs in (Default: 3 hours)
- Access 'totals' and 'absolute totals' regardless of the delay
- Option to ignore login counts if the user logs in via the control panel
There are two available methods:
.total()
Outputs the total login count (Taking in to account the login time delay)
{{ craft.logincount.total(currentUser) }}
.totalAbsolute()
Outputs the total login count
{{ craft.logincount.totalAbsolute(currentUser) }}
Both methods need to have a user object passed to it, such as currentUser
- Extend the User view to show counts in the table view
Password by Adnen Kadri from the Noun Project (https://thenounproject.com/adnen.kadri/)