Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Check for login from own page
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Blitz
Starting Member

9 Posts

Posted - 31 January 2005 :  09:10:13  Show Profile
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

Posted - 31 January 2005 :  09:16:48  Show Profile
http://www.snitzbitz.com/mods/details.asp?Version=All&mid=71
Go to Top of Page

Blitz
Starting Member

9 Posts

Posted - 31 January 2005 :  09:21:41  Show Profile
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.
Go to Top of Page

Blitz
Starting Member

9 Posts

Posted - 31 January 2005 :  10:33:53  Show Profile
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?
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 31 January 2005 :  11:48:43  Show Profile  Visit PeeWee.Inc's Homepage

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
Go to Top of Page

Blitz
Starting Member

9 Posts

Posted - 31 January 2005 :  12:14:05  Show Profile
Add this to the top of the restricted pages?
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 31 January 2005 :  12:30:49  Show Profile  Visit PeeWee.Inc's Homepage
Any page you wish only logged in members to see.

De Priofundus Calmo Ad Te Damine
Go to Top of Page

Blitz
Starting Member

9 Posts

Posted - 31 January 2005 :  14:08:25  Show Profile
I get this error.

Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'getCurrentIcon'
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 31 January 2005 :  14:14:05  Show Profile  Visit PeeWee.Inc's Homepage
Make sure you have config.asp included within the files.

De Priofundus Calmo Ad Te Damine
Go to Top of Page

Blitz
Starting Member

9 Posts

Posted - 31 January 2005 :  15:42:01  Show Profile
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...

%>

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.41 seconds. Powered By: Snitz Forums 2000 Version 3.4.07