Contributions > Plugins, tips, and tricks

Created an Operator Status Controller for External Integration

(1/1)

MichaelTunnell:
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.

Navigation

[0] Message Index

Go to full version