Previous Contents Index DocHome Next |
iPlanet Messenger Express 5.0 Customization Guide |
Chapter 3 Customizing User Interface Features
This chapter describes how to customize iPlanet Messenger Express 5.0 user interface features.This chapter contains these sections:
Modifying the Main Function Tabs
Modifying the MailBox Tool Bar
Modifying the Message List Window
Modifying the Message Display Window
Modifying the Message Tool Bar
Modifying the Message Composition Window
Modifying the Main Function Tabs
This section describes how to modify the Messenger Express main function tabs shown in Figure 3-1 and gives examples of files edited to make the modifications.
Figure 3-1    Messenger Express Main Function Tabs, With Default Labels ![]()
Modifications You Can Make to the Main Function Tabs
You can perform the following modifications on the Messenger Express main function tabs:
To Modify the Main Function Tabs
Edit the appropriate files as follows:
For tab layout, edit the toolFrame() function in the main.js file.
For text used in the default tab labels, in the lang/i18n.js file, edit the i18n[] values for folders, message, and options in the // Tabs section, and help and logout in the // Tool Bars section.
For text of the default folder name labels (including the initially displayed inbox tab label), edit the fldr[] values in the // Localized folder names section in the lang/i18n.js file.
- Functionally, the tabs are constructed by toolFrame() with a call to the function tab() in the main.js file, specifying the text of the tab label to display, a flag for whether it is currently selected, and the function to call when the tab is clicked.
- The following functions, located in main.js, handle the default tabs:
ExampleMain Function Tabs Modifications
This example, shown in Figure 3-2, moves the Options tab to the right side, and changes the text of its tab label to "Preferences."
Figure 3-2    Example Main Function Tabs Modifications ![]()
Code Example 3-1 and Code Example 3-2 show the necessary changes. The files to edit are main.js (layout) and en/i18n.js (tab labels).
Code Example 3-2    Altering Function Tabs Labels (en/i18n.js) // Tabs i18n['folders'] = 'Folders' i18n['message'] = 'Message' i18n['options'] = 'Preferences'
Modifying the MailBox Tool Bar
This section describes how to modify the Messenger Express mailbox tool bar shown in Figure 3-3 gives examples of files edited to make the modifications.
Figure 3-3    Messenger Express Mailbox Tool Bar ![]()
Modifications You Can Make to the Mailbox Tool Bar
Your can perform the following modifications on the Messenger Express mailbox tool bar:
To Modify the Mailbox Tool Bar
Edit the appropriate files as follows:
To customize the layout relative to the rest of the page, edit the toolFrame() function in the main.js file.
To customize the layout within the tool bar and the associated graphics, edit the getToolbar() function in the mbox_fs.html file.
To customize the words associated with the graphics in the Tool Bar, edit the i18n[] values get mail, compose, search, new search, file selected message, delete, undelete, and expunge in the lang/i18n.js file.
- Functionally, toolFrame() in main.js calls getToolbar() in mbox_fs.html to get the HTML code to write out to the page.
- The getToolbar() function in mbox_fs.html assembles the code and assigns the functions to the graphics by calling toolbar() in main.js, which takes care of items such as colors and text-only versions.
- The getToolbar() function in mbox_fs.html also calls folderSelection() in main.js to generate the drop-down folder list.
- The functions assigned by getToolbar() in mbox_fs.html that handle the tool clicks are:
ExampleMailbox Tool Bar Modifications
This example, shown in Figure 3-4, makes Search the first tool, and changes the text of the get mail tool to "Get Messages."
Figure 3-4    Example Mailbox Tool Bar Modifications ![]()
Code Example 3-3 and Code Example 3-4 show the necessary changes. The files to edit are mbox_fs.html (layout) and en/i18n.js (wording).
Code Example 3-4    Altering Tool Bar Wording (en/i18n.js) // Tool Bars .... i18n['get mail'] = 'Get Messages'
Modifying the Message List Window
This section describes how to modify the Messenger Express message list window shown in Figure 3-5 gives examples of files edited to make the modifications.
Figure 3-5    Messenger Express Message List Window ![]()
Modifications You Can Make to the Message List Window
You can perform the following modifications to the Messenger Express message list window:
To Modify the Message List Window
Edit the appropriate files as follows:
To customize how the message list appears, edit the listFrameHTML() function in the mbox_fs.html file.
To customize the default column heading wording, edit the i18n[] values for search results, date, from, to, size, and subject in the lang/i18n.js file.
To customize the wording of the "Collect External Mail" link, edit i18n['collect long] in the lang/i18n.js file.
To customize the order in which messages are listed, edit the defaults[] values near the top of the main.js file.
ExampleMessage List Window Modifications
This example, shown in Figure 3-6, makes messages by default list "last-in" first, and changes the text for collecting external mail.
Figure 3-6    Example Message List Window Modifications ![]()
Code Example 3-5 and Code Example 3-6 show the necessary changes. The files to edit are main.js and en/i18n.js.
Code Example 3-5    Altering List Window Layout (main.js) var defaults = new Array( ..... 'meSortOrder', 'last', ..... )
Code Example 3-6    Altering List Window Wording (en/i18n.js) // POP3 Collection .... i18n['collect long'] = 'Get Messages From Another Server'
Modifying the Message Display Window
This section describes how to modify the Messenger Express message display window shown in Figure 3-7 gives examples of files edited to make the modifications.
Figure 3-7    Messenger Express Message Display Window ![]()
Modifications You Can Make to the Message Display Window
You can perform the following modifications to the Messenger Express message display window:
To Modify the Message Display Window
Edit the appropriate files as follows:
To customize how the message appears, edit the listFrameHTML(doc) function in the msg_fs.html file.
To customize the default wording, edit the i18n[] values under
// Message Headers and // Message in the lang/i18n.js file.To customize the defaults of how the messages are displayed (wordwrap and so on), edit the defaults[] values near the top of the main.js file.
ExampleMessage Display Window Modifications
This example, shown in Figure 3-8, moves "Subject" before "To" rather than after "To."
Figure 3-8    Example Message Display Window Modifications ![]()
Code Example 3-7 shows the necessary changes. The file to edit is msg_fs.html.
Code Example 3-7    Altering Message Display Window Layout function listFrameHTML(doc) { .... s += header('from') + header('date') + header('subject')+ header('to') + header('cc') .... }
Modifying the Message Tool Bar
This section describes how to modify the Messenger Express message tool bar shown in Figure 3-9 gives examples of files edited to make the modifications.
Figure 3-9    Messenger Express Message Tool Bar ![]()
Modifications You Can Make to the Message Tool Bar
You can perform the following modifications to the Messenger Express message tool bar.
Change the layout of the tool bar relative to the rest of the page
To Modify the Message Tool Bar
Edit the appropriate files as follows:
To customize the layout relative to the rest of the page, edit the toolFrame() function in the main.js file.
To customize the layout within the tool bar and the associated graphics, edit the getToolbar() function in the msg_fs.html file.
To customize the words associated with the graphics in the Tool Bar, edit the i18n[] values compose, reply, reply all, forward, file msg, delete, undelete, previous, and next in the lang/i18n.js file.
- Functionally, getToolbar() in msg_fs.html assembles the code and assigns the functions to the graphics by calling toolbar() in main.js, which takes care of items such as colors and text-only versions.
- The getToolbar() function in msg_fs.html also calls folderSelection() in main.js to generate the drop-down folder list.
- The functions assigned by getToolbar() in msg_fs.html that handle the tool clicks are:
ExampleMessage Tool Bar Modifications
This example, shown in Figure 3-10, moves Compose divided to the right side and unabbreviates the text of "Prev" to "Previous."
Figure 3-10    Example Message Tool Bar Modifications ![]()
Code Example 3-8 and Code Example 3-9 show the necessary changes. The files to edit are msg_fs.html and en/i18n.js.
Code Example 3-9    Altering Message Tool Bar Text (en/i18n.js) // Tool Bars .... i18n['previous'] = 'Previous'
Modifying the Message Composition Window
This section describes how to modify the Messenger Express message composition window shown in Figure 3-11 gives examples of files edited to make the modifications.
Figure 3-11    Messenger Express Message Composition Window ![]()
Modifications You Can Make to the Message Composition Window
You can perform the following modifications to the Messenger Express message composition window:
To Modify the Message Composition Window
Edit the appropriate files as follows:
To customize the tool bar, edit the getToolbar() function in the comp_fs.html file.
To customize anything else in the window, edit the compFrameHTML() function in the comp_fs.html file.
To customize any of the wording, edit the values under // Message Composition and // Tool Bars in the lang/i18n.js file.
- Functionally, getToolbar() in comp_fs.html assembles the code and assigns the functions to the graphics by calling toolbar() in main.js, which takes care of things like colors and text-only versions. The compFrameHTML() function in comp_fs.html generates the 'To/Cc/Bcc' control area by calling i18n_compose_controls() in lang/i18n.js.
- The functions assigned by getToolbar() and compFrameHTML() in comp_fs.html are:
ExampleMessage Composition Window Modifications
This example, shown in Figure 3-12, moves the Address tool between divider and Help, and changes the "Add Recipient" wording to "Send To."
Figure 3-12    Example Message Composition Window Modifications ![]()
Code Example 3-10 and Code Example 3-11 show the necessary changes. The files to edit are comp_fs.html and en/i18n.js.
Code Example 3-11    Altering Composition Window Wording (en/i18n.js) // Message Composition .... i18n['recipient'] = 'Send To'
Modifying the Address (Directory Lookup) Window
This section describes how to modify the Messenger Express address (directory lookup) window shown in Figure 3-13 gives examples of files edited to make the modifications.
Figure 3-13    Messenger Express Address (Directory Lookup) Window ![]()
Modifications You Can Make to the Address (Directory Lookup) Window
You can perform the following modifications to the Messenger Express address (directory lookup) window:
To Modify the Address (Directory Lookup) Window
Edit the appropriate files as follows:
To customize overall window appearance, edit the searchFrameHTML(), listFrameHTML(), and addFrameHTML() functions in the ldap_fs.html file.
To customize the search controls and their wording, edit i18n_ldap_controls() in the lang/i18n.js file.
To customize other wording, edit the // LDAP Lookup values in the lang/i18n.js file.
ExampleAddress (Directory Lookup) Window Modifications
This example, shown in Figure 3-14, changes "Search the local directory" to "Search the iPlanet directory."
Figure 3-14    Example Address (Directory Lookup) Window Modifications ![]()
Code Example 3-12 shows the necessary changes. The file to edit is en/i18n.js.
Modifying the Options Window
This section describes how to modify the Messenger Express options window shown in Figure 3-15 gives examples of files edited to make the modifications.
Figure 3-15    Messenger Express Options Window ![]()
Modifications You Can Make to the Options Window
You can perform the following modifications to the Messenger Express options window:
ExampleOptions Window Modifications
This example, shown in Figure 3-16, moves "Vacation Message" between "Personal Information" and "Password," and changes the Password form to "Mozilla Super Speedy Web Mail" as the text.
Figure 3-16    Example Options Window Modifications ![]()
Code Example 3-13 and Code Example 3-14 show the necessary changes. The files to edit are opts_fs.html and en/i18n.js.
Code Example 3-14    Altering Options Window Text (en/i18n.js) // Options .... i18n['passwd exp'] = 'Use this form to change the password you use to access Mozilla Super Speedy Web Mail.'
Modifying the Folders Window
This section describes how to modify the Messenger Express folders window shown in Figure 3-17 gives examples of files edited to make the modifications.
Figure 3-17    Messenger Express Folders Window ![]()
Modifications You Can Make to the Folders Window
You can perform the following modifications to the Messenger Express folders window:
Edit the appropriate files as follows:
To customize the folders toolbar, edit the getToolbar() function in the fldr_fs.html file.
To customize the rest of the window, edit the listFrameHTML() function in the fldr_fs.html file.
To customize the wording of the "Collect External Mail" hyperlink, edit i18n['collect long] in the lang/i18n.js file.
To customize any other wording, edit the // Folders section in lang/i18n.js.
ExampleFolders Window Modifications
This example, shown in Figure 3-18, moves "Update" and "Compose" tools divided off to the end of the toolbar.
Figure 3-18    Example Folders Window Modifications ![]()
Code Example 3-15 shows the necessary changes. The file to edit is fldr_fs.html.
Previous Contents Index DocHome Next
Copyright © 2000 Sun Microsystems, Inc. Some preexisting portions Copyright © 2000 Netscape Communications Corp. All rights reserved.
Last Updated September 29, 2000