Jump to content
Sign in to follow this  
Tudolegal

Live Support v 1.2 ! POPUP PROBLEM !!

Recommended Posts

Hi, this is a very good contribution but i have a problem !

 

when i log into my admin then click "Start Live Support"

it opens the window for file: admin/ls_callwaiting.php

 

All working fine !

 

But with every 5 secounds I have another window POPING UP from /admin/ls_callwaiting.php

 

 

This is very annoying this is a great contribution but i might not be able to use it because i cannot use my computer for anything else ! Since every 5 seconds this window popups in front of everything!

 

Is this popup really necessary ? How can i block it so i dont get it poping up every 5 seconds?

 

Very annoying little bug for me !

The contribution works fine ! ALL GOOD except this window that keeps poping up calling LS_CALLWAITING.PHP every 5 seconds, and this cant be accepted, only for those that run a computer only for this support chat feature!

 

Thanks allot hope someone has a solution for me!

Edited by Tudolegal

Share this post


Link to post
Share on other sites

I'm having the same problem! I have no idea how to fix it. Please someone help!

Edited by claybor

Share this post


Link to post
Share on other sites
I'm having the same problem! I have no idea how to fix it. Please someone help!

 

I just installed this contrib over the weekend and I'm having the same problem. It actually worked just fine right after the install but today, when I had a friend outside of my own office try it, the pop ups started as soon as we ended the session.

 

Anyone have any idea on this? Or any suggestion for a different live support contrib that doesn't do this?

 

Thanks,

Gayla

Share this post


Link to post
Share on other sites

Hi All!

I have been using this contribution for a month without any problems.

Today I got the same problem as the rest of you here.

 

If I understand things right this is the code that triggers the window to open (in ls_messages.php)

<?
$status_query = tep_db_query("select status from " . TABLE_LS_TECHS . " a where tech_id ='1' ");
while ($status = tep_db_fetch_array($status_query)) {
if($status['status'] == 'yes') {
	echo "<p align=\"center\"><b style=\"font-size:16pt;\">Waiting for a call!</b></p>\n";
	$i = 0;
	$conversation_query = tep_db_query("select guest, session_id from " . TABLE_LS_CONVERSATIONS . " a where tech ='Support' ");
	while ($conversation =tep_db_fetch_array($conversation_query)) {
		$i++;
	}
	if($i > 0) { 
		echo "<script>NewWindow('ls_newcall.php','conversation','280','320','no')</script>\n";
	}
}
if($status['status'] == 'busy') {
	echo "<p align=\"center\"><b style=\"font-size:16pt;\">Busy!</b></p>\n";
}
}
?>

This is the Javascript it calls:

<script language="javascript">
var limit="0:5"
if (document.images){
	var parselimit=limit.split(":")
	parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
	if (!document.images) 
		return
	if (parselimit==1) 
		window.location.reload() && window.scroll(0,20000)
	else{
		parselimit-=1
		curmin=Math.floor(parselimit/60)
		cursec=parselimit%60
	if (curmin!=0)
		curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
	else
		curtime=cursec+" seconds left until page refresh!"
		setTimeout("beginrefresh()",1000)
	}
}
window.onload=beginrefresh

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings =
	'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win = window.open(mypage,myname,settings)
}
</script>

Is the problem in the database?

Why does the problem appear?

 

//Micke

Share this post


Link to post
Share on other sites

Hi All!

 

OK, problem is solved.

I had missed a call and the database was not cleaned up.

I had to use phpMyAdmin to go into the table "ls_conversations" and delete a couple of entries there...

Now everything works fine...

 

//Micke

Share this post


Link to post
Share on other sites
Hi All!

 

OK, problem is solved.

I had missed a call and the database was not cleaned up.

I had to use phpMyAdmin to go into the table "ls_conversations" and delete a couple of entries there...

Now everything works fine...

 

//Micke

 

Thanks Micke, thats solves the popup problem and it runs ok.. but Im having this problem.. wonder if anyone has a hint. :

 

The script runs fine on the index and some other pages but will not work on the products_info page. If you click to view a product, then on the column left click on the "live support" the new window opens but to the index, not to the live_support page. But if you are on index, reviews or any page that is not a product page. then its like it loses the base url.

 

anyone have this problem or sees whats going on..

 

thanks

:'(

 

this problem also hapens if you switch languages if you run a bi-lingual site.

Edited by CD Monster

Music is body splash for the soul.

Share this post


Link to post
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
Sign in to follow this  

×