| ||||||||||||
![]() |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
(#1)
|
(#2)
|
| Senior Member Posts: 3,682 Join Date: Aug 2006 Location: Mumbai, India |
21-05-2007, 10:52 AM
Hi Casey, The only method to edit the autoresponder template is by editing the code in each of these templates. Each template is divided into 2 parts - one for HTML mails while other for Text based emails. HTH ![]() Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support Our Skins and Services - http://www.supportskins.com/store/ SupportSkins.com - http://www.supportskins.com/ |
| | |
(#3)
|
(#4)
|
| Senior Member Posts: 3,682 Join Date: Aug 2006 Location: Mumbai, India |
21-05-2007, 11:58 AM
Kayako softwares use the language phrase extensively in their templates. You can either edit these language phrases to change the text in the outgoing emails or you can set the text in the template itself while removing the language phrases. Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support Our Skins and Services - http://www.supportskins.com/store/ SupportSkins.com - http://www.supportskins.com/ |
| | |
(#5)
|
| New Member Posts: 12 Join Date: May 2007 |
21-05-2007, 12:16 PM
Quote:
Haha, yep, clear as mud. I got no idea. | |
| | |
(#6)
|
| Operations Manager Posts: 5,258 Join Date: Jan 2006 Location: United Kingdom |
21-05-2007, 12:27 PM
Hi Casey, The template (which you have already found) is built of of "blocks". For example, take the first bit of the email_autoresponder template: Code: <{if $ishtml == true}><font face="Verdana, Arial, Helvetica" size="2"><{$ticket[fullname]}>,<BR>
<{$language[arintro]}><BR>
Code: <{if $ishtml == true}>
If it is set to HTML (which it is by default) the template code between that block and the: Code: <{else}>
The conditionals work like this; Code: <{if $setting == ssomething}>
// output or do this stuff...
<{else}>
// otherwise, if $setting didn't equal something, do the stuff in this section
<{/if}>
-------------------------------------------------------------------
|
| | |
(#7)
|
| Operations Manager Posts: 5,258 Join Date: Jan 2006 Location: United Kingdom |
21-05-2007, 12:28 PM
The text that makes up a template is pulled from the language tables - each phrase has an entry in the database, and is "pulled" into a template using a variable like: Code: <{$language[arintro]}>
-------------------------------------------------------------------
|
| | |
(#8)
|
| New Member Posts: 12 Join Date: May 2007 |
21-05-2007, 01:52 PM
Ahhh ok, I can see this is going to take a bit to get my head around. So each part of the code refers to one of the language phrases that you can alter from the languages section of the Admin? So essentially, I should create the phrases first for how I want them to appear, then set the code so it refers to each phrase 'code'? I guess it's the templates that are really going to confuse me the most though, I'm a networking tech, not a website developer. Haha. Thanks for the help, this has given me the first steps in the right direction... I hope. |
| | |
(#9)
|
| Operations Manager Posts: 5,258 Join Date: Jan 2006 Location: United Kingdom |
21-05-2007, 02:04 PM
Yes you can create your own phrases or you can simply type directly into the template (the shortcut way of doing things). The template engine is based on Template Lite - you will find the syntax documentation useful (for those IF bits etc.): http://templatelite.sourceforge.net/ -------------------------------------------------------------------
|
| | |
(#10)
|
| New Member Posts: 12 Join Date: May 2007 | Back on it -
11-06-2007, 11:51 AM
Hey Jamie, I've just had a chance to get back on to this, and I'm still having some problems. I understand how the $language system works now with the phrases, and can see how it's structured, but I'm still a bit lost on the rest. I am trying to remove specific parts of the Autoresponder for specific groups. The departments that I have set up are actually separate entities within our company, so we are handling customer contact differently in each regard. So to give an idea of what I want to do, here is the standard Autoresponder message: Casey Clark, Your Ticket has been received and a member of our staff will review it and reply accordingly. Listed below are details of this Ticket. Please make sure the Ticket ID remains in the subject at all times. Ticket ID: 902 Subject: Testing autoresponder 2 Department: Call Union Priority: New Status: Open You can check the status of or reply to this Ticket online at: http://coms.helpserve.com/ Please do let us know if we can assist you any further, VoIP Support Call Union Support Team E: support@callunion.com W: www.callunion.com ------------- I'd also like to know if you can fix the way the signature displays, as that should display in 3 lines, not 1, but that's another issue. So, in my attempts to change the template, I have removed the following: Code:
<{if $ishtml == true}><font face="Verdana, Arial, Helvetica" size="2"><{$ticket[fullname]}>,<BR>
<{$language[arintro]}><BR>
<BR>
<b><{$language[articketid]}></b><{$ticket[fticketid]}><BR>
<b><{$language[arsubject]}></b><{$ticket[subject]}><BR>
<b><{$language[ardepartment]}></b><{$ticket[department]}><BR>
<b><{$language[arpriority]}></b><{$ticket[priority]}><BR>
<b><{$language[arstatus]}></b><{$ticket[status]}><BR>
<BR>
<{$language[arsubfooter]}><a href="<{$swiftpath}>index.php?_m=tickets&_a=viewticket&ticketid=<{$ticket[ticketid]}>"><{$swiftpath}></a><BR><{if $settings[u_sendpw] == 1 && $user[userpasswordtxt] != "" && $user[loginapi_moduleid] == 1}>
<b><{$language[aremail]}></b><{$ticket[email]}><BR>
<b><{$language[arpassword]}></b><{$user[userpasswordtxt]}><BR>
<{/if}>
<BR><{if $newscount != 0}>
<{foreach key=newskey value=newsitem from=$news}>
<b><{$newsitem[index]}>.</b> <a href="<{$swiftpath}>index.php?_m=news&_a=viewnews&newsid=<{$newsitem[newsid]}>&group=<{$ticket[tgroup]}>"><{$newsitem[subject]}></a><BR>
<{/foreach}>
<BR>
<{/if}>
<{$language[arfooter]}><BR>
<BR>
<{$settings[general_companyname]}><{if $queuesignature != ""}><BR><{$queuesignature}><{/if}></font><{else}><{$ticket[fullname]}>,
<{$language[arintro]}>
<{$language[articketid]}><{$ticket[fticketid]}>
<{$language[arsubject]}><{$ticket[subject]}>
<{$language[ardepartment]}><{$ticket[department]}>
<{$language[arpriority]}><{$ticket[priority]}>
<{$language[arstatus]}><{$ticket[status]}>
<{$language[arsubfooter]}><{$swiftpath}>index.php?_m=tickets&_a=viewticket&ticketid=<{$ticket[ticketid]}><{if $settings[u_sendpw] == 1 && $user[userpasswordtxt] != "" && $user[loginapi_moduleid] == 1}>
<{$language[aremail]}><{$ticket[email]}>
<{$language[arpassword]}><{$user[userpasswordtxt]}>
<{/if}>
<{if $newscount != 0}>
<{foreach key=newskey value=newsitem from=$news}>
<{$newsitem[index]}>. <{$newsitem[subject]}>
<{$swiftpath}>index.php?_m=news&_a=viewnews&newsid=<{$newsitem[newsid]}>&group=<{$ticket[tgroup]}>
<{/foreach}>
<{/if}>
<{$language[arfooter]}>
<{$settings[general_companyname]}><{if $queuesignature != ""}>
<{$queuesignature}><{/if}><{/if}>
Code breaks my brain. Thanks for the help! |
| | |
(#11)
|
| Operations Manager Posts: 5,258 Join Date: Jan 2006 Location: United Kingdom |
21-06-2007, 03:42 PM
You need to remove: Code: <{$language[arsubfooter]}><{$swiftpath}>index.php?_m=tickets&_a=viewticket&ticketid=<{$ticket[ticketid]}><{if $settings[u_sendpw] == 1 && $user[userpasswordtxt] != "" && $user[loginapi_moduleid] == 1}>
<{$language[aremail]}><{$ticket[email]}>
<{$language[arpassword]}><{$user[userpasswordtxt]}>
<{/if}>
Code: <{$language[arsubfooter]}><{$swiftpath}>index.php?_m=tickets&_a=viewticket&ticketid=<{$ticket[ticketid]}><{if $settings[u_sendpw] == 1 && $user[userpasswordtxt] != "" && $user[loginapi_moduleid] == 1}>
<{$language[aremail]}><{$ticket[email]}>
<{$language[arpassword]}><{$user[userpasswordtxt]}>
Code: <{/if}>
-------------------------------------------------------------------
|
| | |
![]() |
| Tags |
| autoresponder, customisation, newbies |
| Thread Tools | Search this Thread |
| Display Modes | |
| |