|
Title: Possible to remove contact email form Post by: unkown 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 Title: Re: Possible to remove contact email form Post by: victor 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 Title: Re: Possible to remove contact email form Post by: unkown 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> Title: Re: Possible to remove contact email form Post by: unkown 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 Title: Re: Possible to remove contact email form Post by: victor on January 16, 2008, 06:17:55 PM you must edit this file:
HCL/templates/Bliss/mod_HelpCenter.tpl Title: Re: Possible to remove contact email form Post by: serdar 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 |