Results 1 to 5 of 5

Thread: Zimbra OSS: Adding a logo

  1. #1
    jooray is offline Active Member
    Join Date
    Jun 2007
    Posts
    34
    Rep Power
    7

    Default Zimbra OSS: Adding a logo

    Hello,

    I would like to add our company's logo to the Zimbra OSS. I don't want to remove original Zimbra logo (I think when I do this change I have to use powered by Zimbra or Zimbra inside instead). Anyways, when I looked at base.html or html for the theme I would like to change, I see, that the part with logo is injected with some kind of magic. What I would like to do is to add my logo to the right of the Zimbra logo. Any idea on how to do this?

    I understand basic HTML, but I feel I have to change some other part, not directly the theme itself.

    Juraj.
    Last edited by mmorse; 09-19-2007 at 11:21 AM.

  2. #2
    jooray is offline Active Member
    Join Date
    Jun 2007
    Posts
    34
    Rep Power
    7

    Default one step further

    I found /opt/zimbra/tomcat/webapps/zimbra/js/ZimbraMail_all.js (which seems to be somehow obfuscated and shortened version of javascripts in zimbraMail directory). I found a way to do changes to it. I found this snippet of code and changed it like this:

    Code:
    html[i++]="<table border=0 cellpadding=0 cellspacing=0 style='width:100%;height:100%'>";
    html[i++]="<tr><td align='center' valign='middle'>";
    html[i++]="<a href='";
    html[i++]=_3bdc;
    html[i++]="' target='_blank'><div class='";
    html[i++]=AjxImg.getClassForImage("AppBanner");
    html[i++]="'></div></a></td>";
    //html[i++]="<td align='center' valign='middle'><div><a href='http://www.ourcompany.com' target='_blank'><img src='/zimbra/skins/_base/logos/ourcompany/ourcompany.png' border='0'></a></div></td>";
    html[i++]="</tr></table>";
    Now the search box seams to interlap with my logo. Any idea how DWT
    finds out, that it should put "width:178px" to the container? It does not seem to be hardcoded in the javascript, but somehow it still is not working as I expect. Or how do I move search box more to the right? Does DWT guess width of components somehow?

    Juraj.

  3. #3
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    20

    Default

    Ok easiest way-ignoring the url pointing to zimbra.com EDIT: (because it has to stay that way-read the licenses-the 'zimbra inside logo' should actually be zimbra.com/powered if you can)

    go to /opt/zimbra/tomcat/webapps/zimbra/skins/_base

    by modifying the _base folder you should simplify it to one or two steps so that you don't have to insert into every skin
    make new images for the LoginBanner.png & the AppBanner.png that contain your logo & the zimbra powered logo
    keep them roughly the same pixel size (login banner's like 150px) transparent etc
    see this to understand what I'm talking about: Customizing Themes and Adding Zimbra Powered Logo - Open Source Edition - ZimbraWiki

    (the lite client pulls the images from another location-hunt around the tomcat folder for folders named img images logo etc)
    Last edited by mmorse; 09-19-2007 at 11:39 AM.

  4. #4
    jooray is offline Active Member
    Join Date
    Jun 2007
    Posts
    34
    Rep Power
    7

    Default link

    yes, but this way they will both link to www.zimbra.com (even when user clicks on "mycompany" part).

    I believe changing the link to point somewhere else is violation of license.

  5. #5
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    20

    Default

    Oh I see what your getting at-while I know your trying to get the links/images separate...keep plugging away

    ----
    Side tangent for a sec:

    The same position thing is one of those that people are always wondering about:
    must be visible to all users, must appear in each user interface screen, and must be in the same position as and at least as large as the Zimbra logo is within the Original Code.
    The exact same/untouched and your's a separate image.
    VS
    Same area of login screen with yours on the left zimbra's on the right in the same image (of course both will be linked to zimbra.com then).

    If anyone ever wants an official ruling for their setup contact jrobb @ zimbra.com (john.robb)
    (sry I'm used to the NE-it makes it so much easier to forget all the legal stuff)
    Which is a good argument for getting some new directions posted to the wiki for people add their logo-without affecting the zimbra powered logo...
    Last edited by mmorse; 09-22-2007 at 08:55 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 31
    Last Post: 12-15-2007, 09:05 PM
  2. Replies: 8
    Last Post: 02-27-2007, 04:10 AM
  3. svn version still won't start
    By kinaole in forum Developers
    Replies: 0
    Last Post: 10-04-2006, 06:47 AM
  4. zimbra-core missing
    By kinaole in forum Developers
    Replies: 1
    Last Post: 10-02-2006, 11:59 AM
  5. Certify Error on (re)install
    By rodrigoccurvo in forum Installation
    Replies: 4
    Last Post: 09-23-2005, 09:04 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
  •