Hi,
In the form-processing page (The page which checks whether a user is logged in) of your main website, findout what the username variable is, which is retrieved from the $_POST array. (Easiest is probably to look at the login form, and look at the name="" tag of the login form. Search for that value in the processing form:
e.g.: In the loginform you have
<input type=text name=username> Fill out your username
THen in the page which processes that information, search for username or $_POST[username].
IF the pages use sessions Check for session_start(); in the pages. If it is there: Sessions are used you can then set a session avriable:
$SESSION[user] = $POST['username'];
In the line:
<param name="ctrl.Nickname" value="$name">
you then do:
<param name="ctrl.Nickname" value="$_SESSION[user]">
J.