Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - adding user group for member pages
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

adding user group for member pages

 Post Reply Post Reply
Author
urko View Drop Down
Groupie
Groupie
Avatar

Joined: 23 September 2004
Location: Slovenia
Status: Offline
Points: 160
Post Options Post Options   Thanks (0) Thanks(0)   Quote urko Quote  Post ReplyReply Direct Link To This Post Topic: adding user group for member pages
    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
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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



Edited by dj air - 14 May 2005 at 9:44am
Back to Top
urko View Drop Down
Groupie
Groupie
Avatar

Joined: 23 September 2004
Location: Slovenia
Status: Offline
Points: 160
Post Options Post Options   Thanks (0) Thanks(0)   Quote urko Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 2005 at 9:31am
Thanks, it works fine, I really appreciate your help. Smile

Urko
Back to Top
urko View Drop Down
Groupie
Groupie
Avatar

Joined: 23 September 2004
Location: Slovenia
Status: Offline
Points: 160
Post Options Post Options   Thanks (0) Thanks(0)   Quote urko Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
urko View Drop Down
Groupie
Groupie
Avatar

Joined: 23 September 2004
Location: Slovenia
Status: Offline
Points: 160
Post Options Post Options   Thanks (0) Thanks(0)   Quote urko Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2005 at 3:42am
Thans  dj air, this helped me a lot. Really appreciated.Wink
Urko
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.