Author Topic: Pop up window for customer that use mobile/smart phone  (Read 7227 times)

0 Members and 1 Guest are viewing this topic.

maxrubino

  • Jr. Member
  • **
  • Posts: 1
Pop up window for customer that use mobile/smart phone
« on: October 11, 2013, 07:12:26 AM »
Hi,
so everything work perfect from the very first day.
I just would like to know if it is possible to create the chat window for the customer with a size for mobile and or smart phone as the standard one became super small.
Or, which file I have to modify to control the shape of it?
Thanks a lot

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Pop up window for customer that use mobile/smart phone
« Reply #1 on: October 11, 2013, 11:21:55 AM »
Hi!

Speaking of Mibew 1.6.x, if you take a look at the HTML code of a chat button, you'll see something like this:

Quote
<!-- mibew button --><a href="/client.php?locale=en" target="_blank" onclick="if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 &amp;&amp; window.event.preventDefault) window.event.preventDefault();this.newWindow = window.open(&#039;/client.php?locale=en&amp;url=&#039;+escape(document.location.href)+&#039;&amp;referrer=&#039;+escape(document.referrer), 'mibew', 'toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><img src="/b.php?i=mibew&amp;amp;lang=en" border="0" width="163" height="61" alt=""/></a><!-- / mibew button -->

So, basically, you just need to manually change the values of width and height (I've marked them for you in the code above).

Alternatively, you can change the function generate_button in the libs/getcode.php file. Though, in this case you'll have to support this change for all upcoming Mibew 1.6.x releases. ;)