[TH] User Criteria Extended

[TH] User Criteria Extended 1.0.6

No permission to download
ThemeHouse updated [TH] User Criteria Extended with a new update entry:

Version 1.0.3 released!

Changes:
  • Adjust description of a few criteria
  • Fixed a few criteria not working as expected
  • Added new criteria:
    • User has submitted no more than X resources (XFRM)
    • User has received a reaction score of no more than X
    • Users reaction score to message ratio is no more than
    • User has no more than X trophy points
    • User is (not) browsing with one of the selected styles
    • User has at least/no more than X bookmarks
    • Username does (not) match regular...

Read the rest of this update entry...
 
Hi guys,

Just wondering if you can add one feature to this;

Subscriptions
  • User has NO active user upgrade.
  • User has active user upgrade.
  • User has had an active user upgrade for at lease "X" consecutive days/months/years.
That would be fantastic if you could add that. It will mean board admins can reward loyal members.

Thanks.
 
For the trophy showcase, I can't figure out how to select which trophies appear.
Additionally, when trying to create a relationship between trophies, I get the error:
Code:
InvalidArgumentException: Unknown relation Predecessor in src/XF/Mvc/Entity/Entity.php at line 457

    XF\Mvc\Entity\Entity->hydrateRelation() in src/addons/ThemeHouse/UserImprovements/XF/Entity/Trophy.php at line 63
    ThemeHouse\UserImprovements\XF\Entity\Trophy->_postSave() in src/XF/Mvc/Entity/Entity.php at line 1208
    XF\Mvc\Entity\Entity->save() in src/XF/Mvc/FormAction.php at line 69
    XF\Mvc\FormAction->XF\Mvc\{closure}() in src/XF/Mvc/FormAction.php at line 187
    XF\Mvc\FormAction->run() in src/XF/Admin/Controller/Trophy.php at line 97
    XF\Admin\Controller\Trophy->actionSave() in src/XF/Mvc/Dispatcher.php at line 321
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
    XF\App->run() in src/XF.php at line 390
    XF::runApp() in admin.php at line 13

Finally, it seems like trophy image CSS doesn't apply on the trophy help page.
 
Last edited:
For the trophy showcase, I can't figure out how to select which trophies appear.
Additionally, when trying to create a relationship between trophies, I get the error:
Code:
InvalidArgumentException: Unknown relation Predecessor in src/XF/Mvc/Entity/Entity.php at line 457

    XF\Mvc\Entity\Entity->hydrateRelation() in src/addons/ThemeHouse/UserImprovements/XF/Entity/Trophy.php at line 63
    ThemeHouse\UserImprovements\XF\Entity\Trophy->_postSave() in src/XF/Mvc/Entity/Entity.php at line 1208
    XF\Mvc\Entity\Entity->save() in src/XF/Mvc/FormAction.php at line 69
    XF\Mvc\FormAction->XF\Mvc\{closure}() in src/XF/Mvc/FormAction.php at line 187
    XF\Mvc\FormAction->run() in src/XF/Admin/Controller/Trophy.php at line 97
    XF\Admin\Controller\Trophy->actionSave() in src/XF/Mvc/Dispatcher.php at line 321
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
    XF\App->run() in src/XF.php at line 390
    XF::runApp() in admin.php at line 13

Finally, it seems like trophy image CSS doesn't apply on the trophy help page.
Getting same Error. Any News about this??
 
That is an error caused by User Improvements, as mentioned in the error itself. We've had another report of this here. I've logged it to our issue tracker for now, and we'll look into it with the next patch.
 
Last edited:
@Lukas W. I got an error when trying to setup a trophy for voted on polls:

Code:
XF\Db\InvalidQueryException: MySQL statement prepare error [1142]: SELECT command denied to user 'username'@'localhost' for table 'xf_poll_vote' in src/XF/Db/AbstractStatement.php at line 217
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 196
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 39
XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 54
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 94
XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 150
XF\Db\AbstractAdapter->fetchOne() in src/addons/ThemeHouse/UserCriteria/Listener/CriteriaUser.php at line 462
ThemeHouse\UserCriteria\Listener\CriteriaUser::criteriaUser()
call_user_func_array() in src/XF/Extension.php at line 67
XF\Extension->fire() in src/XF/App.php at line 2647
XF\App->fire() in src/XF/Criteria/User.php at line 64
XF\Criteria\User->isUnknownMatched() in src/XF/Criteria/AbstractCriteria.php at line 63
XF\Criteria\AbstractCriteria->isMatched() in src/XF/Repository/Trophy.php at line 68
XF\Repository\Trophy->updateTrophiesForUser() in src/XF/Cron/Trophy.php at line 38
XF\Cron\Trophy::runTrophyCheck()
call_user_func() in src/XF/Admin/Controller/CronEntry.php at line 112
XF\Admin\Controller\CronEntry->actionRun() in src/XF/Mvc/Dispatcher.php at line 321
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
XF\App->run() in src/XF.php at line 390
XF::runApp() in admin.php at line 13
 
Good morning,
I want to know if is there is a way to emulate following Criteria(needed to assign Trophies): User has Post at least X messages in a Certain Subforum.

Many Thanks in advance
 
To the TH Team :
I have noticed that the criteria "User has been registered for no more than X days " is not listed on the overview of the add-on but it is available in your add-on.

You should write it there as it is a very cool criteria and the main reason why I have downloaded your add-on :-)
David
 
To the TH Team :
I have noticed that the criteria "User has been registered for no more than X days " is not listed on the overview of the add-on but it is available in your add-on.

You should write it there as it is a very cool criteria and the main reason why I have downloaded your add-on :)
David
This has been added and updated within our product listing.

Hi,
Does this include "Member has posted x amount of posts in x amount of days"?
Not at this time, no. We only offer the following.
  • User has posted at least X messages.
  • User has posted no more than X messages.
 
Top Bottom