• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to get username in a page?

#1
I have an iframe pointing to an IRC webclient, I want the nick supplied to the iframe to be the username of the currently logged in user.

I've tried
HTML:
<iframe seamless src="http://iris.stormbit.net/?nick={$user}&channels=mystia&prompt=1" width="100%" height="550px" scrolling="no"></iframe>
But that doesn't seem to work. How would I do this?