Jump to content

Integrating mibew/webim with free block


Recommended Posts

Hi, I am trying to integrate live chat using mibew. I generate the HTML button code and try to put it in the free block, but I get an error:

 

An error occured during free block creation

 

The generated code is:

 

<!-- webim button -->
<a href="/webim/client.php?locale=en" target="_blank"
onclick="if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 && window.event.preventDefault) window.event.preventDefault();this.newWindow = window.open('/webim/client.php?locale=en&url='+escape(document.location.href)+'&referrer='+escape(document.referrer), 'webim', '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="/webim/b.php?i=webim&lang=en" border="0" width="163" height="61" alt=""/>
</a>
<!-- / webim button -->

 

By removing everything and only letting the link and the image like this:

<!-- webim button -->
<a href="/webim/client.php?locale=en" target="_blank" ">
<img src="/webim/b.php?i=mgreen&lang=en" border="0" width="177" height="61" alt=""/></a>
<!-- / webim button -->

 

Everything works fine, except that it opens in a new tab. I guess all the other code is to open a chatbox. Does anyone know where it goes wrong and how do I make it work in Prestashop?

 

Thanks for your help!

Edited by barefoot (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...