Author Topic: Created an Operator Status Controller for External Integration  (Read 1768 times)

0 Members and 1 Guest are viewing this topic.

MichaelTunnell

  • Native
  • *****
  • Posts: 50
  • Yesterday is History and Tomorrow is a Mystery
    • MichaelTunnell.com
Created an Operator Status Controller for External Integration
« on: September 17, 2016, 05:17:38 AM »
GitHub Pull Request: https://github.com/Mibew/mibew/pull/174

I wanted to have more control for what is displayed based on whether an operator is available or not.

I didn't want to use the default "Leave a Message" system but instead use my own contact form or perhaps something else. Unfortunately, Mibew doesn't offer any ability to do this at the moment. The only options are On/Off with Live Chat/Leave a Message.

This controller creates a new external integration feature that outputs a true or false statement based on the availability of operators.

By using http://example.com/mibew/opstatus you can include as a variable and take actions based on the status value. I think this increases a lot of possibilities for flexibility.



I realize this could probably be a plugin instead of submitted as an edit to the core but I couldn't figure out how to create a plugin that modifies the routing.yml file.

If you think this would be better as a plugin, please let me know how to do that and I will convert it to a plugin instead.



Oh yea, this Operator Status controller also supports Group ids so the status can be tested per group.