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)
 "Members Only" HTML pages?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

beerman
Starting Member

10 Posts

Posted - 05 April 2005 :  16:22:42  Show Profile
Hi, I've built a couple of browser-side javascript calculators for my car stereo forum, dealing with subwoofer enclosure design.

I want to make them "members only".

I figured I could use the "typical" set of include files before and after the browser-side script, is there a specific variable I can set in the ASP code to kick people to a "sorry, you must be logged in to view this page" message?

Currently, anyone can read the site, they can't post without registering and clicking the email confirmation. I would like to leave the rest of the site like this.

Is there any code that already performs this task that I can recycle into it, or is this something I have to code myself?

rasure
Junior Member

289 Posts

Posted - 07 April 2005 :  05:16:56  Show Profile  Visit rasure's Homepage
This is what I use, although the page will have to go into the forum directory if this method is used...

<!--#include file="config.asp"-->
<!--#INCLUDE FILE="inc_sha256.asp"-->
<!--#include file="inc_header.asp"-->
<%
if strDBNTUserName = "" then
	Response.Redirect("default.asp")
else
strUsername = Request.Cookies("Snitz00User")("Name")
%>
HTML GOES HERE
<%
End If
%>
<!--#include file="inc_footer.asp"-->



Psychic & Spiritual Development Resources
Go to Top of Page

beerman
Starting Member

10 Posts

Posted - 07 April 2005 :  13:44:13  Show Profile
Wow, that's incredibly simple. Thanks!!!
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.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07