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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 password
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

pahasapa
Starting Member

38 Posts

Posted - 14 May 2001 :  19:23:04  Show Profile
I would like to protect members.asp , pop_profile.asp ecc. with admin password.
Is it possible?

alex

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 15 May 2001 :  07:37:23  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
It's possible, but why? I can see members.asp (maybe), but why would you ever want to only allow the admins into pop_profile. Don't you want people to change their own information.

HOWEVER to do it, all you would need to do is add this code after the inc_top.asp:


if mlev <> 4 then
Response.Redirect "default.asp"
end if


I think a better choice for members.asp would be to restrict it so only members can see the member list. All you would need to do is add the same code I provided, but change the <> 4 to = 0


Dave Maxwell
--------------
Proud to be a "World Class" Knucklehead
Go to Top of Page

pahasapa
Starting Member

38 Posts

Posted - 15 May 2001 :  08:21:14  Show Profile
Tahnks!

I add the code in pop_profile:

%>
<!--#INCLUDE FILE="config.asp" -->
<!--#INCLUDE FILE="inc_functions.asp" -->
<%
if not(strUseExtendedProfile) then
%>
<!--#INCLUDE FILE="inc_top_short.asp" -->
<%
else
%>
<!--#INCLUDE FILE="inc_top.asp" -->

<% if mlev <> 4 then
Response.Redirect "default.asp"

end if


if strAuthType = "nt" then
if ChkAccountReg() <> "1" then %>

butwhen i click on a member profile ther is this:
Tipo di errore:
Errore di compilazione di Microsoft VBScript (0x800A03F6)
Previsto 'End'
/dogforumitalia/pop_profile.asp, line 1239


??

alex
Go to Top of Page

pahasapa
Starting Member

38 Posts

Posted - 15 May 2001 :  17:59:51  Show Profile
Thanks very much.
Now it's working!


alex
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.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07