thanks, i kind of follow it.
i am at the stage where i can see what things are doing, but writing new things is a bit past me yet.
i think what i need is very simple:
i amhappy that people come through the forum login toaccess the page so when they click a link in the forum post they go to a page written by me
if the visitor to the page is a member of the forum (or logged in to the forum whichever is easier) then i show them them the document.
if they are not a member/logged in then they get a message that say, please register/log in (whichever it is)
BTW, i know i could simply put a link to the doc in a members only forum but the doc would display if someone published the link outside of that forum, so i need the page to verify that the viewer is a member before diplaying the contents of the doc
taking you example above could i write:
<%
if lngLoggedInUserID = 2 then
Response.Write("Contents of document etc etc.....")
else
if blnActiveMember then
Response.Write("not needed")
if blnAdmin then
Response.Write(", not needed")
elseif blnMod then
Response.Write(", not needed")
else
Response.Write("You are logged in as" & strLoggedInUsername & " , but you still need to activate your account")
end if
end if
%>
i take it user id =2 is a member, what about non members?
not in code but as an example of the simplicity of what i need (if you know what i mean)
if membeer = yes then write (document)
else write (sod off and register/sign in.....thank you

)