Monday, 4 February 2013

Add your company logo to the login screen(custom logos)


This example shows how to add your logo above the ‘Sign In’ message in the login screen. As you’ll see below this is basic HTML code editing, so there is plenty of scope to show your logo wherever you want on the login screen.



Start off by copying your logo image file to the following three directories:

OBIEE_HOME\user_projects\domains\bifoundation_domain\servers\bi_server1\tmp\_WL_user\analytics_11.1.1\7dezjl\war\res\sk_blafp\b_mozilla_4

OBIEE_HOME\user_projects\domains\bifoundation_domain\servers\bi_server1\tmp\_WL_user\analytics_11.1.1\7dezjl\war\res\sk_blafp\login

OBIEE_HOME \Oracle_BI1\bifoundation\web\app\res\sk_blafp\login

Next we need to copy the some of the files used by OBIEE to display the web pages to a new area so that we can edit them.

From the ORACLE_HOME\Oracle_BI1\bifoundation\web\msgdb  directory copy the pages subdirectory to:

ORACLE_HOME\instances\instance1\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1\msgdb

If the msgdb directory does not exist, create it first.

Now go into the pages\common directory and you’ll see one of the files – signin.html. This is the html page that displays the login screen. Take a backup copy of it first before starting.

Edit login.html in a text editor.

Locate the <form id="logonForm" tag, then the table tag below it:
            <table width="100%" cellpadding="0" cellspacing="0">

Underneath add the following lines:

<tr>
<td>
<img src="fmap:login/3Sixty_Logo.png" style="visibility: visible;" class="defaultHidden" width="280" align="bottom" height="132" alt="3Sixty Analytics"/>
</td>
</tr>

With the <img tag altered to suit your details – the logo file name, the width and height and the alternative text to display if the logo cannot be displayed.


Save the file.

You now need to restart Presentation Services – either restart just Presentation Services in the Fusion Enterprise Manager, restart all services or just stop and restart OBIEE using your normal method.
The login screen should then display your logo. You may need to refresh your browser cache (control-F5)





Changing the colour of the OBIEE login screen.




The second post on customizing the look and feel of OBIEE - changing the colour of the login screen.

Out of the box OBIEE comes with the light blue login screen:



This can be changed by editing the image file and altering the colour as required.

The image file is called background_blue_whitegradient_.png and is located in the following three directories:

OBIEE_HOME\Oracle_BI1\bifoundation\web\app\res\sk_blafp\login

OBIEE_HOME\user_projects\domains\bifoundation_domain\servers\bi_server1\tmp\_WL_user\analytics_11.1.1\7dezjl\war\res\sk_blafp\login

OBIEE_HOME\user_projects\domains\bifoundation_domain\servers\bi_server1\tmp\_WL_user\bipublisher_11.1.1\to5gma\war\xdo\images

Take a backup copy of the file before beginning.

Now edit the file in your favourite image editor – I’ve used paint shop pro.

The image is just a narrow strip of blue to white fading down the screen.

 


First set the current colour to the what you need – I usually use the dropper tool to obtain the colour from an existing image (such as a screen-shot from a web site).
Now you need to select the paint brush style, with the default stroke type, but set the size to 500 or higher – this would produce a very large faded circle as the paint brush stroke.


At the very top of the image do one mouse click.  Because the image is very narrow you only get a very thin slice of the paint brush stroke, producing the faded colour effect we need.



Save as the image as the original background_blue_whitegradient_.png file and copy to all three directories above overwriting the existing file.

In the browser at the login screen you just need to force a refresh – use Control-F5.






How to change the Dashboard Header background colour





This is the first of a number of posts I'll be making about altering the look and feel of OBIEE 11g.

The official method is to create new skins, however this is quite complex if you only want to make a few tweaks, so below is the first example of workarounds to make minor changes. This requires changing original OBIEE installed files, so be sure to make a backup of any files before altering them.
 

This tutorial will show how to change the background colour of the header section of the dashboard from the default blue:              


 To another colour:



This is just a minor change to a single file – common.css.  The catch is there are four copies of this file so you need to repeat the change in all four.

The four files are located in the following directories:

OBIEE_HOME\Oracle_BI1\bifoundation\web\app\res\sk_blafp\b_mozilla_4


OBIEE_HOME\Oracle_BI1\bifoundation\web\app\res\sk_blafp\b_mozilla_4\rtl


OBIEE_HOME\user_projects\domains\bifoundation_domain\servers\bi_server1\tmp\_WL_user\analytics_11.1.1\7dezjl\war\res\sk_blafp\b_mozilla_4


OBIEE_HOME\user_projects\domains\bifoundation_domain\servers\bi_server1\tmp\_WL_user\analytics_11.1.1\7dezjl\war\res\sk_blafp\b_mozilla_4\rtl

Note it’s actually the common.css file in the third of these directories which immediately affects the dashboard, so test different colours and shades with this file first before altering the others.

Take a backup copy of these files before you begin.

Edit the common.css file from the first directory in a text editor.

Unfortunately these files have their entire contents on one line, so it’s a little difficult to read.



Search for the text           .HeaderContainer



The first parameter in the .HeaderContainer section is the background colour. You just need to change this to the colour you require.

#0D4988 is the default blue colour.

You can use any hex colour code. e.g. #980C13 for dark red or #008040 for green

Finally once the files are saved refresh the browser cache by using control-F5 to reload the files and the colour should change.


4 comments:

  1. Once I add logo on signin page, instantly getting error of XML error after login. Not getting option to browse through catalog and dashboards
    Error Statement: Error loading XML document from analytics/saw.dll/common/privileges.xml?fmapid=Oy3xsA

    please help

    ReplyDelete
    Replies
    1. You just need to copy PAGES Folder to ORACLE_HOME\instances\instance1\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1\msgdb

      Delete
  2. Hi,
    Want to add image/logo at left hand side of sign in box, I am using bi version11.1.1.7.1. Can you please tell how can we achieve this.
    Thanks,
    Sarika

    ReplyDelete
  3. Your blog has given me that thing which I never expect to get from all over the websites. Nice post guys!

    Melbourne Web Designer

    ReplyDelete