Print Page | Close Window

Remove / Disable Member List

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=22699
Printed Date: 08 April 2026 at 3:08am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Remove / Disable Member List
Posted By: Maktub
Subject: Remove / Disable Member List
Date Posted: 16 February 2007 at 5:09am
Dear All,
 
Probalby a simple answer, but I could not find a way, explanation how to remove / disable the memberlist. What would I have to do if I don't want that people except Admin can access / view this list?
 
Thanks for your input.
 
 



Replies:
Posted By: Melkor
Date Posted: 16 February 2007 at 6:09am
Add
If blnAdmin = False Then 
'Clean up
Call closeDatabase()


Response.Redirect("default.asp")
End If


To the page


Posted By: Maktub
Date Posted: 16 February 2007 at 6:57am
Thanks Melkor,
 
Could you please let me know to which page (default.asp?) and in what position. I an absolut novice in ASP.
 
Chris


Posted By: Melkor
Date Posted: 16 February 2007 at 7:12am
OK.

Add the code above to the page that you only want the Admins to be able to access anywhere below the line
<!--#include file="common.asp"-->
You mentioned not wanting the member listings viewable so this would be members.asp.

I'll break it down for you;
The If clause checks if the logged in user is an Admin or not (this is determined from pages linked to via the common.asp hence putting the code after that include).

If the logged in user is not and Admin, the server will close access to the database and redirectr the user to the page specified (in this case default.asp which is the main forum page).

If the logged in user is an Admin, the page will continue to load.



Posted By: Maktub
Date Posted: 16 February 2007 at 10:41am
Most appreciated.
 
Is my understanding correct, that the button/link "Memberlist" on top of the page remains, but that it will only redirect if user are not logged-in as Admin back to the default.asp?
 
If so, maybe that's not so elegant - Wouldn't it possible to also remove the icon and link all together and provide Admin's with the URL to the memberlist (or to view it in the Admin section actually).
 
So, maybe it would be easier to remove the memberlist icon / memberlist text on top of the page as well?


Posted By: Melkor
Date Posted: 16 February 2007 at 4:26pm
Yup, you can do the the same thing to that link.

Add
<% If blnAdmin = True Then %>
before the link, and
<% End If %>
after the link, then it will only appear for admins. 



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