[TaylorJ] Probations

[TaylorJ] Probations 1.0.0 Beta 5

No permission to download

Taylor J

Well-known member
Taylor J submitted a new resource:

[TaylorJ] Probations - Place users on probation with a read only experience

[TaylorJ] Probations​

Description​

This addon will allow you to place users on a read only leave from your site, as if they were banned but still have the ability to read posts and visit the site.

Sometimes a full on ban isn't what is needed and a user just needs to be quiet for a few hours/days. Idea taken from SomethingAwful.

Options​

[TaylorJ] Probations - Options​

...

Read more about this resource...
 
Awesome idea. Thank you for making this.

Couple things I noticed: /probation page is returning 404.
Can you add the probation link to the moderator menu?
 
Hi, i get this error: XF\Db\Exception: MySQL statement prepare error [1146]: Table '**********.xf_taylorj_user_probations' doesn't exist in src/XF/Db/AbstractStatement.php at line 230
 
Hi, i get this error: XF\Db\Exception: MySQL statement prepare error [1146]: Table '**********.xf_taylorj_user_probations' doesn't exist in src/XF/Db/AbstractStatement.php at line 230
What action did you take when this error happened?

I'm about to put out Beta 2 and it removes that table and some others and consolidates them into one so that should fix any issues you were having to be fair.
 
Taylor J updated [TaylorJ] Probations with a new update entry:

1.0.0 Beta 2

  • Added a view for the probations route (functions like the reports pages)
  • Added a link to the probations page in the staff bar in the moderator drop down
  • Changed the canViewProbation permission to the moderator permission set for the addon
  • Cron entry now runs every minute to handle cases of a person being put on probation at any time that was after the beginning of an hour but before the next new hour
  • Removed the xf_taylorj_user_probations_active table and consolidated...

Read the rest of this update entry...
 
What action did you take when this error happened?

I'm about to put out Beta 2 and it removes that table and some others and consolidates them into one so that should fix any issues you were having to be fair.
I was getting this error when I clicked the "Place on probation" button and penalized the user. I installed the latest update, and unfortunately, I'm still getting the same error.


Code:
XF\Db\Exception: MySQL statement prepare error [1146]: Table '****censored.xf_taylorj_probations' doesn't exist in src/XF/Db/AbstractStatement.php at line 230
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 207
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 43
XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 61
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
XF\Db\AbstractAdapter->query() in src/XF/Mvc/Entity/Finder.php at line 1417
XF\Mvc\Entity\Finder->fetchOne() in src/addons/TaylorJ/Probations/Service/Probations/Create.php at line 46
TaylorJ\Probations\Service\Probations\Create->createProbation() in src/addons/TaylorJ/Probations/Service/Probations/Create.php at line 31
TaylorJ\Probations\Service\Probations\Create->__construct() in src/XF/Container.php at line 275
XF\Container->createObject() in src/XF/App.php at line 1968
XF\App->XF\{closure}() in src/XF/Container.php at line 233
XF\Container->create() in src/XF/App.php at line 3550
XF\App->service() in src/XF/Mvc/Controller.php at line 874
XF\Mvc\Controller->service() in src/addons/TaylorJ/Probations/ControllerPlugin/AbstractPlugin.php at line 66
TaylorJ\Probations\ControllerPlugin\AbstractPlugin->__call() in src/addons/TaylorJ/Probations/ControllerPlugin/ProbationsPlugin.php at line 27
TaylorJ\Probations\ControllerPlugin\ProbationsPlugin->setupProbationCreate() in src/addons/TaylorJ/Probations/ControllerPlugin/ProbationsPlugin.php at line 68
TaylorJ\Probations\ControllerPlugin\ProbationsPlugin->actionProbation() in src/addons/TaylorJ/Probations/XF/Pub/Controller/PostController.php at line 23
TaylorJ\Probations\XF\Pub\Controller\PostController->actionProbation() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
XF\App->run() in src/XF.php at line 806
XF::runApp() in index.php at line 23
 
I was getting this error when I clicked the "Place on probation" button and penalized the user. I installed the latest update, and unfortunately, I'm still getting the same error.


Code:
XF\Db\Exception: MySQL statement prepare error [1146]: Table '****censored.xf_taylorj_probations' doesn't exist in src/XF/Db/AbstractStatement.php at line 230
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 207
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 43
XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 61
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
XF\Db\AbstractAdapter->query() in src/XF/Mvc/Entity/Finder.php at line 1417
XF\Mvc\Entity\Finder->fetchOne() in src/addons/TaylorJ/Probations/Service/Probations/Create.php at line 46
TaylorJ\Probations\Service\Probations\Create->createProbation() in src/addons/TaylorJ/Probations/Service/Probations/Create.php at line 31
TaylorJ\Probations\Service\Probations\Create->__construct() in src/XF/Container.php at line 275
XF\Container->createObject() in src/XF/App.php at line 1968
XF\App->XF\{closure}() in src/XF/Container.php at line 233
XF\Container->create() in src/XF/App.php at line 3550
XF\App->service() in src/XF/Mvc/Controller.php at line 874
XF\Mvc\Controller->service() in src/addons/TaylorJ/Probations/ControllerPlugin/AbstractPlugin.php at line 66
TaylorJ\Probations\ControllerPlugin\AbstractPlugin->__call() in src/addons/TaylorJ/Probations/ControllerPlugin/ProbationsPlugin.php at line 27
TaylorJ\Probations\ControllerPlugin\ProbationsPlugin->setupProbationCreate() in src/addons/TaylorJ/Probations/ControllerPlugin/ProbationsPlugin.php at line 68
TaylorJ\Probations\ControllerPlugin\ProbationsPlugin->actionProbation() in src/addons/TaylorJ/Probations/XF/Pub/Controller/PostController.php at line 23
TaylorJ\Probations\XF\Pub\Controller\PostController->actionProbation() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
XF\App->run() in src/XF.php at line 806
XF::runApp() in index.php at line 23
Your db table wasn't created for some reason. Will have a hotfix out for you tonight.
 
Your db table wasn't created for some reason. Will have a hotfix out for you tonight.
The problem is fixed, thank you. However, when I try it, I'm only blocked from opening threads. Things like posting to threads and posting to profiles are enabled. Is this normal?
 
The problem is fixed, thank you. However, when I try it, I'm only blocked from opening threads. Things like posting to threads and posting to profiles are enabled. Is this normal?
Posting to profiles hasn't been touched as of yet but very good call out for that as that should probably also be disabled.

For threads you shouldn't be able to post at all as a reply. How are you able to post when seeing this? Is the editor still appearing for you?
 
Posting to profiles hasn't been touched as of yet but very good call out for that as that should probably also be disabled.

For threads you shouldn't be able to post at all as a reply. How are you able to post when seeing this? Is the editor still appearing for you?
For example, when I start a thread, the button is inactive and says You don't have permission. However, when I write a message, the editor appears and I can write a message.
 
For example, when I start a thread, the button is inactive and says You don't have permission. However, when I write a message, the editor appears and I can write a message.
Does it let you actually post the message? Or do you get an permission error after that?

I would maybe try checking to make sure all of the addons template modifications are turned on.
 
I have been working on an update but no expected eta as of right now. I'm stuck on the design / page view of the probation view itself (I am no UI/UX designer and suck at it).
 
I installed the mod but I'm getting this error when I try to ban a user. Solutions? MY SITE: migratoria.it
XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'taylorj_probations_probation_id' in 'field list' in src/XF/Db/AbstractStatement.php at line 230
  1. XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 207
  2. XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 46
  3. XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 61
  4. XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
  5. XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 324
  6. XF\Db\AbstractAdapter->update() in src/XF/Mvc/Entity/Entity.php at line 1583
  7. XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1306
  8. XF\Mvc\Entity\Entity->save() in src/addons/TaylorJ/Probations/Service/Probations/Create.php at line 100
  9. TaylorJ\Probations\Service\Probations\Create->_save() in src/XF/Service/ValidateAndSavableTrait.php at line 42
  10. TaylorJ\Probations\Service\Probations\Create->save() in src/addons/TaylorJ/Probations/ControllerPlugin/ProbationsPlugin.php at line 77
  11. TaylorJ\Probations\ControllerPlugin\ProbationsPlugin->actionProbation() in src/addons/TaylorJ/Probations/XF/Pub/Controller/PostController.php at line 27
  12. TaylorJ\Probations\XF\Pub\Controller\PostController->actionProbation() in src/XF/Mvc/Dispatcher.php at line 362
  13. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 265
  14. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  15. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  16. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2824
  17. XF\App->run() in src/XF.php at line 806
  18. XF::runApp() in index.php at line 23
 
Perfect! It's working now. Thanks.

If you can, please post a notification in the thread for the user who was muted, explaining the reason for the temporary ban.
 
Back
Top Bottom