Layout, Images and Text

As part of installing PortalGuard, numerous files are unpacked on the IIS server. These files contain the ASPX, CSS and JavaScript that control PortalGuard’s user interface.

NOTE: Before modifying any of these files, be sure to save a backup copy of them in case you need to revert to it.

These files should be located in the following folders by default:

  1. C:\InetPub\PortalGuard\_layouts\PG - Contains login.aspx
  2. C:\InetPub\PortalGuard\_layouts\images\PG - Contains the CSS, images and Javascript used by PortalGuard

The only files you will typically need to modify are:

css\style.css - This is the only CSS file included in PortalGuard. It is included by login.aspx and has many styles that apply to generic HTML elements. You can replace this with your own, but there are definitions that must appear in it for PortalGuard to work properly (“translucent”, “popupWin”)

js\pg_custom.js - This Javascript file contains the HTML for all the messages that are returned to the user based on the success or failure of the PortalGuard request (e.g. login, password change, setting of challenge answers, et al.)

images\* - You can replace the default images with those of your own to change the branding. This will prevent the need to edit image paths in the CSS and ASPX pages. If you wish to “remove” a specific image, one simple technique is to replace it in this folder with a clear or white 1x1 image. This still does eliminate the HTTP request to the server to retrieve the image, so you may still wish to remove the image reference from login.aspx.

login.aspx - This is PortalGuard’s default login page. It is mainly inline HTML and can be edited a text editor or Microsoft Visual Studio. You should only need to modify this file if you want to make non-trivial changes.