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 / Current Version (Old)
 Use Forum Auth for whole web
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

TechMail
Starting Member

2 Posts

Posted - 29 March 2005 :  16:21:45  Show Profile
I apologize if this has been asked and answered a hundred times already, I searched and did not find it ..

I want to rebuild a web around an existing snitz forum. I want to design several areas as 'member only' parts, and want to use the existing logins of the forum to control access. Can someone point me in the right direction for how to use the current member tables to verify current members, and allow new ones, to acccess the restricted areas with one single log in?

I will be using asp.net/vb.net to do this. I am pretty much a newbie and a non-programmer, but, if someone can point me down the right road (or tell me this is not reasonably do-able) I can take if from there.

Thanks!

andretti
New Member

70 Posts

Posted - 29 March 2005 :  16:28:19  Show Profile  Visit andretti's Homepage  Send andretti an AOL message  Send andretti a Yahoo! Message
Its pretty easy to do... This is what I use... Works pretty good.. I dunno maybe someone else has something better?

########################Start Of Page here############

<!--#INCLUDE FILE="config.asp"-->
<!--#INCLUDE FILE="inc_func_secure.asp" -->
<!--#INCLUDE FILE="inc_sha256.asp"-->
<!--#INCLUDE FILE="inc_header.asp" -->
<!--#INCLUDE FILE="inc_func_member.asp" -->
<!--#INCLUDE FILE="inc_moderation.asp" -->
<!--#INCLUDE FILE="inc_subscription.asp" -->
<%
Dim UnapprovedFound, UnModeratedPosts

if Request.QueryString("CAT_ID") <> "" and IsNumeric(Request.QueryString("CAT_ID")) = True then
Cat_ID = cLng(Request.QueryString("CAT_ID"))
end if

scriptname = request.servervariables("script_name")

if strAutoLogon = 1 then
if (ChkAccountReg() <> "1") then
Response.Redirect("register.asp?mode=DoIt")
end if
end if
%>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>test</title>
</head>

<center>
<table width="100%" border="0">
<td BACKGROUND="http://path to your background here/images/bg03.jpg" TEXT="000000" LINK="#80F00F" VLINK="#8080FF"><br><br><br>
<!--- in the line above change the background and/or text colors there --->
<body>
<!--- Place all page content below this line here --->




<!--- Place all page content above this line here --->
</td>
</table>
</body>
<!--#include file="inc_footer.asp" -->

######################## End Of Page here############

Of course you need to remove both lines that start with ############ but everything else in between is what you need.

Hope this helps

Edited by - andretti on 29 March 2005 16:30:07
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 30 March 2005 :  06:11:50  Show Profile
An easier way is to set your cookie to website. You can then just use the parts of the code from Snitz that checks whether a member is logged in without relying on all the includes.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

TechMail
Starting Member

2 Posts

Posted - 01 April 2005 :  15:53:56  Show Profile
Thanks both for your suggestions!

I think between them I should be able to get it started.
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.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07