XenForo has a useful and extandable criteria system. Trophy and Notice systems are using the User criteria type already.
With this system, we can easily create different trophies (or show notices) to a users that match certain selected criteria.
But there are many more systems that are...
Imagine we are creating an addon for removing all posts that match selected criteria. A list of available criteria:
Post has at least X likes
Post author has an X username
Post was edited at least X times
Post was edited no more than X times
Post was published before X
Post was published...
In notice, in XF1, we had a tab for Date Criteria.
In XF2, it is removed but the related criteria (current date is before/after) are moved to Page Criteria tab.
Isn't it better to be in its own tab called Date Criteria, like XF1?
User Criteria Extended
Heavily extends the range of available user criteria by adding opposite criteria for most existing criteria, along with a whole range of new criteria that can mostly be derived from the existing XenForo criteria setup with no additional calculation effort.
I am trying to wrap my head about an issue that causes my members to get all trophies, even if they don't meet the criteria.
I tested it out by creating a test trophy with the following criteria:
user is logged in
user is admin
user state is valid
user is in admin user group
user has posted...
it would be very useful to not show notices if certain criteria are met. For example:
- don't show notice on registration page. (don't show notice if template_X is active)
This would allow us to hide notices that are not useful for specific pages.
Its important because if you have multiple...
Adds some User Criteria/AdminCP search options designed to help some misc admin tasks
If the home page is set.
If the time between registration and last activity is X days.
User has a gravatar avatar
User does not have a gravatar avatar
User has a custom avatar stored locally
User does not have...
Can anyone post a complete tutorial on how to Criteria in add-on? (user, date, page ... criteria, which each has own tab normally in add-on page)
And also how to use them in act? Because it seems adding them to items in acp would be easy as adding some lines of codes. because xenforo did...
This is a simple add-on that adds criteria for the Xen Product Manager add-on by @Chris D.
The available criteria are available to view in the screenshot.
This add-on also adds a user product count rebuilder so that counts are fully accurate - this is available in the Rebuild Caches section...