JoyFreak
Well-known member
That's available.Great plugin and free!
Do you have this criterion? @Dalton Prock @Lukas W.
Thx
- User has posted at least X messages in Y days
That's available.Great plugin and free!
Do you have this criterion? @Dalton Prock @Lukas W.
Thx
- User has posted at least X messages in Y days
TypeError: The uri must be a scalar or a stringable object `NULL` given in src/addons/ThemeHouse/UserCriteria/vendor/league/uri/src/UriString.php at line 279
League\Uri\UriString::parse() in src/addons/ThemeHouse/UserCriteria/Listener/CriteriaUser.php at line 1800
ThemeHouse\UserCriteria\Listener\CriteriaUser::criteriaCustom() in src/addons/ThemeHouse/UserCriteria/Listener/CriteriaUser.php at line 1602
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 2797
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/UserGroupPromotion.php at line 111
XF\Repository\UserGroupPromotion->updatePromotionsForUser() in src/XF/Cron/UserGroupPromotion.php at line 37
XF\Cron\UserGroupPromotion::runPromotions()
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 350
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2300
XF\App->run() in src/XF.php at line 465
XF::runApp() in admin.php at line 13
Went ahead and submitted it within our public issues form for youMy humble request to introduce a new criteria:
User has posted at least X threads with the following Thread Prefix: [dropdown]
I hope you'll consider it, thank you!
I'm getting this exct same error, on this exact same criteria.on v2.2.2 Advanced Criteria when you enter any number on and click save, it revert back to 0 instead of the number that was entered.
View attachment 243819
Please any solution?
The extended criteria are quite resource intensive as they will trigger extra database queries when evaluated. Given the user upgrade system processes all users that have been online in the last two hours every hour, that will trigger quite a lot of database queries, so keep that in mind.Hi,
With the extended criteria, does anyone know whether this would be possible?
Add user to X usergroup if they have posted at least 1 resource in the resource manager in the last X days?
Or failing that, trying to think of a workaround! -
User has posted X threads in one of the selected forums within the last X days?
The extended criteria are quite resource intensive as they will trigger extra database queries when evaluated. Given the user upgrade system processes all users that have been online in the last two hours every hour, that will trigger quite a lot of database queries, so keep that in mind.
That aside, there is no direct criterion for either of your described cases. The closest available is X posts in selected forums within the last Y days y but that will include replies to existing threads.
ErrorException: [E_NOTICE] Object of class DateTime could not be converted to int in src/addons/ThemeHouse/UserCriteria/vendor/nesbot/carbon/src/Carbon/Traits/Timestamp.php at line 30
XF::handlePhpError() in src/addons/ThemeHouse/UserCriteria/vendor/nesbot/carbon/src/Carbon/Traits/Timestamp.php at line 30
Carbon\Carbon::createFromTimestamp() in src/addons/ThemeHouse/UserCriteria/Listener/CriteriaUser.php at line 421
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 2797
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/addons/ThemeHouse/UserCriteria/Service/Tester.php at line 48
ThemeHouse\UserCriteria\Service\Tester->test() in src/addons/ThemeHouse/UserCriteria/XF/Admin/Controller/Tools.php at line 31
ThemeHouse\UserCriteria\XF\Admin\Controller\Tools->runUserCriteriaTest() in src/addons/ThemeHouse/UserCriteria/XF/Admin/Controller/Tools.php at line 13
ThemeHouse\UserCriteria\XF\Admin\Controller\Tools->actionUserCriteriaTest() in src/XF/Mvc/Dispatcher.php at line 350
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2300
XF\App->run() in src/XF.php at line 488
XF::runApp() in admin.php at line 13
Error: Call to undefined function Carbon\Traits\str_contains() src/addons/ThemeHouse/UserCriteria/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php:81
Generiert von: scubi2 5 Dezember 2021 um 16:40
Stack-Trace
#0 src/addons/ThemeHouse/UserCriteria/XF/Entity/User.php(148): Carbon\Carbon->__construct()
#1 src/addons/ThemeHouse/UserCriteria/Listener/CriteriaUser.php(1500): ThemeHouse\UserCriteria\XF\Entity\User->getThucPostsDays('90')
#2 [internal function]: ThemeHouse\UserCriteria\Listener\CriteriaUser::criteriaUser('th_max_posts_da...', Array, Object(SV\SignupAbuseBlocking\XF\Entity\User), false)
#3 src/XF/Extension.php(67): call_user_func_array(Array, Array)
#4 src/XF/App.php(2797): XF\Extension->fire('criteria_user', Array, NULL)
#5 src/XF/Criteria/User.php(64): XF\App->fire('criteria_user', Array)
#6 src/XF/Criteria/AbstractCriteria.php(63): XF\Criteria\User->isUnknownMatched('th_max_posts_da...', Array, Object(SV\SignupAbuseBlocking\XF\Entity\User))
#7 src/XF/Repository/UserGroupPromotion.php(111): XF\Criteria\AbstractCriteria->isMatched(Object(SV\SignupAbuseBlocking\XF\Entity\User))
#8 src/XF/Pub/App.php(243): XF\Repository\UserGroupPromotion->updatePromotionsForUser(Object(SV\SignupAbuseBlocking\XF\Entity\User))
#9 src/XF/Pub/App.php(196): XF\Pub\App->updateUserCaches()
#10 src/XF/App.php(2296): XF\Pub\App->start(true)
#11 src/XF.php(488): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}
Status der Anfrage
array(4) {
["url"] => string(902) "/forums/index.php?chat/update&users%5B1%5D=3167%2C6327%2C2858%2C12336%2C17789%2C13971%2C13832%2C2968%2C8264%2C1010%2C5067%2C12670%2C9723%2C13578%2C1129%2C18001%2C13972%2C13427%2C8936%2C69%2C17853%2C2443%2C1613%2C8328%2C14270%2C16593%2C8451%2C11629%2C1308%2C11177%2C631%2C17786%2C18930%2C4482%2C8726%2C12919%2C7940%2C6842%2C4907%2C6768%2C12278%2C15740%2C14609%2C17511%2C11681%2C14286%2C13587%2C8938%2C488%2C10961%2C384%2C2423%2C13659%2C3045%2C10250%2C17514%2C2790%2C15372%2C18610%2C45%2C66%2C3354%2C8826%2C103%2C3069%2C12980%2C1072%2C143%2C1411%2C8741%2C6958%2C884%2C4561%2C8736&channel=room&room_id=1&last_id%5B1%5D=261723&conv_id=0&conv_only=0&conv_items=&conv_last_active=1638694666&conv_last_update=1638694666&user_last_update=1638718802&is_chat_page=0&_xfRequestUri=%2Fforums%2Fwhats-new%2Fposts%2F3134040%2F&_xfWithData=1&_xfToken=1638718795%2C66d8bc7cc35ed8b54b18e3f8ca104888&_xfResponseType=json"
["referrer"] => string(60) "https://www.pattayaforum.net/forums/whats-new/posts/3134040/"
["_GET"] => array(16) {
["chat/update"] => string(0) ""
["users"] => array(1) {
[1] => string(388) "3167,6327,2858,12336,17789,13971,13832,2968,8264,1010,5067,12670,9723,13578,1129,18001,13972,13427,8936,69,17853,2443,1613,8328,14270,16593,8451,11629,1308,11177,631,17786,18930,4482,8726,12919,7940,6842,4907,6768,12278,15740,14609,17511,11681,14286,13587,8938,488,10961,384,2423,13659,3045,10250,17514,2790,15372,18610,45,66,3354,8826,103,3069,12980,1072,143,1411,8741,6958,884,4561,8736"
}
["channel"] => string(4) "room"
["room_id"] => string(1) "1"
["last_id"] => array(1) {
[1] => string(6) "261723"
}
["conv_id"] => string(1) "0"
["conv_only"] => string(1) "0"
["conv_items"] => string(0) ""
["conv_last_active"] => string(10) "1638694666"
["conv_last_update"] => string(10) "1638694666"
["user_last_update"] => string(10) "1638718802"
["is_chat_page"] => string(1) "0"
["_xfRequestUri"] => string(32) "/forums/whats-new/posts/3134040/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(43) "1638718795,66d8bc7cc35ed8b54b18e3f8ca104888"
["_xfResponseType"] => string(4) "json"
}
["_POST"] => array(0) {
}
}
Thank you for the report! I'll give this a test on my demo and report it on our issue boardThe «User has at least X expired user upgrades» criterion does not work.
I do not rule out that I was wrong. More precisely, I can say in 2 days, when the test upgrade expires.Thank you for the report! I'll give this a test on my demo and report it on our issue board![]()
Hello there! Just to make sure I'm understanding this correct; You weren't running this before and people were promoted normally within one hour but after installing it people started to get promoted after 10-15 hours. Am I understanding correctly?Breaks the promotion system, People who were promoted normally within 1 hour started to be promoted after 10-15 hours after installing this. I don't know what is the problem
Merhaba oradaki! Bunu doğru anladığımdan emin olmak için; Bunu daha önce çalıştırmıyordunuz ve insanlar bir saat içinde normal bir şekilde terfi ettiriliyordu, ancak kurduktan sonra 10-15 saat sonra insanlar terfi etmeye başladı. Doğru anlıyor muyum?
We use essential cookies to make this site work, and optional cookies to enhance your experience.