Welcome, Guest
Please Login or Register.  Lost Password?

How can I add Phone to the leave a message Box
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: How can I add Phone to the leave a message Box
#683
How can I add Phone to the leave a message Box 2 Years ago Karma: 0
I need to add a phone field when nobody is online to answer the chat (leave a message box).
I know that that is possible I manage to add the field on
components/com_livechat/views/popup/tmpl/default.php
the new field is showing on the popup screen
also I changed the /components/com_livechat/models/popup.php
and the field appears on the email I receive, but I cannot make the actual phone value on this email.

Can some one point me in the right direction on how to do this?

I'm using 3.7.4
Thanks in advance
Cesar
cesarscav
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1300
Re: How can I add Phone to the leave a message Box 1 Year, 4 Months ago Karma: 0
I don't know how to do this, but i thought some might be interested in just how csesar added another field to the pop up window. go to components/com_livechat/views/popup/tmpl/default.php and find the following
<div class="jlc-clr">&nbsp;</div>
<form id="start_chat_form" action="" method="get" onsubmit="return startChatSession();">
<span class="jlc-name-wrapper">
<?php echo JText::_('ENTER_YOUR_NAME_BELOW'); ?>
<br />
<input type="text" id="chat_name" name="chat_name" value="<?php echo $this->default_name; ?>" maxlength="50" />
<br />
</span>
<div class="jlc-clr jlc-margbot5">&nbsp;</div>
<div class="jlc-clr">&nbsp;</div>

Duplicate it and change the names to what you need it to say.
For Expample:

<form id="start_chat_form" action="" method="get" onsubmit="return startChatSession();">
<span class="jlc-name-wrapper">
<?php echo JText::_('your email'); ?>
<br />
<input type="text" id="chat_email" name="chat_email" value="<?php echo $this->default_email; ?>" maxlength="50" />
<br />
</span>
<div class="jlc-clr jlc-margbot5">&nbsp;</div>

I am running into another problem though. When i add this field the most of the submit button gets cut off. Now i have to figure out how to change that.
webmaster66
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/09/13 08:11 By webmaster66.
The administrator has disabled public write access.
 
#1303
Re: How can I add Phone to the leave a message Box 1 Year, 4 Months ago Karma: 0
Okay fond a solution to the submit "start button" being cut off
Find the following code in the components/com_livechat/views/popup/tmpl/default.php

<span class="jlc-right start-btn-wrapper">
<button id="start_button" name="start_button"><?php echo JText::_('START'); ?></button>
</span>

Then cut and past that code above the this section of code
<span class="jlc-name-wrapper">
<?php echo JText::_('ENTER_YOUR_NAME_BELOW'); ?>

that will move the start button above the other fields. i think it looks better up there anyway.

check out the example at
residential.veracitynetworks.com/
webmaster66
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/09/13 10:29 By webmaster66.
The administrator has disabled public write access.
 
#1305
Re: How can I add Phone to the leave a message Box 1 Year, 4 Months ago Karma: 0
Well that added a field, but it presents another problem. Getting the info typed in the new field to show up when the chat session starts.

If anyone figures that out please let me know.
webmaster66
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1