Creating and Using Custom Views

From MercuryWiki

Jump to: navigation, search

Contents

Mercury 2.0 Unstable

  1. Open View preferences (Preferences > View Preferences)
  2. Under View preferences, select the view for which you wish to create a custom view (e.g. Contacts in list, Chat Information, Event Box, Instant Messages)
  3. Click the Edit Custom Views button
  4. Click the + button , enter the name for your custom view and click OK
  5. Select the recently named view from the dropdown box
  6. Enter the custom HTML code for your view in the text area (Tip: copy the HTML code from a view which resembles what you would like to have from the pre-installed view in the Example Views tab, edit it to fit your needs and make sure that the first line is not blank)
  7. Click OK to close the Custom view dialog when you're satisfied with the custom view you've created (you can see a preview in the area below)
  8. If you wish to apply this custom view to specific contacts, or yourself only:
    1. Click the + button in the "Change view preferences for" section and add the contact you wish to apply it to (only if contact has not yet been added)
    2. Select the contact you wish to apply this to from the dropdown box
  9. Select the custom view you created from the list on the right
  10. Click OK to close the View Preferences window

The view you created should now be used in Mercury.

Mercury 1.9 Stable

  1. Open View settings (Options > View settings)
  2. Under View settings, select the view for which you wish to create a custom view (e.g. Contacts in list, Chat Information, Event Box, Instant Messages)
  3. Click the Edit Custom Views button
  4. Click the + button , enter the name for your custom view and click OK
  5. Select the recently named view from the dropdown box
  6. Enter the custom HTML code for your view in the text area (Tip: copy the HTML code from a view which resembles what you would like to have from the pre-installed view in the Example Views tab, edit it to fit your needs and make sure that the first line is not blank)
  7. Click OK to close the Custom view dialog when you're satisfied with the custom view you've created (you can see a preview in the area below)
  8. If you wish to apply this custom view to specific contacts, or yourself only:
    1. Click the + button in the "Contacts" section and add the contact you wish to apply it to (only if contact has not yet been added)
    2. Select the contact you wish to apply this to from the dropdown box
  9. Select the custom view you created from the list on the right
  10. Click OK to close the View Settings window

The view you created should now be used in Mercury.

View options

Instant Message view

There are some custom html tags for the instant message view to give extra options.

FirstOnly, FirstNot

<FirstOnly>%top%</FirstOnly>
%message
will not show the 'XX says' part if the sender of the message is the same as the previous message, the default view 'Continuing' uses this

MeContact, OtherContact:

<MeContact><font color='red'></MeContact>
<OtherContact><font color='blue'></OtherContact>
%message%</font>
will show our messages in red, the messages of other contacts in blue
Personal tools