Advertisements

More Citrix Web Interface 5.4 customizations

I recently accepted a job in a large enterprise company… I had to put the developers hat on and customize a new set of Web Interface 5.4 sites I set up.  I don’t know, but I can not leave the standard stuff up.  Where is the fun in that? 😛

Well after working on the site I found many places where it makes sense to modify a bit of code.  Below is what I changed.  The end result looks great.  I also made a ton of changes to the web webinterface.conf file.  Will post those as a new post as it will be a little lengthy… 🙂

Lets stat by editing the logout process of WI.  When a user log’s off, you have to click once again to relog in.  Why do that?  Instead you can redirect WI to go directly to the logon page (Makes sense right?)

Well here is the process

** Edit the Loggedout.aspx file in C:\inetpub\wwwroot\Citrix\sitename\auth

All the way at the end… make sure you have the following syntax

// A new Session will have been created for this page request as it has already been

// abandoned while logging out.

// Abandon this new session otherwise the session will remain active until timeout.

// Avoid session fixation by checking that it’s a new session which is abandoned

if (wiContext.getWebAbstraction().isNewSession()) {

wiContext.getWebAbstraction().abandonSession();

}

Response.Redirect(“login.aspx?CTX_FromLoggedoutPage=1”);

%>

** Now lets get some funky stuff going…

The file below is under your Citrix site root’s \app_data\include\fullstyle.inc

Fullstyle.inc Edits:

**Remove CTX tagline – only use if not changing tagline text. Otherwise, see “Change CTX Default Tagline Text” below.

#hor1izonTagline {

color: #F2F2F2;

font-size: 180%;

font-weight: normal;

margin: 50px 0 0 0;

padding-bottom: 10px;

text-align: center;

display: none;

}

** Remove all footer images and text (this includes the HDX and Citrix logos, and also any Footer text you may have specified in the Web Site Appearance Wizard)

#footer img

{

padding: 0 8px;

vertical-align: middle;

display: none;

}

.horizonPage #hdxLogo {

display: inline;

display: none;

}

.horizonPage #footer p {

color: #F2F2F2;

display: none;

}

**Change SysMessage text size and bold

#sysMessage

{

width: <%=wiContext.getString(“PageWidth”)%>;

margin: 0 auto;

padding-top: 8px;

font-size: 12px;

font-weight: bold;

}

<%

// The width is set shorter than the background width

%>

#sysMessage p

{

text-align: left;

padding: 10px 0;

font-size: 14px;

font-weight: bold;

}

**Change Tagline to smaller font

#horizonTagline {

color: #F2F2F2;

font-size: 120%;

font-weight: normal;

margin: 50px 0 0 0;

padding-bottom: 10px;

text-align: center;

}

Graphics Changes:

**Replace CTX XenApp top logo with YourLogo.png

  • replace \media\CitrixXenApp.png
  • replace \media\CitrixXenAppLoggedoff.png

**Remove computer screens graphic

  • rename \media\Devices.png to Devices_orig.png
  • rename \media\Devices.gif to Devices_orig.gif
  • rename \media\DevicesLoggedoff.gif to DevicesLoggedoff_orig.gif
  • rename \media\DevicesLoggedoff.png to DevicesLoggedoff_orig.png

Misc. Changes:

**Change CTX default tagline text

  • copy \program giles\citrix\web interface\5.4.0\languages\accessplatform_strings.properties to \inetpub\wwwroot\citrix\<site name>\languages.
  • Edit file:
    • #HorizonTagline=Your Windows desktops and apps on demand – from any PC, Mac, smartphone or tablet.
    • HorizonTagline=<Whatever you want here>

**Add logo to Login box (Thanks Jon Woods!)

\inetpub\wwwroot\Citrix\XenApp\app_data\include\loginMainForm.inc
<% // LoginType set to Explicit, but only if it is allowed
if (viewControl.getExplicitDisabled()) {
%>
value=””>
<% } else { %>
value=”<%=WIAuthType.EXPLICIT%>”>
<% } %>
<%
}
%>
<% // added table row and cell for logo %>
<table>
<tr><td rowspan=”6″ valign=”Top” align=”left”><img src=”../media/Your Logo Filename Here.png” alt=””></td></tr>
<% // end table row and cell for logo %>
<%
if (viewControl.getShowLoginTypeOptions()) {
%>

**Add the desktop Viewer (Drop-down toolbar) to Virtual Desktops (Be careful, this has been known to mess with Dual Displays):

In the sites webinterface.conf file, add line – “ShowDesktopViewer=On”

**Override the styles:

read the posting on this forum string from “efontan512″. Really good stuff.

**Add logo to top left:

\inetpub\wwwroot\Citrix\XenApp\app_data\include\header.inc
before:
<div id=”headerWrapper”>
<div id=”header”>
<table id=”headerLeft” cellspacing=”0″>
<tr>
<%
after:
<div id=”headerWrapper”>
<div id=”header”>
<table id=”headerLeft” cellspacing=”0″>
<tr>
<td>
<img id=”headerLogo” src=”../media/AtosLogoHeader.png” alt=”Seiten-Header” title=””&gt;
</td>;
<%

Advertisements

About CyberRuiz
Highly motivated with over 12 years experience on Citrix/VMWare/Microsoft/technologies. Exceptional communication skills and team player. CCIA – Citrix Certified Integration Architect. CCEA – Citrix Certified Enterprise Administrator. VCP – VMWare Certified Professional in ESX 2.x, VI3, VI4 MCSE – Microsoft Certified Systems Engineer

One Response to More Citrix Web Interface 5.4 customizations

  1. Citrix Guru says:

    Thanks for the info. There seems to be a lot of WI 5.4 stuff on the web. Will be interesting to see what happens with the CloudGateway stuff.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: