Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Live Support Fix


Guest

Recommended Posts

  • Replies 212
  • Created
  • Last Reply

Top Posters In This Topic

Can someone Put all the fixes together. and Release a final Versiono f the Live Support Help. and add it to the contribution sectoin so others can download itl. Becuase right now its just too many stuff to fix.. and too many error.s Please someone gotta be kind enough to do this please do this

 

thanks

Link to comment
Share on other sites

Please.... someone be kind enough, or please take some time enough to zip up a complete fix for the php live support, as this is one of the best contribution I seen so far. Please someone do it for me, I'll donate $10 for this contribution, as this is all I can afford, but will donate more if I make good money :)

 

Thanks you

Link to comment
Share on other sites

Alfa.

 

I have made the changes, and still getting problems, I made all the changes, but its not talking to each other, I would like to see someoen actually put upa LIVE DEMO so i can see it in action. Come on guys, Please share this live support module with ME>... I will donate some money to whoever give it to me. I know a small amount is not alot but if more people donate then its alot..

 

Again, Someone Pleaes be kind enought to add all the changes and upload a working copy with all the fixes .

 

Thank you so much!!!!!!

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

I have had to reinstall this contrib.

 

I am now using MS1 with the 1.2c version of LiveSupport.

 

The problem I am having SEEMS to be coming from ls_comm_main.php

 

What happens is this

 

Start Live Support

 

request for live support from the index.html file.

 

Input name

 

*box pops up listing the name for admin interaction*

 

*I click on the user name to interact*

 

The following comes up on screen...

 

Parse error: parse error in /home/thomask/rainbowcomputers.ca/htdocs/admin/ls_comm_main.php on line 131

 

Now, Admin/sales can type, and the user will see. However the user types, and the admin/sales can NOT see whats being said.

 

This is my ls_comm_main.php file

 

<?

/*



? ? ? ?Live Support v 1.2b

? ? ? ?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.0 Transitional//EN">

<html>

<head>

<meta http-equiv=Content-Type content="text/html; charset=windows-1252">

<style type=text/css>TD.main {

? ? ? ?FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: arial

}

TD.header {

? ? ? ?FONT-SIZE: 8pt; COLOR: #ffffff; FONT-FAMILY: arial

}

TD.hidden {

? ? ? ?FONT-SIZE: 0pt; COLOR: #ffffff; FONT-FAMILY: arial

}

A.bluelink {

? ? ? ?FONT-SIZE: 8pt; COLOR: #0000ff; FONT-FAMILY: arial; TEXT-DECORATION: none

}

A.bluelink:hover {

? ? ? ?TEXT-DECORATION: underline

}

.TextBox {

? ? ? ?BORDER-RIGHT: #000000 1px inset; BORDER-TOP: #000000 1px inset; FONT-SIZE: 12px; BACKGROUND-ATTACHMENT: fixed; BACKGROUND-IMAGE: url('live_support/box_shadow.gif'); BORDER-LEFT: #000000 1px inset; COLOR: #000000; BORDER-BOTTOM: #000000 1px inset; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif



}

.Button {

? ? ? ?BORDER-RIGHT: #000000 1px inset; BORDER-TOP: #000000 1px inset; FONT-SIZE: 11px; BORDER-LEFT: #000000 1px inset; COLOR: #000000; BORDER-BOTTOM: #000000 1px inset; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif



}

.question {

? ? ? ?FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: arial

}

.reply {

? ? ? ?FONT-SIZE: 8pt; COLOR: #ff0000; FONT-FAMILY: arial

}

.system {

? ? ? ?FONT-SIZE: 8pt; COLOR: #008000; FONT-FAMILY: arial

}

</style>

<script language=JavaScript>

var countDownInterval=5;

var c_reloadwidth=200

</script>

</head>

<body style="BACKGROUND-ATTACHMENT: fixed; MARGIN: 0px; BACKGROUND-REPEAT: no-repeat" leftMargin=0 topMargin=0 rightMargin=0 marginheight="0" marginwidth="0" class="TextBox">

<ilayer id=c_reload width="&{c_reloadwidth};">

<layer id=c_reload2 width="&{c_reloadwidth};" top="0" ?

left="0"></layer>

</ilayer>

<script>

var countDownTime=countDownInterval+1;

else if (document.layers){

document.c_reload.document.c_reload2.document.write('<table ?width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td class="hidden"><b id="countDownText">'+countDownTime+'</b></td></tr></table>')

document.c_reload.document.c_reload2.document.close()

}

counter=setTimeout("countDown()", 1000);

}



function startit(){

if (document.all||document.getElementById)

document.write('<table ?width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td class="hidden"><b id="countDownText">'+countDownTime+'</b></td></tr></table>')

countDown()

}



if (document.all||document.getElementById)

startit()

else

window.onload=startit

</script>



<table cellSpacing=0 cellPadding=0 width="100%" border=0>

?<tbody>

?<tr>

? ?<td width=10></td>

? ?<td class=main>

<?

? ? ? ?$windowstatus = 0;



? ? ? ?// lets see if the user has closed the session

? ? ? ?$lsstatus_query = tep_db_query("select status from " . TABLE_LS_STATUS . " where session_id = '" . $session . "' ");

? ? ? ?while($lsstatus = tep_db_fetch_array($lsstatus_query)) {

? ? ? ? ? ? ? ?$windowstatus = $lsstatus[status];

? ? ? ?}



? ? ? ?if($windowstatus == '1') {

? ? ? ? ? ? ? ?// Lets read the contents of the conversation

? ? ? ? ? ? ? ?$conversation_query = tep_db_query("select id, guest, tech, message, tech_reply from "

. TABLE_LS_CONVERSATIONS . " a where session_id = '" . $session . "' order by id desc");

? ? ? ? ? ? ? ?while ($conversation =tep_db_fetch_array($conversation_query)) {

? ? ? ? ? ? ? ? ? ? ? ?if($conversation['tech_reply'] == '1') {

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?echo "<span class="question"><b>$conversation[tech]</b> $conversation[message]

</span><br>n";

? ? ? ? ? ? ? ? ? ? ? ?}

? ? ? ? ? ? ? ? ? ? ? ?if($conversation['tech_reply'] == '0') {

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?echo "<span class="reply"><b>$conversation[guest]</b> $conversation[message]

</span><br>n";

? ? ? ? ? ? ? ? ? ? ? ?}

? ? ? ? ? ? ? ? ? ? ? ?if($conversation['tech_reply'] == '3') {

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?echo "<p align="center" class="system"> $conversation[message]</p><br>n";

? ? ? ? ? ? ? ? ? ? ? ?}

? ? ? ? ? ? ? ?}

? ? ? ?} else {

? ? ? ? ? ? ? ?if($conversation['tech_reply'] == '3') {

? ? ? ? ? ? ? ?echo "<p align="center" class="system"> $conversation[message]</p><br>n";

? ? ? ?}

? ? ? ?} ?// line 131 //

? ? ? ?} else {

? ? ? ?echo " The User has left the conversation!<br>FIRST HANG UP and then End Support Session!!<form method=post action=ls_comm_exit.php onSubmit='this.mysubmitbutton1.value=Processing;return(true);'>

? ? ? ?<input type=hidden name=tech value=1>

? ? ? ?<input type=submit value=Hang Up name=mysubmitbutton1 ></form>";

}

?>

? ? ? ? ? ? ? ?<script>

? ? ? ? ? ? ? ? ? ? ? ?alert("The User has left the conversation!");

? ? ? ? ? ? ? ? ? ? ? ?window.open('ls_comm_exit.php','conversation', 'width=100', 'height=100');

? ? ? ? ? ? ? ?</script>

? ? ? ?<?

}

?>



? ?</td>

?</tr>

?</tbody>

</table>

</body>

</html>

 

Any suggestions? Line 131 is marked by comment... I cant seem to see what I'm doing wrong...

 

Thomas Keats

Edited by Johnson

A signature is something that reflects its user. - The dictionary

 

The question is not, 'to code, or not to code'

the question is, 'if we do not code, are we really alive?'

-- anonymous

Link to comment
Share on other sites

Uhm, nm, I think I got it...

 

              if($conversation['tech_reply'] == '3') {

             echo "<p align="center"class="system"> $conversation[message]</p><br>n";

     }

     }

     } else {

needed to be edited out / removed

}

simply an errant } in the section..

 

It works now, but I get a window that lasts all of 1-3 seconds on my screen, I dont even have time to read what it MIGHT contain, as it never parses anything.

 

Gets annoying when I am trying to do certain tasks and it steals my focus..

 

Thomas Keats

A signature is something that reflects its user. - The dictionary

 

The question is not, 'to code, or not to code'

the question is, 'if we do not code, are we really alive?'

-- anonymous

Link to comment
Share on other sites

This is a version I modified in January. Instructions and files are packed in a zip file that you can download here:

 

http://www.wwwebcentral.com/Livesupport.zip

 

*** VERY IMPORTANT ***

 

Just because I've been using it (problem-free) since January, does not mean it will work for you! And before anyone asks, I'm now using the MS1 version - but it was successful with the previous version. Also, I say this in the readme file - but I'll say it here - ALWAYS backup your database and any files you are going to alter BEFORE you modify them.

 

Just because the modifications from Live Support are minor compared to other scripts - does not ensure your files are safe from corruption, which can happen during file uploads and transfers. That was my "tip of the day". :wink:

 

Anyway - I will also offer to "test" your installed live support for you, if you PM me through my username (michellez1).

 

Regards,

Michelle

Link to comment
Share on other sites

Open catalog/admin/includes/application_top.php

 

Add:

 

 

define('FILENAME_LIVE_SUPPORT', 'live_support.php');

 

Close and Save!

 

Open catalog/includes/application_top.php

 

Add:

 

 

define('FILENAME_LIVE_SUPPORT', "java script:void(0);" onclick="window.open('live_support.php','livesupport','width=280,height=280')

 

Close and Save!

 

Note to self: Add to readme file.

 

Sorry bout that...Was hoping I didn't miss any steps - it's only been 6 months since I installed this. :oops:

 

Regards,

Michelle

Link to comment
Share on other sites

i installed the livesupport contribution, but something went wrong..... i got this :

 

Parse error: parse error, unexpected T_VARIABLE, expecting ']' in /usr/home/erodvdzaak/www/html/catalog/includes/application_top.php on line 205

 

Warning: main(DIR_WS_LANGUAGES/FILENAME_DEFAULT) [function.main]: failed to create stream: No such file or directory in /usr/home/erodvdzaak/www/html/catalog/default.php on line 33

 

Fatal error: main() [function.main]: Failed opening required 'DIR_WS_LANGUAGES/FILENAME_DEFAULT' (include_path='.:/usr/local/lib/php') in /usr/home/erodvdzaak/www/html/catalog/default.php on line 33

 

when i remove the following line :

 

define('FILENAME_LIVE_SUPPORT', "java script:void(0);" onclick="window.open('live_support.php','livesupport','width=280,height=280') ;

 

from /catalog/includes/application_top.php

 

it is oke again, but does'nt work......

 

anyone has a clue ???

 

thx ...

Link to comment
Share on other sites

Should be:

 

define('FILENAME_LIVE_SUPPORT', "java script:void(0);" onclick="window.open('live_support.php','livesupport','width=280,height=280') ");

 

Not:

 

define('FILENAME_LIVE_SUPPORT', "java script:void(0);" onclick="window.open('live_support.php','livesupport','width=280,height=280') ;

 

Notice the ") before the ;

 

Try that - that should fix the problem.

Link to comment
Share on other sites

Only one window go up and down all the time, but I have many computers so no problem.

 

But is it one way i can remove the window come up all the time in admin, every time it refrech.

 

The window come up 1 sec but then go away again. Not the little window, with text but one bigger.

 

We have also install order processing module, our site begin be very good.

 

I like this, and sales go up, up uppp. :) 8000USD in juni.

 

I love this work..

Link to comment
Share on other sites

Okay ! this works............ thanx !!!

 

Should be:

 

define('FILENAME_LIVE_SUPPORT', "java script:void(0);" onclick="window.open('live_support.php','livesupport','width=280,height=280') ");

 

Not:

 

define('FILENAME_LIVE_SUPPORT', "java script:void(0);" onclick="window.open('live_support.php','livesupport','width=280,height=280') ;

 

Notice the ") before the ;

 

Try that - that should fix the problem.

 

 

grtz.

 

Hans

Link to comment
Share on other sites

It doesnt work. i get page does not exist after you enter your name in the live support chat window

 

do i need to change this?

 

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

Link to comment
Share on other sites

Make sure you have this code at the top of every page:

 

require('includes/application_top.php');

 

It doesnt work.  i get page does not exist after you enter your name in the live support chat window

 

do i need to change this?

 

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

Link to comment
Share on other sites

Just woke up - sorry...Long night. As I think about this more...depending on how you have your DIR_WS_CATALOG set - you might really only have to change the:

 

require('includes/application_top.php');

 

to:

 

require('/includes/application_top.php');

 

You'll have to see which way works for you. But it's most likely one of these things.

 

Regards,

Michelle

 

If you have your catalog in the catalog directory, it would be this:

 

require('catalogs/includes/application_top.php');

 

instead of:

 

require('includes/application_top.php');

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...