|
Edit text elements in the Live Communication dialogs and popup windows
To edit a text piece contained in a 'Live Communication' dialog or popup window, you need to find out what template is responsible for displaying this text.
In the majority of cases the text piece is part of the template itself. Editing the text which is part of a template is probably the easiest: all you need to do is open the template in a text editor, change the text and save the changes.
For example, we can change the instructions for entering the nickname in the dialog from which visitors start a chat with Sales-n-Stats operator:

'Start communication': Open chat with operator dialog. The text around the input box can be edited directly via the template openChat.inc.
1. Copy the template openChat.inc to the directory of the template set you use for your site.
2. Open the file openChat.inc from that directory and find the following fragment:
<!-- [Nick name enter field] -->
<TABLE>
<TR align="center"><TD class="sns">Please enter your name:</TD></TR>
<TR align="center"><TD class="sns"><INPUT type="text" ID="nick" size="25
" onkeypress="nickName_keyPressed(event)"></TD></TR>
<TR align="center"><TD class="sns">It is optional. You can stay incognito</TD></TR>
</TABLE>
<!-- [/Nick name enter field] -->
3. Edit the text:
<!-- [Nick name enter field] -->
<TABLE>
<TR align="center"><TD class="sns">Pick a screenname:</TD></TR>
<TR align="center"><TD class="sns"><INPUT type="text" ID="nick" size="25
" onkeypress="nickName_keyPressed(event)"></TD></TR>
<TR align="center"><TD class="sns">(optional)</TD></TR>
</TABLE>
<!-- [/Nick name enter field] -->
4. Save the changes.
The result looks like this:

The text around the input box has been edited (Example)
| Note: | Certain text elements cannot be changed by editing the text in a template, as they are received by the template in the form of a parameter value passed from the PHP code (For example, in Sales-n-Stats Live edition the dialog titles Leave a message or Open chat with operator are received in the form of the parameter {Title}). If this is the case with the element you would like to edit, the only way to change the text displayed in your 'Live Communication' dialogs is to modify the PHP code responsible for the element. |
|