Print Page | Close Window

adding user group for member pages

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=15080
Printed Date: 30 March 2026 at 3:20am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: adding user group for member pages
Posted By: urko
Subject: adding user group for member pages
Date Posted: 14 May 2005 at 7:08am
Hey all ( again Wink ).

In my previous topic I was asking you guys for some help when using webwiz registration form to see members pages" and would like to thank you all for helping me.

Now, I was thinking if some1 register at my forum then automaticly they could see member page but I don't want to! So, I decided to add under User group another group called Super Member which is Non ladder group and only I as an Admin would grant them premission when they would apply!

Now I'm asking you, what should I add to my members page that only me as admin and Super Members would be able to see these pages??

This is the part that I had to add into my asp page in order to give the premission to all registered users ( thanks to aks427 & dj air )Smile.
<!--#include file="forum/common.asp"-->
<%

If intGroupID = 2 then

      Response.Redirect "forum/insufficient_permission.asp"

End If

%>
Thanks,

-------------
Urko



Replies:
Posted By: dj air
Date Posted: 14 May 2005 at 8:08am
you can say

If NOT (intGroupID = 1 OR intGroupID = #ID#) then

      Response.Redirect "forum/insufficient_permission.asp"

End If
subsiture #ID# with the GroupID for the super member group hover over the group name in the admin section and see what ID it has.

you could also change  that only allows the main admin group ID (1) and when added your super member group only that one two



Posted By: urko
Date Posted: 14 May 2005 at 9:31am
Thanks, it works fine, I really appreciate your help. Smile



-------------
Urko


Posted By: urko
Date Posted: 14 May 2005 at 9:49am
Just final question!

Is it possible that somehow I could add Javascript to insufficient_permission.asp page? Usually this page (insufficient_permission.asp) is made to warn users that they can't see or visit part of forum "password required" ( if I'm not mistaken) right?

Now If you're just registered in forum and would like to visit member pages you'll get beside the warning ( Sorry, only members with sufficient permission can access this page. ) also text in which it says that you'll need to send email to admin and request the permission to become Super member and to enter member page?
Is it possible to do that and how?

Thanks again,


-------------
Urko


Posted By: dj air
Date Posted: 14 May 2005 at 1:18pm
hi,

if you set a veriable within the string that sends them to the page like the below

If NOT (intGroupID = 1 OR intGroupID = #ID#) then

      Response.Redirect "forum/insufficient_permission.asp?MP=True"

End If
for example.. then on the insufficient_permission.asp page.. add the below to where you want it shown

<%
if CBool(request.querystring("MP")) = True then response.write ("To see other members pages.<br/> To gain access, please send an email to the admin, Please include your username, and if approved you will be tranferred into the super member group")
%>

just copy and paste the above and edit the text you want displaied



Posted By: urko
Date Posted: 15 May 2005 at 3:42am
Thans  dj air, this helped me a lot. Really appreciated.Wink

-------------
Urko



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net