Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Inserting Username

Quote Reply
Inserting Username
Is there a way to have the username inserted in the non-parsed html pages. It is easy to do on the dynamic pages but on the static pages it would have to be pulled. Maybe using SSI? Anyone know how this call might be done? Humm...


Quote Reply
Re: [jgkiefer] Inserting Username In reply to
Hi,

You would have to use SSI:

<!--#include virtual="/cgi-bin/page.cgi?p=myuser"-->

and have myuser.html look like:

User is <%Username%>

If you do this on all pages, you are losing the speed gain of using HTML pages, and might as well just use dynamic all the time.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Inserting Username In reply to
I what directory does the myuser.html page go so page.cgi can call it?
I only want this feature on the home page which is using SSI anyway because the home page is always being updated. SSI just makes things easier on this page. The other html pages are static. I think it will make the site more personal and hopefylly, sticky.
Quote Reply
Re: [jgkiefer] Inserting Username In reply to
The file should be in the templates/default directory.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Inserting Username In reply to
Thx-