Help Center Live Community
April 17, 2014, 01:49:04 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Possible to remove contact email form  (Read 6193 times)
unkown
Not too much to say...
*
Offline Offline

Posts: 4


« on: January 09, 2008, 11:05:58 AM »

Hi, is it possible to remove the 'contact us' form which sends an email when the operator is offline, so it just provides a link to the forum?

Thanks
Logged
victor
HCL Member
****
Offline Offline

Posts: 266


WWW
« Reply #1 on: January 11, 2008, 06:01:03 PM »

Hi, now I dont have time to test it, but you can try changing this code:

File: hcl/live/divert.php
Code:
    if (isset($_GET['divert'])) {
        if ($_GET['divert'] == 'busy') {
            $GLOBALS['template']->assign('divert', 'busy');
        } elseif ($_GET['divert'] == 'offline') {
            $GLOBALS['template']->assign('divert', 'offline');
            $GLOBALS['template']->assign('departments', $GLOBALS['department']->listall('0'));
        }

try replacing:
$GLOBALS['template']->assign('divert', 'busy')
and
$GLOBALS['template']->assign('divert', 'offline')

with some code to redirect the page

As I told you before, I'm not sure this works, but you can try it and tell us the result
Logged

unkown
Not too much to say...
*
Offline Offline

Posts: 4


« Reply #2 on: January 12, 2008, 02:17:25 AM »

I found if you change live_divert.tpl in the template directory to this, it removes the form. I also noticed theres code in there for osticket. Ill try to get to work aswell. More details about osticket and help center live integration would be good.

Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$conf.company} - Live Support Solution (Powered By Help Center Live)</title>
<meta http-equiv="Content-Type" content="text/html; charset={$lang.charset}" />
<link href="{$conf.url}/templates/{$conf.template}/css/live.css" rel="stylesheet" type="text/css" />
{if $javascript != ""}
<script type="text/javascript" language="javascript" src="{$conf.url}/class/js/include.php?{$javascript}">
</script>
{/if}
</head>
<body{$onload}>
<div align="center">
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="{$conf.url}/templates/{$conf.template}/images/live_top.gif" alt="" /></td>
</tr>
</table>
<br /><br />

{if $divert == 'offline'}
{$lang.operators_offline}
{elseif $divert == 'busy'}
{$lang.connection_failure}
<br /><br />
{$lang.operators_busy}
<br /><br />
{elseif $divert == 'email_sent'}
{$lang.email_sent}
{else}
{$lang.error}
{/if}

{if $conf.modules.osTicket.active == true}
<b><a href="{$conf.url}ticket/module.php?module=osTicket&file=/modules/osTicket/open.php" target="_blank">{$lang.use_tickets}</a></b>
{if $conf.forum_show == true}
<br/><br/><b><a href="{$conf.forum_url}" target="_blank">{$lang.forums}</a></b>
{/if}
{else}
{if $conf.forum_show == true}
<b><a href="{$conf.forum_url}" target="_blank">{$lang.forums}</a></b><br/><br/>
{/if}
<form action="{$_SERVER.PHP_SELF}" method="post">
<table cellspacing="0" cellpadding="5" class="border">
<tr class="dark">
</tr>
</table>
</form>
{/if}
</div>
</body>
</html>
Logged
unkown
Not too much to say...
*
Offline Offline

Posts: 4


« Reply #3 on: January 12, 2008, 02:40:40 AM »

Now im trying to remove the contact us form on the main page, but can't find the file for it. Can some one show me into the direction?

THanks
Logged
victor
HCL Member
****
Offline Offline

Posts: 266


WWW
« Reply #4 on: January 16, 2008, 06:17:55 PM »

you must edit this file:

HCL/templates/Bliss/mod_HelpCenter.tpl
Logged

serdar
Not too much to say...
*
Offline Offline

Posts: 1


« Reply #5 on: April 23, 2008, 04:01:05 PM »

hello i dont speak english,sorry

i want visible=true  the contact us form on the main page when the operator is offline

         visible=false  the contact us form on the main page when the operator is online

thanks my friends..i am waiting answer.

Serdar Şahin
« Last Edit: April 23, 2008, 10:45:21 PM by serdar » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.166 seconds with 19 queries.

Google visited last this page April 09, 2014, 04:36:45 PM