jump to navigation

A Custom Message on the Signon Page (part 2) November 6, 2007

Posted by Duncan in Oracle, PeopleSoft, PIA.

One of the criticisms that could be leveled at the previous post ‘A Custom Message on the Signon Page’ and its attempt to provide ‘Message of the Day’ functionality is that it’s static. If you need to change the message, you need to bounce the PIA. At some clients this would be fine – and at others not – so another solution was needed.

One way is to embed an iFrame in the signin.html page that points to the file containing the ‘Message of the Day’ text. The signin.html loads on PIA boot and knows it has an iFrame in it, but doesn’t look for the file until someone loads the page. Then you can change the text as often as you like without having to bounce the PIA. If the message text is longer than the box, a vertical scroll bar appears.

(This solution is better for mixed browser clients, however if you are Internet Explorer only consider this solution instead.)

Message of the Day

There are a few things to consider with this technique:

1) If the file doesn’t exist, the frame will show a nasty looking ‘cannot be found’ error. Instead of deleting it, just put an empty file there and all will be fine.

2) It needs a small change to the Style Sheet on the Web Server. This is a simple one-off change but without it the surrounding box looks nasty – and you’re changing one delivered file anyway.

3) The flat file it calls has to have some style info in it, otherwise the text looks nasty (large, black, Times New Roman).

How do you do it?

All paths refer to files and directories underneath the ‘<pshome>\webserv\<domain>\applications\peoplesoft\PORTAL\’ folder.

1) Add the following style to the css file (/<PIA>/styles.css):

.psmotdframe {
background-color: #EEEEEE;
border: 1px solid #D6D6D6;

2) Create the following file (/MOTD.html):

<p style="font-family: arial; color: red; font-size: 9pt; text-align: center;">
The quick brown fox jumped over the lazy dog.

(the tags and style info seem to be something I can’t get around, and without them it looks ugly)

3) Edit the Signin.html file

In the same place as last time, add the following row:

<td><div align="center">

<p class="pslogintext"> <%=traceLink%> </p>
<p class="psloginerror"> <%=error%> </p>
<p class="psloginerror"> <%=ps.discovery.error%> </p>

Then bounce the PIA (it’ll be the only time you have to do this).

Further development would perhaps include hiding the box if the file doesn’t exist or trying to find a creative way of avoiding including the style tags.



1. PS Admin - November 6, 2007

Is there a way that we can have a scolling text box in sides instead of having it below the signin botton.
In that way we can have messages updated for the users, especially – “Scheduled Down time” or any news flash etc.

2. PS Admin - November 7, 2007

Also no need to bounce the PIA everytime, which requires the downtime.

3. PeopleSoft Tipster - November 7, 2007

PSADMIN, you could put the box wherever you wish, and style it in whatever manner you like. I just placed it their as I thought it looked best, but one man’s meat is another man’s poison 🙂

Just change where the iFrame code sits in the HTML file.

4. PS Admin - November 7, 2007


Sorry comments are closed for this entry

%d bloggers like this: