This is exactly how to do it - there's no need to have any extra functionality that specifically deals with this.Just do a user promotion to a new usergroup when they reach 1000 then only let that usergroup enter.
Was trying to keep my usergroups count down.Just do a user promotion to a new usergroup when they reach 1000 then only let that usergroup enter.
And it seems like its recommended. Thanks.This is exactly how to do it - there's no need to have any extra functionality that specifically deals with this.
Be nice if we could see the number of entrants. It would let me know what competitions are more/less popular.
Certainly there shouldn't be any possibility of getting errors there in "normal" conditions.Hey Chriss First ever troubles with your add-on. Probably not with the add-on but with all that happened around it. I had a server burn up during a OS upgrade. Yes it literately burned. Something with the raid controller. Anyway, I had to rebuild my site. I had the complete database so figured all was good.
Unfortunately I am getting errors. When I click on the archive link I get an error page.
Code:ErrorException: Undefined offset: 3394 - library/AVForums/Competitions/Model/Competition.php:557 Generated By: Jump, 4 minutes ago Stack Trace #0 /home/mysite/public_html/library/AVForums/Competitions/Model/Competition.php(557): XenForo_Application::handlePhpError(8, 'Undefined offse...', '/home/mysite...', 557, Array) #1 /home/mysite/public_html/library/AVForums/Competitions/Model/Competition.php(635): AVForums_Competitions_Model_Competition->prepareCompetition(Array, Array) #2 /home/mysite/public_html/library/AVForums/Competitions/ControllerPublic/Competition.php(117): AVForums_Competitions_Model_Competition->prepareCompetitions(Array, true) #3 /home/mysite/public_html/library/XenForo/FrontController.php(347): AVForums_Competitions_ControllerPublic_Competition->actionArchive() #4 /home/mysite/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch)) #5 /home/mysite/public_html/index.php(13): XenForo_FrontController->run() #6 {main} Request State array(3) { ["url"] => string(44) "http://mysite.com/contests/archive" ["_GET"] => array(0) { } ["_POST"] => array(0) { } }
And when I click on a thread link for an old Competition I get this.
Code:ErrorException: Undefined offset: 618 - library/AVForums/Competitions/Model/Competition.php:557 Generated By: Unknown Account, 23 minutes ago Stack Trace #0 /home/mysite/public_html/library/AVForums/Competitions/Model/Competition.php(557): XenForo_Application::handlePhpError(8, 'Undefined offse...', '/home/mysite...', 557, Array) #1 /home/mysite/public_html/library/AVForums/Competitions/ControllerPublic/Thread.php(24): AVForums_Competitions_Model_Competition->prepareCompetition(Array) #2 /home/mysite/public_html/library/Andy/SimilarThreads/ControllerPublic/Thread.php(12): AVForums_Competitions_ControllerPublic_Thread->actionIndex() #3 /home/mysite/public_html/library/XenForo/FrontController.php(347): Andy_SimilarThreads_ControllerPublic_Thread->actionIndex() #4 /home/mysite/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch)) #5 /home/mysite/public_html/index.php(13): XenForo_FrontController->run() #6 {main} Request State array(3) { ["url"] => string(89) "http://mysite.com/threads/win-a-free-hull-skin-for-your-star-citizen-ship.6097/" ["_GET"] => array(0) { } ["_POST"] => array(0) { } }
Server Error
Mysqli statement execute error : Field 'competition_entries' doesn't have a default value
Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 317
Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574
Zend_Db_Adapter_Abstract->insert() in XenForo/DataWriter.php at line 1624
XenForo_DataWriter->_insert() in XenForo/DataWriter.php at line 1613
XenForo_DataWriter->_save() in XenForo/DataWriter.php at line 1405
XenForo_DataWriter->save() in MetaMirror/DataWriter/User.php at line 8
MetaMirror_DataWriter_User->save() in XenForo/ControllerPublic/Register.php at line 416
XenForo_ControllerPublic_Register->actionRegister() in sonnbStopSpamHere/ControllerPublic/Register.php at line 237
sonnbStopSpamHere_ControllerPublic_Register->actionRegister() in XenForo/FrontController.php at line 347
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/mysite/public_html/index.php at line 13
We use essential cookies to make this site work, and optional cookies to enhance your experience.