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)
 dreamweaver login
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ghs215
Starting Member

11 Posts

Posted - 13 November 2006 :  10:03:13  Show Profile
Hello all,

I am using the 'login and 'restrict access to page based on level' functions using Dreamweaver 8 for my main site. I would like to make the forum the default login area. This being said, Is there a way to mod something that the forum login would work for the main site and a way to use the 'restrict access to page based on level'?

Thanks

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 13 November 2006 :  11:11:05  Show Profile  Visit Jezmeister's Homepage
Search for the universal login mod will help you.
Once you have that sorted a simple bit of code at the top of the page after including config.asp and inc_header will sort out who should be there and who shouldnt, in this example anyone who's not an admin and attempting to view the page will be redirected to default.asp, you could display a message or something instead, if you replaced <> 4 with = 0 or < 1 then it would stop non-members viewing, with < 3 then only moderators and admins would be able to view it.
<!--#INCLUDE VIRTUAL="forum/config.asp" -->
<!--#INCLUDE VIRTUAL="forum/inc_header.asp" -->
<% If (mLev <> 4) then
Response.Redirect("default.asp")
end if %>
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.46 seconds. Powered By: Snitz Forums 2000 Version 3.4.07