mtechama Posted December 13, 2005 Share Posted December 13, 2005 I am planing to make an extra info box for Live Support Chat like this website is talking about Live Person Chat I wander if the html code will work for this in the info box? Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
mtechama Posted December 13, 2005 Author Share Posted December 13, 2005 This is the HTML for my live Chat Support <!-- BEGIN LivePerson Button Code --><table border='0' cellspacing='2' cellpadding='2'><tr><td align="center"></td><td align='center'><a href='http://server.iad.liveperson.net/hc/31731906/?cmd=file&file=visitorWantsToChat&site=31731906&byhref=1' target='chat31731906' onClick="javascript:window.open('http://server.iad.liveperson.net/hc/31731906/?cmd=file&file=visitorWantsToChat&site=31731906&referrer='+escape(document.location),'chat31731906','width=472,height=320');return false;" ><img src='http://server.iad.liveperson.net/hc/31731906/?cmd=repstate&site=31731906&&ver=1&category=en;holiday;1' name='hcIcon' width=140 height=50 border=0></a></td></tr><tr><td> </td><td align='center'><a href='http://www.liveperson.com' style='text-decoration:none'><font face='Arial' size='-2' color='#333333'><span style='font-size: 10px; font-family: Arial, Helvetica, sans-serif'>Live chat by<font color='#475780'> Live</font><font color='#56A145'>Person</font></span></font></a></td></tr></table><!-- END LivePerson Button code --> how do I put this in my support box that I have created Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
mtechama Posted December 14, 2005 Author Share Posted December 14, 2005 if you got to my website at http://www.mtechama.com on the left colum at the bottom do you see a box info called Live Support? that is where I want it. Any Suggestions? Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
mtechama Posted December 14, 2005 Author Share Posted December 14, 2005 this is my code for my new box "livesupport.php <!-- support //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_LIVE_SUPPORT); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => ''); new infoBox($info_box_contents); ?> </td> </tr> <!-- support_eof //--> Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted December 14, 2005 Share Posted December 14, 2005 just before this line $info_box_contents[] = array('text' => ''); assign the live code to a variable like this $live_support_code = '<!-- BEGIN LivePerson Button Code --><table border='0' cellspacing='2' cellpadding='2'><tr><td align="center"></td><td align='center'><a href='http://server.iad.liveperson.net/hc/31731906/?cmd=file&file=visitorWantsToChat&site=31731906&byhref=1' target='chat31731906' onClick="javascript:window.open('http://server.iad.liveperson.net/hc/31731906/?cmd=file&file=visitorWantsToChat&site=31731906&referrer='+escape(document.location),'chat31731906','width=472,height=320');return false;" ><img src='http://server.iad.liveperson.net/hc/31731906/?cmd=repstate&site=31731906&&ver=1&category=en;holiday;1' name='hcIcon' width=140 height=50 border=0></a></td></tr><tr><td> </td><td align='center'><a href='http://www.liveperson.com' style='text-decoration:none'><font face='Arial' size='-2' color='#333333'><span style='font-size: 10px; font-family: Arial, Helvetica, sans-serif'>Live chat by<font color='#475780'> Live</font><font color='#56A145'>Person</font></span></font></a></td></tr></table><!-- END LivePerson Button code -->'; Now that aint going to work as it is, because of the single quotes used in the html you got. So either you have to replace them with double quotes or escape them with slashes. The only exception is the starting and ending single quote I placed. Be careful with quotes around the jscript. Those have to be escaped for the jscript to work. If you cannot make it work initially, break the string down to small parts then use the .= operator to add bit by bit until the entire string works. To test it and for the final box you will have to change the array line like this: $info_box_contents[] = array('text' => $live_support_code); I just assigned the final string to the box contents. So before you start set it like this as a test, $live_support_code = 'test'; and try it out, to make sure the box first works; then start the integration. Link to comment Share on other sites More sharing options...
mtechama Posted December 14, 2005 Author Share Posted December 14, 2005 just before this line $info_box_contents[] = array('text' => ''); assign the live code to a variable like this $live_support_code = '<!-- BEGIN LivePerson Button Code --><table border='0' cellspacing='2' cellpadding='2'><tr><td align="center"></td><td align='center'><a href='http://server.iad.liveperson.net/hc/31731906/?cmd=file&file=visitorWantsToChat&site=31731906&byhref=1' target='chat31731906' onClick="javascript:window.open('http://server.iad.liveperson.net/hc/31731906/?cmd=file&file=visitorWantsToChat&site=31731906&referrer='+escape(document.location),'chat31731906','width=472,height=320');return false;" ><img src='http://server.iad.liveperson.net/hc/31731906/?cmd=repstate&site=31731906&&ver=1&category=en;holiday;1' name='hcIcon' width=140 height=50 border=0></a></td></tr><tr><td> </td><td align='center'><a href='http://www.liveperson.com' style='text-decoration:none'><font face='Arial' size='-2' color='#333333'><span style='font-size: 10px; font-family: Arial, Helvetica, sans-serif'>Live chat by<font color='#475780'> Live</font><font color='#56A145'>Person</font></span></font></a></td></tr></table><!-- END LivePerson Button code -->'; Now that aint going to work as it is, because of the single quotes used in the html you got. So either you have to replace them with double quotes or escape them with slashes. The only exception is the starting and ending single quote I placed. Be careful with quotes around the jscript. Those have to be escaped for the jscript to work. If you cannot make it work initially, break the string down to small parts then use the .= operator to add bit by bit until the entire string works. To test it and for the final box you will have to change the array line like this: $info_box_contents[] = array('text' => $live_support_code); I just assigned the final string to the box contents. So before you start set it like this as a test, $live_support_code = 'test'; and try it out, to make sure the box first works; then start the integration. Parse error: parse error, unexpected T_LNUMBER in /home/content/m/o/r/morristech/html/includes/boxes/livesupport.php on line 11 I am getting errors like this Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted December 14, 2005 Share Posted December 14, 2005 try this first make sure the box works <!-- support //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_LIVE_SUPPORT); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $live_support_code = 'test'; $info_box_contents[] = array('text' => $live_support_code); new infoBox($info_box_contents); ?> </td> </tr> <!-- support_eof //--> Link to comment Share on other sites More sharing options...
mtechama Posted December 14, 2005 Author Share Posted December 14, 2005 try this first make sure the box works <!-- support //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_LIVE_SUPPORT); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $live_support_code = 'test'; $info_box_contents[] = array('text' => $live_support_code); new infoBox($info_box_contents); ?> </td> </tr> <!-- support_eof //--> yes I did that and it works Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted December 14, 2005 Share Posted December 14, 2005 ok so now start adding the html code. Don't put the entire thing at once. Break it in bits and use it like this: $live_support_code = '<!-- BEGIN LivePerson Button Code -->'; $live_support_code .= '<table border="0" cellspacing="2" cellpadding="2">'; and so on. with every line you add re-test the box. If you get a blank screen or errors the examine the last line for errors. Replace the single quotes to double quotes of the html code. Each line should start and end with a single quote. I don't want to do an addslashes because most likely it will break and will be hard to figure out where. It can take sometime until you have the whole thing properly setup Link to comment Share on other sites More sharing options...
mtechama Posted December 14, 2005 Author Share Posted December 14, 2005 ok so now start adding the html code. Don't put the entire thing at once. Break it in bits and use it like this: $live_support_code = '<!-- BEGIN LivePerson Button Code -->'; $live_support_code .= '<table border="0" cellspacing="2" cellpadding="2">'; and so on. with every line you add re-test the box. If you get a blank screen or errors the examine the last line for errors. Replace the single quotes to double quotes of the html code. Each line should start and end with a single quote. I don't want to do an addslashes because most likely it will break and will be hard to figure out where. It can take sometime until you have the whole thing properly setup is it for each line? Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
mtechama Posted December 14, 2005 Author Share Posted December 14, 2005 is it for each line? ok when I insert each line it gave me this http://www.mtechama.com Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted December 14, 2005 Share Posted December 14, 2005 dont worry about the html breakup it will get fixed once the entire html code is in. If you do not see the box or if you get errors then you should backtrack. Break the code and add line by line. Once you get to the jscript calls you must escape the jscript part like this java script:window.open(\'http.......\') in front of the single quotes that are needed in this case. I am not going to do the whole thing because it will take quite some time. Link to comment Share on other sites More sharing options...
mtechama Posted December 14, 2005 Author Share Posted December 14, 2005 dont worry about the html breakup it will get fixed once the entire html code is in. If you do not see the box or if you get errors then you should backtrack. Break the code and add line by line. Once you get to the jscript calls you must escape the jscript part like this java script:window.open(\'http.......\') in front of the single quotes that are needed in this case. I am not going to do the whole thing because it will take quite some time. Ok did you see what it did on my website Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted December 14, 2005 Share Posted December 14, 2005 yes I did as I mentioned it is irrelevant; once the whole html code is in the the table tags will be closed and it will be back to normal. Link to comment Share on other sites More sharing options...
mtechama Posted December 14, 2005 Author Share Posted December 14, 2005 yes I did as I mentioned it is irrelevant; once the whole html code is in the the table tags will be closed and it will be back to normal. well look at it I got to work now Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
mtechama Posted December 14, 2005 Author Share Posted December 14, 2005 Below my support image I want to add my forums link I want to say: If Live Support is Offline Click here.... there will be a link here is my code for my support live: <!-- support //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_LIVE_SUPPORT); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $live_support_code = '<!-- BEGIN PHP Live! code, (c) OSI Codes Inc. --> <script language="JavaScript" src="http://trial2.phplivesupport.com/js/status_image.php?base_url=http://trial2.phplivesupport.com&l=mtechama&x=1885&deptid=0&"><a href="http://www.phplivesupport.com"></a></script> <!-- END PHP Live! code : (c) OSI Codes Inc. -->'; $info_box_contents[] = array('text' => $live_support_code); new infoBox($info_box_contents); ?> </td> </tr> <!-- support_eof //--> Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
mtechama Posted December 14, 2005 Author Share Posted December 14, 2005 Below my support image I want to add my forums link I want to say: If Live Support is Offline Click here.... there will be a link here is my code for my support live: <!-- support //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_LIVE_SUPPORT); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $live_support_code = '<!-- BEGIN PHP Live! code, (c) OSI Codes Inc. --> <script language="JavaScript" src="http://trial2.phplivesupport.com/js/status_image.php?base_url=http://trial2.phplivesupport.com&l=mtechama&x=1885&deptid=0&"><a href="http://www.phplivesupport.com"></a></script> <!-- END PHP Live! code : (c) OSI Codes Inc. -->'; $info_box_contents[] = array('text' => $live_support_code); new infoBox($info_box_contents); ?> </td> </tr> <!-- support_eof //--> where do I put this at then: <a target="_blank" href="http://www.mtechama.com/support/forums/phpBB2/index.php">Support Forums</a> Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
mtechama Posted December 14, 2005 Author Share Posted December 14, 2005 Anyone? Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted December 14, 2005 Share Posted December 14, 2005 you should continue adding lines to create the entire string: $live_support_code .= 'href="http://www.mtechama.com/support/forums/phpBB2/index.php">Support Forums</a>'; till you have the entire html code. Take a look how you did the catalog\includes\languages\english\index.php where you have the entire text for the front page. Its easier to break it down to small pieces to watch for the single quotes. Link to comment Share on other sites More sharing options...
mtechama Posted December 27, 2005 Author Share Posted December 27, 2005 Ok I have found this free Live Support Chat!! Here is the html code: <table cellpadding="0" cellspacing="0" border="0"><tr><td align="center"><img src="http://www.websitealive4.com/source/images/supporticons/alivechat_black.gif" border="0" onClick="javascript:window.open('http://www.websitealive4.com/51/rRouter.asp?groupid=51&departmentid=','guest','width=450,height=400');" style="cursor:pointer"></td><tr><td align="center" style="background-color:#000000; padding:4px; font-size:9px; color:#fff; font-family:Verdana, Helvetica, sans-serif;"><a href="http://www.websitealive.com/" style="text-decoration:none; font-size:9px; color:#fff; font-family:Verdana, Helvetica, sans-serif;" target="_blank">Live chat</a> by <a href="http://www.websitealive.com/products.asp" style="text-decoration:none; font-size:9px; color:#fff; font-family:Verdana, Helvetica, sans-serif;" target="_blank"><b>AliveChat</b></a></td></tr></table> and I am trying to find this spot in my (catalog)/includes/boxes/livesupport.php here is that code for that file: <!-- support //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_LIVE_SUPPORT); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $live_support_code = ''; $live_support_code .= 'If Live Support is offline click the forum banner below'; $live_support_code .= '<p><a href="http://www.mtechama.com/support/forums/phpBB2/index.php"><img border="0" src="images/left_r_11.gif" width="144" height="69"></a></p>'; $info_box_contents[] = array('text' => $live_support_code); new infoBox($info_box_contents); ?> </td> </tr> <!-- support_eof //--> any suggestions????? Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Skeetergirl Posted December 27, 2005 Share Posted December 27, 2005 I am planing to make an extra info box for Live Support Chat like this website is talking about Live Person Chat I wander if the html code will work for this in the info box? I am using phponline Live Support. My Store You can search contributions for phponline, it had instructions for creating an infobox and intigrating with osCommerce. It took a little tweaking to work with SSL, but works great. It is online now if you want to try it. Good Luck Link to comment Share on other sites More sharing options...
mtechama Posted December 27, 2005 Author Share Posted December 27, 2005 I am using phponline Live Support. My Store You can search contributions for phponline, it had instructions for creating an infobox and intigrating with osCommerce. It took a little tweaking to work with SSL, but works great. It is online now if you want to try it. Good Luck I have used them and it going to cost me $20.00 dollars a month but this one I have found is FREE Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Skeetergirl Posted December 27, 2005 Share Posted December 27, 2005 I have used them and it going to cost me $20.00 dollars a month but this one I have found is FREE phponline is also free.... phponline webpage Link to comment Share on other sites More sharing options...
mtechama Posted December 27, 2005 Author Share Posted December 27, 2005 phponline is also free.... phponline webpage Well I have looked at their demo and when I am talking to one customer and another customer rings in and if I answer the other one I would loose my first customer Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
mtechama Posted December 27, 2005 Author Share Posted December 27, 2005 1. when no one answers customer leaves a messeges................loose customer 2. I rather have when a second customer calls they have wait in line til a Rep. gets to them. and this doesn't do it. Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.