Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Support / Re: Persistent Chat Windows w/o Need to Click Button
« Last post by stryker1 on October 17, 2018, 06:22:05 AM »
Quote
You should regenerate the button after enabling the aforementioned feature.
Great, this was it! Now it works like expected! Thank you very much!

Maybe you should add this hint in the documentation of the plugin and also in the settings about the user tracking/inviting.

It was not clear to me that this functionality is triggered from a deviant button code - and I guess I am not the only one ;)
12
Support / Re: Persistent Chat Windows w/o Need to Click Button
« Last post by faf on October 16, 2018, 08:31:40 PM »
I was amazed that you easily made a plugin for this, thank you!

You're welcome. Actually it's really easy to make a plugin once one understand the basic principles.

I already installed it and also activated the tracking of the visitors, but I see no difference in the behaviour of the gif button and/or the blue bubble button.

You should regenerate the button after enabling the aforementioned feature. The code of the button will become more complicated, and the button will start "talking" with the server every "n" seconds where "n" is defined in Settings -> Performance -> Tracking refresh time.

What should this new plugin exactly do?
You wrote in the description of the plugin:
"A plugin for Mibew Messenger to automatically refresh the button (to represent an actual availability of operators) and set its visibility (depending on existence of an active chat)."
If I understand it right it should hide the gif button when the user clicks on it, so that the chat openes (or the contact form).

Yes. The button will become invisible after the creation of the chat iframe. However there could be a short time lag, because button cloaking is not bound to the iframe creation, but related to interaction between the Widget and the Server: https://docs.mibew.org/development/core-architecture.html#widget-server-interaction

So it is not a solution for the point no. 4 which I described, or should it be a solution for this?

No, it shouldn't. It's a kind of solution for the whole task you've described.

If the plugin would work the way I understand your description, I would only need to style the gif button to look like the blue bubble button and place it on the same position as the bubble button, so that the visitors thinks, that the two buttons are the same :) Right?

Yes, that's correct.

However, if you'll find the time lag between iframe creation and button dissapearing is too long for you, you can try to somehow utilize the js code of the plugin. At least the code provides you an example of how to check whether the chat iframe is opened or not.
13
Support / Re: Persistent Chat Windows w/o Need to Click Button
« Last post by stryker1 on October 16, 2018, 06:58:53 PM »
I was amazed that you easily made a plugin for this, thank you!

I already installed it and also activated the tracking of the visitors, but I see no difference in the behaviour of the gif button and/or the blue bubble button.

What should this new plugin exactly do?
You wrote in the description of the plugin:
"A plugin for Mibew Messenger to automatically refresh the button (to represent an actual availability of operators) and set its visibility (depending on existence of an active chat)."
If I understand it right it should hide the gif button when the user clicks on it, so that the chat openes (or the contact form).
So it is not a solution for the point no. 4 which I described, or should it be a solution for this?

If the plugin would work the way I understand your description, I would only need to style the gif button to look like the blue bubble button and place it on the same position as the bubble button, so that the visitors thinks, that the two buttons are the same :) Right?
14
Support / Re: Persistent Chat Windows w/o Need to Click Button
« Last post by faf on October 16, 2018, 02:49:21 PM »
Well... Looks like I've understood what you're talking about...

The answer is pretty standard. The right way to do the job is to write a plugin. So, here it is:


And if you will still want to do something on the low level, take a look at the js part of the code of that plugin.
15
Support / Re: Persistent Chat Windows w/o Need to Click Button
« Last post by stryker1 on October 15, 2018, 09:14:24 AM »
Of cause I already read the documentation about theming the chat button. The styling of the button is not my problem here :)

If I understood you right, you wrote that the chat button (to be precise: I am talking about the button that can be "generated" in the admin area not the blue chat button that appears in the bottom-right when the user has started and minimised the chat window), is not on the page, when the chat is started. But this is the case here:

1. I have got the generated button on my page.
2. If the user clicks on it the chat window is shown (and the generated button stays where it was)
3. If the user closes the chat window, the generated button is shown as before and a new button (the blue button with the smiley bubble) is shown in the bottom-right
4. If the user clicks on the generated button, the chat window does not open anymore. He hast to click on the blue button to open it again.

So what I want to achieve:
a) The blue button is shown directly on page load and not the generated button
OR
b) the generated button opens the chat window again, also when the chat window was closed/minised before

What I did so far is styling the generated button to look like the blue button and placed it in the bottom-right.
I also hided the "original" blue button.
My problem with this solution is now only point 4) above.
16
Support / Re: Persistent Chat Windows w/o Need to Click Button
« Last post by faf on October 14, 2018, 06:20:10 PM »
Changing the default .gif image to look like the blue Mibew chat buttom, place this gif also in the bottom-right corner and set "visibility: hidden" of the class "mibew-chat-frame-toggle" could be an option.

Read this to find out how to theme the chat button in a right way: https://docs.mibew.org/theming.html#-a-name-chat-button-a-theming-chat-button

BUT: If the visitor already started the chat and hides it, a new click on the gif does not open the chatwindow.

If the visitor already started the chat and hides it there should not be the aforementioned gif on the page. It is impossible to have a chat button and a chat iframe (expanded or minimized) on the same page at the same time.
17
Support / Re: Persistent Chat Windows w/o Need to Click Button
« Last post by stryker1 on October 14, 2018, 01:50:39 PM »
Changing the default .gif image to look like the blue Mibew chat buttom, place this gif also in the bottom-right corner and set "visibility: hidden" of the class "mibew-chat-frame-toggle" could be an option.

BUT: If the visitor already started the chat and hides it, a new click on the gif does not open the chatwindow.

So I would also need to put a link/event to the gif image to open the chat window (like it is on the blue chat button).
What is the function I must open here, or is there another solution?
18
Support / Re: Configuration Visitor name
« Last post by stryker1 on October 14, 2018, 11:51:05 AM »
Quote
2. The tricky (and not recommended) one is to manually alter the code of the button.
This is working great :) Thank you!
19
Support / Re: Add "accept privacy" link or checkbox also in contactform
« Last post by faf on October 13, 2018, 10:09:42 PM »
I activated the privacy policy option for the pre-chat form. This worked great.

You're welcome.

But according to GDPR the user has also be informed and must accept about his privacy also when submitting the contact form, which is shown when no operator is available for chat.

So can you also add this link in this template in the next release? This would be great.

I'll think about it.

BTW: I also tried to modify the template by myself, but found out that these template are not simple html/phtml templates and have to be somehow compile. I never used "Gulp" before - maybe you can write a short tutorial about how to edit the Mibew template? The file mentioned in your documention about theming ("src/gulpfile.js") can not be found in the current release of Mibew.

There is a difference between official distribution (which intended to be used only in production environment) and the code base of the project that could be used for development and customizing.

If you want to develop your own style, you have to get the sources from the repo and follow the instruction for building from sources.
20
Support / Re: Configuration Visitor name
« Last post by faf on October 13, 2018, 10:00:57 PM »
I guess he also wants the same as I:

Could you borrow me your crystal ball? Mine seems broken.  ;D

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:

Code: [Select]
Mibew.ChatPopup.init({"id":"<some unique id>","url":"\/mibew\/chat?locale=en"
with

Code: [Select]
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.
Pages: 1 [2] 3 4 ... 10