Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
dweyer Offline
Member
 
Posts: 59
Join Date: Apr 2008
Help with custom Phrase - 05-07-2008, 11:22 AM

Hi There,

I have create a new phrase and added it to the following templates by adding <{$language[disclaimer]}> in the relevant places:
email_autoresponder
email_staffreply

and all works great. I then added it to email_staffnewticket but this time no joy, the custom phrase will not show up. I have included the exact text from the template and would appreciate it if someone could let me know if I have added it to the incorrect place or something:

Code:
<{if $ishtml == true}><font face="Verdana, Arial, Helvetica" size="2"><{$contentshtml}><{else}><{$contentstext}>

<{$language[disclaimer]}>
<{/if}>
Thanks
Dill

Last edited by dweyer; 05-07-2008 at 11:25 AM.
   
Reply With Quote
  (#2) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,852
Join Date: Aug 2006
Location: Mumbai, India
05-07-2008, 06:21 PM

In Kayako somehow not all phrases work in emails. Something Kayako needs to look into.



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/
   
Reply With Quote
  (#3) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,445
Join Date: Jan 2006
Location: United Kingdom
05-07-2008, 08:13 PM

If this is the case, please submit a bug report.


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#4) Old
dweyer Offline
Member
 
Posts: 59
Join Date: Apr 2008
05-07-2008, 09:44 PM

Well Jamie, thats why I posted for help as I just wanted to make sure first that it wasnt something I was doing wrong. Would you suggest that in the mean time I just add the text manually to each template rather than use a phrase?
   
Reply With Quote
  (#5) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,852
Join Date: Aug 2006
Location: Mumbai, India
06-07-2008, 10:27 AM

Quote:
Would you suggest that in the mean time I just add the text manually to each template rather than use a phrase?
Yes that would work.



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/
   
Reply With Quote
  (#6) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 670
Join Date: Dec 2007
Location: Idaho
07-07-2008, 08:41 PM

This may be an issue of string caching. I have opened a new bug to track this matter.

Kayako Bug Tracker - Viewing Issue #666 - Template strings apparently sometimes "don't work"

At this time I have virtually no information regarding this defect. Customer comment, especially reproduction steps from a blank desk, would be extremely valuable in recreating this problem.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#7) Old
Dewak Offline
Member
 
Dewak's Avatar
 
Posts: 141
Join Date: Feb 2008
07-07-2008, 09:16 PM

Have you tried rebuilding the cache?

I have personally noticed that when entering custom phrases, the MySQL fetch of the phrases doesn't work properlly, I don't know the reason but you have to go back to the Admin CP and update the phrase. This has worked for me in the past.

Best Regards


Andres Berdugo
Email & MSN: andres[at]dewak.com
Skype: andres.dewak
Dewak: Kayako Development, Consultancy and Support
http://www.dewak.com
   
Reply With Quote
  (#8) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 670
Join Date: Dec 2007
Location: Idaho
07-07-2008, 09:49 PM

Not that kind of cache. Sorry, I probably should have been more detailed.

The string loading mechanism in SS caches strings in blocks according to what a page is known to need beforehand, to keep disk access and ram requirements low. If the custom string isn't added to a block that gets loaded in such a fashion, it wouldn't be available to the dependant template.

Mind you, this is a hypothesis, not a diagnosis, hence the bug tracker entry.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#9) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,852
Join Date: Aug 2006
Location: Mumbai, India
07-07-2008, 11:07 PM

John,
Thanks for the clear explanation. I will keep a track of the bug.



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/
   
Reply With Quote
  (#10) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 670
Join Date: Dec 2007
Location: Idaho
08-07-2008, 09:27 PM

Again, it's a suspicion, not a diagnosis. I am not saying this is certainly the problem, just that this is what my gut says.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#11) Old
Ryan Lederman Offline
Chief Operating Officer
 
Ryan Lederman's Avatar
 
Posts: 855
Join Date: May 2005
Location: Boise, Idaho
22-07-2008, 09:47 PM

I have closed this bug in the tracker. Please refer to the following comment I left there:

===============================
Not a bug; let me describe here how the language/template systems are tied together.

Language strings are stored together in groups. The group boundaries are defined by files. For example, one group of strings would be /locale/en-us/tickets.php. This file would contain all of the strings necessary to render pages related to tickets.

In the source code, groups of language strings are delay-loaded, meaning that they are only loaded when required. The function that does this is called loadLanguageSection().

When individual templates are echoed by the system, only certain language "sections" or "groups" are loaded into the template driver before the templates are processed.

This means that when you add new language strings through the Admin CP, they are not assigned a specific "group" and thus are not loaded by the template driver before displaying the template. This is why the strings appear to "not work."

There is a solution, however:

Grep the source tree for the name of the template that you wish to add a string to. You should see a line such as the following: "echo $template->displayTemplate("name");" Look up above in the file for a line that looks like "$template->loadLanguageSection("foo");" "foo" is the name of the "group" that you want to add your string to in order for it to be loaded up and displayed by the template.

Manually edit the database record that contains the language string. The table name is "swlanguagephrases." Find the record containing your new language string and change the "section" and "code" columns. The "section" must be set to the "group" that the string should reside in, and the "code" needs to be set to "group:id" where group is the name of the group of strings and id is the string's identifier. (e.g. "tickets:mystring"). Your string will now be loaded with the rest of the strings in the same group, and will appear in the template in question.


Ryan Lederman (ryan.lederman ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#12) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,852
Join Date: Aug 2006
Location: Mumbai, India
23-07-2008, 07:42 AM

In that case can you not change this request as a "Feature Request" making the software automatically add the newly added phrases from the Admin CP to the software language groups rather then there being a need to manually editing the software files and database.



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/
   
Reply With Quote
  (#13) Old
Ryan Lederman Offline
Chief Operating Officer
 
Ryan Lederman's Avatar
 
Posts: 855
Join Date: May 2005
Location: Boise, Idaho
23-07-2008, 06:38 PM

I've created a new bug entry: Kayako Bug Tracker - Viewing Issue #685 - Adding language pack entries does not allow for selection of the "section" in which the string should be inserted.. This bug is assigned to the 3.20.02 build.


Ryan Lederman (ryan.lederman ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
Reply

Tags
custom, phrase

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom fields prior to starting chat session needed badly!!!!! Doug I. LiveResponse Desktop Application 3 25-05-2007 02:21 PM
Custom Field Doesn't Work!! caitlyntw SupportSuite, eSupport and LiveResponse 9 06-04-2007 06:16 PM
Custom phrases not working in templates bigc5384 SupportSuite, eSupport and LiveResponse 4 06-11-2006 02:08 PM
Merging Custom Fields in ViewTicket of Staff Mick SupportSuite, eSupport and LiveResponse 0 21-09-2006 05:48 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47