Guest Posted March 28, 2003 Share Posted March 28, 2003 one last thing i forgot to mention that the live help on the catalog side is always on , even if the admin section si closed pls help Quote Link to comment Share on other sites More sharing options...
ibandyop Posted March 28, 2003 Share Posted March 28, 2003 one last thing i forgot to mention that the live help on the catalog side is always on , even if the admin section si closed pls help Apply this change in adminls_session_close.php. Locate the first line and apply the next line. tep_db_query("delete from " . TABLE_LS_STATUS . " where session_id = '" . $session . "' "); tep_db_query("update " . TABLE_LS_TECHS . " set status = 'yes', helping = '' where tech_id = 1 "); Quote ibandyop Link to comment Share on other sites More sharing options...
ibandyop Posted March 28, 2003 Share Posted March 28, 2003 one last thing i forgot to mention that the live help on the catalog side is always on , even if the admin section si closed pls help If you apply the JavaScript changes on the very first post of this thread recommended by russmcduck it by fixes exactly this problem to some degee (allows you to hang up). After applying those changes there is still one more problem. Where a dialog box pops and shuts down after the session has closed. I have not located where this problem is coming from. See my earlier post about a file calling itself, it may be /LiveSupport_v12d/admin/ls_newcall.php calling itself, see my earlier post on this. If we fix this problem and a few stylesheet changes, this can become usable. Will be back in about 16 hours :( and look at this tomorrow :-) Quote ibandyop Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2003 Share Posted March 28, 2003 hi ibandyop i followed your suggestions howeevr i got teh following error message while start to run the livesupport at teh admin Parse error: parse error, unexpected '<' in /home/islamab/public_html/catalog2/admin/live_support.php on line 16 as follow is a copy of my livesupport .php <?php /* Live Support v1.2 Author: Mike Lessar <[email protected]> for use with: osCommerce v2.2, Open Source E-Commerce Solutions http://www.oscommerce.com Released under the GNU General Public License */ require('includes/application_top.php'); //<td valign="top" align="center"> <a href="java script:void(0);" onclick="NewWindow('ls_start.php','tech','220','200','no');return false"><b style="font-size:14pt;">Start Live Support</b></a><br><br> //////<-----------begin modification reset db---------->/////////////// < a href="java script:void(0);" onclick="NewWindow('ls_reset.php','tech','220','200','no');return false"><b style="font-size:14pt;">Reset Live Support</b></a> <br> Fixes open window error!! //////<-----------end modification reset db---------->/////////////// //</td> ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <script language="javascript"> 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> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top" align="center"> <a href="java script:void(0);" onclick="NewWindow('ls_start.php','tech','200','250','no');return false"><b style="font-size:14pt;">Start Live Support</b></a> </td> </tr> </table> </td> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> any advice? Quote Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2003 Share Posted March 28, 2003 another thing , how can i turn off the livesupport from showing in the catalog side for now till fixing the problem ? Thanks Quote Link to comment Share on other sites More sharing options...
Farrukh Posted March 28, 2003 Share Posted March 28, 2003 I am also runnning the LIve Support you can check my site http://www.arabianbazaar.com Quote Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2003 Share Posted March 28, 2003 farouk , i am using load 5 with 1.3 livesupport , what kind of version are u running ? and do u have any suggestions to my case? thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2003 Share Posted March 28, 2003 your site looks good to me Quote Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2003 Share Posted March 28, 2003 forget about how to deactivate a box i mange to knwo it i should be reading the tutorials :oops: :oops: Quote Link to comment Share on other sites More sharing options...
Promaetheus Posted April 2, 2003 Share Posted April 2, 2003 hi there guys. i?m new to this board. i just installed the live support v1.2c from mike lessar following problem: everything went fine. at my first visit the live-support was not available. so i started it in the admin menue. i called a friend to test the live support. he told me a window opened what telled him: all techs are busy. but in my admin interface nothing happened. and if i clicked on "start live-support" the message: 1 window is open, ... i even couldn?t turn off live-support when i switched of my pc and started the whole thing new - the live support image AVAILABLE didn?t never leav on my homepage. :o( sorry for my bad englisch - i am from austria: land of the cows and mountains. ;o)~~~ pls help me! thx alot... Quote mfg Alex Link to comment Share on other sites More sharing options...
Farrukh Posted April 3, 2003 Share Posted April 3, 2003 IslamB You should remove these lines in your code Line 13: //////<-----------begin modification reset db---------->/////////////// Line:16 //////<-----------end modification reset db---------->/////////////// Quote Link to comment Share on other sites More sharing options...
Promaetheus Posted April 3, 2003 Share Posted April 3, 2003 thank you SOOOOOOOOO much for your help. that fixed my problems. :D i can?t tell you how glad i am! Quote mfg Alex Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2003 Share Posted April 3, 2003 hi i did and i still get teh following message Parse error: parse error, unexpected '<' in /home/islamab/public_html/catalog2/admin/live_support.php on line 16 the exact code on line 16 is <td valign="top" align="center"> any idea? thanks islamab Quote Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2003 Share Posted April 3, 2003 Farrukh: Which file are you talking about? Thomas IslamB You should remove these lines in your code Line 13: //////<-----------begin modification reset db---------->/////////////// Line:16 //////<-----------end modification reset db---------->/////////////// Quote Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2003 Share Posted April 3, 2003 i am talking about live _support.php is that correct ? Quote Link to comment Share on other sites More sharing options...
Farrukh Posted April 3, 2003 Share Posted April 3, 2003 Islamb, its got something to do with your NewWindow line in livesupport.php here take a look at mine admin/inve_support.php <?php /* Live Support v1.2 Author: Mike Lessar <[email protected]> for use with: osCommerce v2.2, Open Source E-Commerce Solutions http://www.oscommerce.com Released under the GNU General Public License */ require('includes/application_top.php'); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <script language="javascript"> 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> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top" align="center"> <a href="javascript:void(0);" onclick="NewWindow('ls_start.php','tech','200','200','no');return false"><b style="font-size:14pt;">Start Live Support</b></a><br><br> <a href="javascript:void(0);" onclick="NewWindow('ls_reset.php','tech','220','200','no');return false"><b style="font-size:14pt;">Reset Live Support</b></a><br> Fixes open window error!! </td> </tr> </table> </td> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Quote Link to comment Share on other sites More sharing options...
Farrukh Posted April 3, 2003 Share Posted April 3, 2003 islamb, just remove your code from line 11 to 17 <td valign="top" align="center"> <a href="javascript:void(0);" onclick="NewWindow('ls_start.php','tech','220','200','no');return false"><b style="font-size:14pt;">Start Live Support</b></a><br><br> < a href="javascript:void(0);" onclick="NewWindow('ls_reset.php','tech','220','200','no');return false"><b style="font-size:14pt;">Reset Live Support</b></a> <br> Fixes open window error!! </td> line 63 : <a href="javascript:void(0);" onclick="NewWindow('ls_start.php','tech','200','250','no');return false"><b style="font-size:14pt;">Start Live Support</b></a> add this code after line 63: <a href="javascript:void(0);" onclick="NewWindow('ls_reset.php','tech','220','200','no');return false"><b style="font-size:14pt;">Reset Live Support</b></a><br> Fixes open window error!! </td> Quote Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2003 Share Posted April 3, 2003 Below is my copy of live_support.php Does this look like anything you have? Thomas ------------------- <?php /* Live Support v 1.0 Author: Mike Lessar <[email protected]> for use with: osCommerce v2.2, Open Source E-Commerce Solutions http://www.oscommerce.com Released under the GNU General Public License */ ?> <!-- Live_Support //--> <tr> <td> <?php //Check to see if support is available $support_query = tep_db_query("select status from " . TABLE_LS_TECHS . " where status='yes' or status='busy' "); $support_results = tep_db_num_rows($support_query); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_LIVE_SUPPORT ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); if($support_results > 0) { $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . FILENAME_LIVE_SUPPORT . '">' . tep_image(DIR_WS_IMAGES . 'live_support1.gi } else { $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . tep_image(DIR_WS } new infoBox($info_box_contents); ?> </td> </tr> <!-- Live_Support_eof //--> i am talking about live _support.php is that correct ? Quote Link to comment Share on other sites More sharing options...
Farrukh Posted April 3, 2003 Share Posted April 3, 2003 Thomas the above code is from the file in admin Catalog/Admin/live_support.php Quote Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2003 Share Posted April 3, 2003 Hi faruk it is loading however when i am trying to start a live support session i got teh following message Parse error: parse error, unexpected $ in /home/islamab/public_html/catalog2/admin/ls_start.php on line 30 Quote Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2003 Share Posted April 3, 2003 I am going to reload the scripts again. Which version are you using. from which contgribution as there are two of them. Thomas Thomas the above code is from the file in admin Catalog/Admin/live_support.php Quote Link to comment Share on other sites More sharing options...
Promaetheus Posted April 3, 2003 Share Posted April 3, 2003 ok guys. here?s a working file-version. with this it should work. <?php /* Live Support v1.2 Author: Mike Lessar <[email protected]> for use with: osCommerce v2.2, Open Source E-Commerce Solutions http://www.oscommerce.com Released under the GNU General Public License */ require('includes/application_top.php'); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <script language="javascript"> 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> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading">Live Support</td> <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top" align="center"> <a href="javascript:void(0);" onclick="NewWindow('ls_start.php','tech','220','200','no');return false"><b style="font-size:14pt;">Live Support starten</b></a><br><br> <a href="javascript:void(0);" onclick="NewWindow('ls_reset.php','tech','220','200','no');return false"><b style="font-size:14pt;">Live Support beenden</b></a> <br> </td> </tr> </table> </td> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> for information: the contrib. is: Live Support 1.2c from Mike Lessar, BUT then the changes from the postings of this thread was applied, and now it works! just one little tricky problem with the sound left. i think there?s an error including the application_top.php. cause even the pics in the admin chatwindow doesnt work! i looked at it and the code require('includes/application_top.php'); which is the same in the catalog/includes/application_top.php , but there it works. and in the adminside not. but it does not compile the <img height=15 src="live_support/<? echo LS_COLOR; ?>/bottom_right_curve.gif" width=15> from echeo LS_COLOR which is defined in the /includes/application_top.php. logically the sound live_support/<? echo LS_WARNING; ?> which is also defined in the /includes/application_top.php doesn?t work too. has anybody a solution for this problem? Quote mfg Alex Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2003 Share Posted April 3, 2003 I think the problem that I am having is that Live Support v1.3 is NOT setup to run on the April 1, 2003 snapshot of osCommerce. I will wait until there is a better solution to these problems. Apparently The author is unaware that there are some changes in the latest snapshot. Thomas Quote Link to comment Share on other sites More sharing options...
Farrukh Posted April 4, 2003 Share Posted April 4, 2003 I am running the lastest version of Live Support with Loaded 5. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 4, 2003 Share Posted April 4, 2003 Farrukh, What is load 5? Is this a good thing? or what? Thomas I am running the lastest version of Live Support with Loaded 5. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.