Author |
Topic  |
|
Blitz
Starting Member
9 Posts |
Posted - 31 January 2005 : 09:10:13
|
My forum is installed as part of my site. From one of my own web pages, I would like to verify if the user has logged in. Does anyone know how to do this? |
|
wii
Free ASP Hosts Moderator
    
Denmark
2632 Posts |
|
Blitz
Starting Member
9 Posts |
Posted - 31 January 2005 : 09:21:41
|
The Universal login doesn't work very well. There is one part of my site that I require a login. The MOD clutters the page with itself and the original content. |
 |
|
Blitz
Starting Member
9 Posts |
Posted - 31 January 2005 : 10:33:53
|
So how is this login suppose to work exactly. My situation is this. I have about 30 pages on my website. 6 of those pages are to be restricted access. 1 of those 6 pages gives access to the remaining 5 restricted pages. None of these pages can be viewed if the user has not logged on. I followed the instruction in the Universal Login installation guide. The result is a login box on the page and the restricted content. Basically, the user hasn't logged on, yet they can view the restricted content. Am I doing something wrong, or is this not the solution for me? |
 |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 31 January 2005 : 11:48:43
|
if strDBNTUserName = "" then
Err_Msg = "<li>You must be logged in to view the Members List</li>"
Response.Write "<table width=""100%"" border=""0"">" _
& "<tr>" _
& "<td>" & _
getCurrentIcon(strIconFolderOpen,"","") & " <a href=""default.asp"">All Forums</a><br />" & _
getCurrentIcon(strIconBar,"","") & getCurrentIcon(strIconFolderOpenTopic,"","") & " Member Information</td>" _
& "</tr>" _
& "</table>" _
& "<p class=""hfs hlfc c"">There Was A Problem!</p>" _
& "<p class=""hlfc c"">You must be logged in to view this page</p>" _
& "<p class=""c""><a href=""JavaScript:history.go(-1)"">Back to Forum</a></p>" _
& "<br />"
Call WriteFooter
Response.End
end if
Add that to the very top of the page. |
De Priofundus Calmo Ad Te Damine |
Edited by - PeeWee.Inc on 31 January 2005 11:52:52 |
 |
|
Blitz
Starting Member
9 Posts |
Posted - 31 January 2005 : 12:14:05
|
Add this to the top of the restricted pages? |
 |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 31 January 2005 : 12:30:49
|
Any page you wish only logged in members to see. |
De Priofundus Calmo Ad Te Damine |
 |
|
Blitz
Starting Member
9 Posts |
Posted - 31 January 2005 : 14:08:25
|
I get this error.
Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: 'getCurrentIcon' |
 |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 31 January 2005 : 14:14:05
|
Make sure you have config.asp included within the files. |
De Priofundus Calmo Ad Te Damine |
 |
|
Blitz
Starting Member
9 Posts |
Posted - 31 January 2005 : 15:42:01
|
It's looking for a login.asp which resides in a sub directory called forum. Here's the code I have:
<!--#INCLUDE FILE="forum/config.asp"--> <!--#INCLUDE FILE="forum/inc_header.asp"--> <!--#INCLUDE FILE="forum/inc_sha256.asp"-->
<% if strDBNTUserName = "" then Err_Msg = "<li>You must be logged in to view the Members List</li>" Response.Write "<table width=""100%"" border=""0"">" _ & "<tr>" _ & "<td>" & _ getCurrentIcon(strIconFolderOpen,"","") & " <a href=""forum/default.asp"">All Forums</a><br />" & _ getCurrentIcon(strIconBar,"","") & getCurrentIcon(strIconFolderOpenTopic,"","") & " Member Information</td>" _ & "</tr>" _ & "</table>" _ & "<p class=""hfs hlfc c"">There Was A Problem!</p>" _ & "<p class=""hlfc c"">You must be logged in to view this page</p>" _ & "<p class=""c""><a href=""JavaScript:history.go(-1)"">Back to Forum</a></p>" _ & "<br />"
Response.End end if
Response.Write("<html>" & vbcrlf) Response.Write("<head>" & vbcrlf) Response.Write("<title>The Women's Employment Project</title>" & vbcrlf)
And my content continues on from here...
%>
|
 |
|
|
Topic  |
|