Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Restricting access to site members only
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Restricting access to site members only

 Post Reply Post Reply
Author
Glenn View Drop Down
Newbie
Newbie


Joined: 29 March 2007
Location: Japan
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Glenn Quote  Post ReplyReply Direct Link To This Post Topic: Restricting access to site members only
    Posted: 29 March 2007 at 2:43pm
I need some help.  I am developing an members subscription site and have the forum as a part of the members section.  I have a member management system in place but I can't seem to restrict access to the forums to site members only.  I have tried includes and the following code but no luck:
<%
If Session("blnAdmin")<>True Then
If session("level")<>1 AND session("level")<>2 then
  Response.Redirect "/members/no_access.asp"
End If
End If
%>
 
Does anybody have any suggestions.
Thanks.
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 02 April 2007 at 7:26am
If you have your member management system integrated with WWF so users use the same login and password for both, then it should be pretty easy to do if you take a slightly different approach.

Simply change the permissions of each forum area so that guests and the  non-members group cannot access the forum areas you want to block, instead of trying to block the whole forums.

When someone becomes a member, change the group they are in in WWF.  You could so this with a simple database update query.

Using this approach will allow you to have some forums for members only, and some not (if you wanted to).  You have more flexibility that way.  You could also show what forums are available without actually showing what's inside, which can help sales, because people get curious about what's inside the locked forums they can't see unless they are a member.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.