Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-16-2007, 06:01 PM
Senior Member
 
Posts: 59
Post Mini CRM solution - show notes field in email tooltip popup

This is not mainly a Zimlet, but comes close as the effect plays in the same
category of the User Interface

My users wanted to see the 'notes' field of the
address book in the tooltip popup (if you mouse-over an email address).



The notes field is there, it has just to be activated to the Tooltip popup template.

Here is what I did on the 4.5.9 Open Source Version:

Code:
root# cd /opt/zimbra/tomcat/webapps/zimbra/js/
MAKE A BACKUP
Code:
root# cp ZimbraMail_all.js ZimbraMail_all.js_ORIG
root# cp ZimbraMail_all.js.zgz ZimbraMail_all.js.zgz_ORIG
MAKE A DEVELOPMENT COPY
Code:
root# cp ZimbraMail_all.js ZimbraMail_all.js.
EDIT THE DEVELOPMENT FILE
Code:
# vi ZimbraMail_all.js. (Line 61937)
Search for 3c79
Code:
/3c79 [Return]
You are now around line 61937 and scroll down a bit and you see the fields template definition (look at the end of the following code snippet)

Code:
}else{
_3c79[_i++]="\n";
_3c79[_i++]="\t\t\t";
_3c79[_i++]=AjxTemplate.expand("zimbraMail.abook.templates.Contacts#AddEntry",{data:data,field:"fullName"});
_3c79[_i++]="\n";
_3c79[_i++]="\t\t\t";
_3c79[_i++]=AjxTemplate.expand("zimbraMail.abook.templates.Contacts#AddEntry",{data:data,field:"jobTitle"});
_3c79[_i++]="\n";
_3c79[_i++]="\t\t\t";
_3c79[_i++]=AjxTemplate.expand("zimbraMail.abook.templates.Contacts#AddEntry",{data:data,field:"company"});
_3c79[_i++]="\n";
_3c79[_i++]="\t\t\t";
_3c79[_i++]=AjxTemplate.expand("zimbraMail.abook.templates.Contacts#AddEntry",{data:data,field:"mobilePhone"});
_3c79[_i++]="\n";
_3c79[_i++]="\t\t\t";
_3c79[_i++]=AjxTemplate.expand("zimbraMail.abook.templates.Contacts#AddEntry",{data:data,field:"workPhone"});
_3c79[_i++]="\n";
_3c79[_i++]="\t\t\t";
_3c79[_i++]=AjxTemplate.expand("zimbraMail.abook.templates.Contacts#AddEntry",{data:data,field:"homePhone"});
_3c79[_i++]="\n";
_3c79[_i++]="\t\t\t";
_3c79[_i++]=AjxTemplate.expand("zimbraMail.abook.templates.Contacts#AddEntry",{data:data,field:"notes",truncate:500});
_3c79[_i++]="\n";
_3c79[_i++]="\t\t\t";
Here you see, I just added the notes field at the end.

SAVE THE FILE
Code:
:wq [Return]
GZIP THE JAVASCRIPT SOURCE FILE
Code:
root# gzip -S zgz ZimbraMail_all.js.
It will ask to overwrite the ZimbraMail_all.js.zgz file.
We are save, we have the _ORIG copy

Check, and apply the permissions (root to zimbra user)
Code:
root# ls -lab
root# chown zimbra:zimbra ZimbraMail_all.js.zgz
RESTART THE MAMA
Code:
root# su zimbra
zimbra# tomcat restart
zimbra# exit
root# exit
END USER GUIDE
Now the notes field is displayed in the Tooltip Popup if you mouseover an email address.

This gives users a very simple but if used well, a very effective Mini-CRM Tool. Put notes like: "Customer likes fast cars and IWC watches" or
"OPEN INVOICE 5000 USD!!!" and your users will have Mini Call Center feelings
within the Advanced Web-Client.
And if you are using the eMail Client and the Owner of this eMail address looks
over your shoulder - just don't mouse over his email address, and you keep
your internal notes save.

I haven't checked the Security of this. I don't know if an end user could paste dirty HTML and/or Javascript Tricks in the notes field. So use it at your own risk, but if any one of the pro's could have a look at it, it should be quite save.

You can also play with the truncate value to cut only the first 30 characters out. This avoids the tooltip from getting too big (could break the display on very small screens, or inside a browser window put to small dimensions if not used full-screen)

Thanks to these two threads, which learned me how to create the .zgz files.

Rebranding
[SOLVED] Rebranding question

Howto change default duration meeting
http://www.zimbra.com/forums/adminis...n-meeting.html
__________________
Robert Redl
http://easytouch.com

Last edited by easytouch; 11-16-2007 at 06:16 PM..
Reply With Quote
  #2 (permalink)  
Old 02-12-2008, 09:14 AM
New Member
 
Posts: 3
Default Zimlet which adds info for certain users

Hi guys,

Just playin around with Zimbra

I want to make a zimlet which:

1. is only available to certain logins/users (employees)

2. Will show a clear warning if a customer is on the CC list for a particular email when it is selected or opened. This could be a popup, or a change in the layout of the email, a graphic, etc.

How do-able is this?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.