I guess he also wants the same as I:
Could you borrow me your crystal ball? Mine seems broken.
I want to integrate Mibew in an existing web application where the user is logged in, so I already know is name.
I want to directly start the chat, without the first step that the user has to enter his name (again).
Is there a way to start the chat without asking for the username, or even better: start the chat with the name of the user? Maybe include the name as parameter in the event the chat button fires when opening the Mibew chat window?
You can start the chat without asking for anything. Just disable the option "Pre-chat survey".
As of predefined visitor name, there are two possible ways:
1. The right (and complicated) one is to create a plugin that will make use of
\Mibew\EventDispatcher\Events::VISITOR_TRACK and
\Mibew\EventDispatcher\Events::THREAD_CREATE events. See docs
here and
here for more details.
2. The tricky (and not recommended) one is to manually alter the code of the button.
One have to replace:
Mibew.ChatPopup.init({"id":"<some unique id>","url":"\/mibew\/chat?locale=en"
with
Mibew.ChatPopup.init({"id":"<some unique id>","url":"\/mibew\/chat?locale=en&name=<the desired visitor name>"
In that case the default name in the form will be equal to the desired value. But it's a kind of hack, so use at your own risk.