Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: gzooby on August 14, 2013, 02:47:25 PM

Title: Change GAD email font style colour and size
Post by: gzooby on August 14, 2013, 02:47:25 PM
Hi everyone!
Client needs to establish itīs own format to the response emails in GAD. They want to establish the font style, size and colour. They donīt need the possibility to change it thorugh GAD itself, but to establish it somewhere so all agents work with the correct format.
Is this possible?
Thanks!!! ;D
Title: Re: Change GAD email font style colour and size
Post by: Kubig on August 14, 2013, 03:09:35 PM
And what about "default-font-size" and "default-font-style" options on GAD application object? I do not know how you deploy Genesys, if you do not read documents - these options are correctly described in deployment guide for GAD.
Title: Re: Change GAD email font style colour and size
Post by: gzooby on August 14, 2013, 04:34:13 PM
Thanks!
Im very new to Genesys!

i will try these options you mencioned!
:D
Title: Re: Change GAD email font style colour and size
Post by: gzooby on August 15, 2013, 02:19:14 PM
Hi,

I tried teh options you mentioned, but, is it possible to add new font sizes and font styles??
I tried putting font-unit-bases option in true and adding new font sizes in the font-sizes option, but they doesnīt appear in GAD. The thing is, I have to put a default font size that is not in the standard list of values.

Thank you for your help
Title: Re: Change GAD email font style colour and size
Post by: cavagnaro on August 15, 2013, 03:14:13 PM
No. You can't
What you can do is some external web app and then send it as signature on the email. No straight way to do it on GAD nor IWS.
Title: Re: Change GAD email font style colour and size
Post by: gzooby on August 15, 2013, 04:13:25 PM
Ok! So I canīt add font sizes or styles.  :-[
Is there an option to establish default colour?
Thank you !
Title: Re: Change GAD email font style colour and size
Post by: gzooby on August 15, 2013, 08:18:08 PM
Hi ,

I was able to add new font stlyes and change font sizes. I have also been able to change default font colour. As soon as I finish, I will post it here ;D

Thanks!
Title: Re: Change GAD email font style colour and size
Post by: cavagnaro on August 15, 2013, 11:29:41 PM
??? lol...how? works on agents PCs?
Title: Re: Change GAD email font style colour and size
Post by: gzooby on August 16, 2013, 01:19:37 PM
Hi everyone!

My objective was to add new font style, font size and change the default colour for agent email interaction in GAD. Fot these, I had to modify [b]editor.jsp[/b] file, in tools directory in GAD installation folder.

So what you have to do is the following:

For adding new font style:

There is a part where the font styles are added (aprox line 514). Here I add my line:

[b]this.addFontName("Calibri","Calibri")[/b]

So here, in the drop down will appear Calibri ready to use. Then you can edit default_font_style in CM and put "calibri"

For adding a new size:

In this case I modified size "12" to "11"

[b]Aprox in line 435, instead of putting "case 12 return 3" you have to put "case 11 return 3 " and then aprox in line 523 you have to change "this.addFontSize(12,3)" for "this.addFontSize(11,3)"[/b]

So now in your drop down you will have 11 instead of 12, and u can also edit the default_font_size" and put 11.

For changing default font colour:

[b]Aprox in line 499 you have to change line "style.color = this.customStyle.color;" for style.color = "#00FF00" (your colour code);[/b]

And thatīs all, hope it works for you too! ;D


Title: Re: Change GAD email font style colour and size
Post by: alina108 on August 16, 2013, 02:32:55 PM
thank you
Title: Re: Change GAD email font style colour and size
Post by: gzooby on August 16, 2013, 02:39:31 PM
Ur welcome Alina! :)
Title: Re: Change GAD email font style colour and size
Post by: cavagnaro on August 16, 2013, 02:40:48 PM
As warning: If the user PC doesn't has that "Calibri" font it won't work. That is the problem of using non standard fonts. If I'm not wrong Calibri comes with MSOffice.
Title: Re: Change GAD email font style colour and size
Post by: gzooby on August 16, 2013, 02:42:46 PM
Yes, probably, so if itīs an non standard font you will have to add it manually to work.
Thanks ;)
Title: Re: Change GAD email font style colour and size
Post by: gzooby on August 26, 2013, 06:42:08 PM
You have to change line 552 editor.jsp for these line

[b]text = "<SPAN><FONT color=#0000FF face='"+this.defaultFontName+"' size='"+this.conversionSize1To7(this.defaultFontSize,this.conversionStringToSize(this.customStyle.fontSize))+"' ><p style=font-size:11.0pt>" + text + "</p></FONT></SPAN>";[/b]

Here you set the color you want for default, and the font size ypu want for default. If you dont add this line, and you write your email, you will see it correctly in the editor, but the receiver will see the email without the properties you set (size and colour)

Thanks, >:D