Author Topic: Change GAD email font style colour and size  (Read 5934 times)

Offline gzooby

  • Full Member
  • ***
  • Posts: 141
  • Karma: 0
  • Software Engineer at Telefax S.A.
Change GAD email font style colour and size
« 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

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Change GAD email font style colour and size
« Reply #1 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.

Offline gzooby

  • Full Member
  • ***
  • Posts: 141
  • Karma: 0
  • Software Engineer at Telefax S.A.
Re: Change GAD email font style colour and size
« Reply #2 on: August 14, 2013, 04:34:13 PM »
Thanks!
Im very new to Genesys!

i will try these options you mencioned!
:D

Offline gzooby

  • Full Member
  • ***
  • Posts: 141
  • Karma: 0
  • Software Engineer at Telefax S.A.
Re: Change GAD email font style colour and size
« Reply #3 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

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Change GAD email font style colour and size
« Reply #4 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.

Offline gzooby

  • Full Member
  • ***
  • Posts: 141
  • Karma: 0
  • Software Engineer at Telefax S.A.
Re: Change GAD email font style colour and size
« Reply #5 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 !

Offline gzooby

  • Full Member
  • ***
  • Posts: 141
  • Karma: 0
  • Software Engineer at Telefax S.A.
Re: Change GAD email font style colour and size
« Reply #6 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!

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Change GAD email font style colour and size
« Reply #7 on: August 15, 2013, 11:29:41 PM »
??? lol...how? works on agents PCs?

Offline gzooby

  • Full Member
  • ***
  • Posts: 141
  • Karma: 0
  • Software Engineer at Telefax S.A.
Re: Change GAD email font style colour and size
« Reply #8 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



Offline alina108

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Change GAD email font style colour and size
« Reply #9 on: August 16, 2013, 02:32:55 PM »
thank you

Offline gzooby

  • Full Member
  • ***
  • Posts: 141
  • Karma: 0
  • Software Engineer at Telefax S.A.
Re: Change GAD email font style colour and size
« Reply #10 on: August 16, 2013, 02:39:31 PM »
Ur welcome Alina! :)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Change GAD email font style colour and size
« Reply #11 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.

Offline gzooby

  • Full Member
  • ***
  • Posts: 141
  • Karma: 0
  • Software Engineer at Telefax S.A.
Re: Change GAD email font style colour and size
« Reply #12 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 ;)

Offline gzooby

  • Full Member
  • ***
  • Posts: 141
  • Karma: 0
  • Software Engineer at Telefax S.A.
Re: Change GAD email font style colour and size
« Reply #13 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