Home Page Construction Kit
Updates and Bug Fixes

The Problem
You have created a web site in your Home Page Folder (now called Web Publishing) and the pages no longer display the way you expect them to.

Before Upgrade
After Upgrade
8272006_94534_0.png
8272006_94644_1.png
The Reason
8272006_95053_2.pngThe new Web Publishing features of FirstClass use a new technology that applies an appearance to all pages in your Web Publishing folder that overrides the any customized templates (like HCK) that you may have been using.  This new appearance takes place as soon as you click on the Appearance button in your Web Publishing folder and select from one of the 6 different appearance styles

8272006_95157_3.png
This sets a value on a hidden field on your Web Publishing that tells Internet Services which of the new appearance styles you want.  The problem is, once it is set, there is no obvious way to clear it.

The Solution
The solution is to send a FirstClass Scripting (Batch Admin) command that will delete the field.  The command is
DELFLD Desktop <USERID> "Web Publishing" 13600

where <USERID> is the login id of the person who is experiencing this problem.
This becomes a bit of an administrative nightmare.

There are two possible solutions that you can develop to provide a "self serving" solution for your users.  One is anApplication Rule and the other is a FCRAD or FCAS solution.

Application Rule Solution
You can create a self serving "Application Rule" and toolbar button and make it available to all of your users so that they can fix the problem themselves.

You need to create a Manually triggered application rule that will send the Batch Admin command and will also make sure that <USERID> is replaced by the current logged in user's ID.  This rule also has to be a Toolbar button that is placed on the toolbar of a conference that is accessible to your user.  Below I describe a possible way to do this that I have verified to work.

1. Create the Batch Admin Scripts Folder
8272006_100453_1.jpgThe first thing you need to do is to create a Folder somewhere on the "Admin" desktop that will contain the script and that can be accessed by the Action script in the Application rule.
My suggestion is to create this folder inside the 8272006_100259_0.jpg folder that is on the Admin desktop.  For the rule to work, the path to the script must never change.  Since the FirstClass Applications folder will always be on the Admin desktop, it is safe to create your folder inside it.
I created a folder called 8272006_100527_2.pnginside that folder.

2. The Script
8272006_100658_3.pngInside the "BatchScripts" folder, create a new and type the following into the body of that document.

ENABLEFIELDSUBSTITUTION
DELFLD Desktop #7012 "Web Publishing" 13600

the ENABLEFIELDSUBSTITUTION line will trigger FirstClass scripting to replace the #7012 variable with the logged in user's, ID.  13600 is the value of the field that contains the Appearance value.

Save the document and call it "ClearWeb"


2. Create the Application Rule
The Application Rule and corresponding Toolbar button has to be associated with a conference that you have made available to your users.  I have made the 8272006_71450_0.pngfolder available to my uses since it explains how to use the Home Page Construction Kit.  This, then is a logical folder to create the toolbar button.
You must first set the permissions on this folder so that the view is set to "Use View from Server"
8272006_71639_1.png
Now you can click on the 8272006_71719_2.png button on the permissions form to open the Rules and Resources folder for this conference.
On the toolbar, click on the 8272006_71809_3.pngbutton to begin a new Application Rule.

Conditions Tab
1. Give the rule a Name like "Clear Appearance"
2. Set it to "Run Manually"
3. Set the Condition to be "Always"
8272006_72139_5.png
Actions Tab
Create 2 action rules as shown.
8272006_72748_7.png
Command Tab
8272006_72859_8.png
Click on "Add to toolbar", give the rule an Icon, name and Tooltip text.  Make sure you click on "Show name"

This will add the Button to the toolbar for all of your users.
Tip:  The Button will be added to the far right of the toolbar.  Choose View > Toolbars > Customize Toolbars and drag the button towards the left of the window so that is is more accessible.
8272006_73100_9.png

FirstClass RAD (FCAS) Solution.
1. Create the RAD Application
The RAD/FCAS Solutions is a very simple project to create even if you have never developed in RAD before.
Log in as the Admin and open 8272006_73728_10.png or 8272006_73757_11.png,
Click on 8272006_73839_12.png and give the Project a name 8272006_73915_13.png

At the next screen, double-Click on 8272006_74055_15.png
At the next screen, select Main8272006_74143_16.png
In the Main routine, type the following
 BatchAdmin("DELFLD Desktop " & fcUserID & " 'Web Publishing' 13600")
 MsgBox("Changes may take 20 seconds to apply.",fcOK,"Appearance Cleared")
8272006_81240_0.png
Press the TAB key three times on your keyboard (this will guarantee that the text is saved), close the window then click on Build
8272006_74934_20.png8272006_74907_19.png
This will build your application.

2. Installing the RAD Application
To install the Application, open the conference that you wish to install the application in.  I suggest the 8272006_71450_0.pngconference if that is available to all of your users.
With the conference open, from the Admin Menu, choose8272006_75612_21.png
In the installed form, enter the following:

8272006_75949_22.png
Now choose the Properties of the form and
1. Give it a unique Icon
2, Give it the application a name
3. Set the Read Only property.
8272006_80206_23.png
Your application is now installed and ready to use.