Author Topic: Pop Up Chat!  (Read 11191 times)

0 Members and 1 Guest are viewing this topic.

schaark

  • Jr. Member
  • **
  • Posts: 3
Pop Up Chat!
« on: November 07, 2013, 07:04:30 PM »
Hello friends, I'm from Brazil my English is not very good to HEHE using Google translator.

I have a website in Joomla, with Mibew installed and configured, all functions configured everything correctly.

The only problem is with the Chat Window

Click the button to enter the Chat

The Home page is the site that enters CHAT instead of staying on the main page.

What is the solution for this?

Click on the CHAT button and just open the Pop-up without leaving the site?
Thank you!

Code: [Select]
<!-- mibew button -->
<p><a href="Atendimento/client.php?locale=pt-br&amp;style=silver" target="_blank" onclick="if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 &amp;&amp; window.event.preventDefault) window.event.preventDefault();this.newWindow = window.open('http://www.thedoglock.com.br/Atendimento/client.php?locale=pt-br&amp;style=silver&amp;url='+escape(document.location.href)+'&amp;referrer='+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="Atendimento/b.php?i=simple&amp;amp;lang=pt-br" border="0" alt="" width="200" height="55" /></a></p>
<!-- / mibew button -->

schaark

  • Jr. Member
  • **
  • Posts: 3
Re: Pop Up Chat!
« Reply #1 on: November 07, 2013, 07:06:44 PM »
events onclick

Quote
if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 && window.event.preventDefault) window.event.preventDefault();this.newWindow = window.open('http://www.thedoglock.com.br/Atendimento/client.php?locale=pt-br&style=silver&url='+escape(document.location.href)+'&referrer='+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;

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Pop Up Chat!
« Reply #2 on: November 07, 2013, 09:54:51 PM »
You've inserted on your page this code:

Code: [Select]
/*===  EASY GOOGLE ANALYTICS : START OUTBOUND LINKS  ===*/
function trackOutboundLink(link, category, action) {
  try {
    _gaq.push(['_trackEvent', category , action]);
  } catch(err){}
  setTimeout(function() {
    document.location.href = link.href;
  }, 100);
}
/*===  EASY GOOGLE ANALYTICS : END OUTBOUND LINKS  ===*/

/*===  EASY GOOGLE ANALYTICS : START FIXING LINKS  ===*/
window.addEvent('domready', function(){
  $$('a:not([href*="' + document.domain + '"])').each(function(el){
    el.addEvent('click', function(){
       trackOutboundLink(this, 'Outbound Links', el.getProperty('href')); return false;
     });
   });
});
/*===  EASY GOOGLE ANALYTICS : END FIXING LINKS  ===*/

And it does absolutely what it supposed to do, registering new handler for onclick event for Mibew link.