Results 1 to 2 of 2

Thread: Mini CRM solution - show notes field in email tooltip popup

Threaded View

  1. #1
    Join Date
    Nov 2006
    Location
    Vienna, Austria (Europe)
    Posts
    59
    Rep Power
    8

    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
    http://www.zimbra.com/forums/install...-question.html

    Howto change default duration meeting
    http://www.zimbra.com/forums/adminis...n-meeting.html
    Last edited by easytouch; 11-16-2007 at 05:16 PM.

Similar Threads

  1. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  2. upgrade to 4.0.3 antispam does'nt work
    By lucanannipieri in forum Administrators
    Replies: 14
    Last Post: 11-07-2006, 02:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •