Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - No Guest access wanted at all!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

No Guest access wanted at all!

 Post Reply Post Reply Page  <12
Author
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2006 at 11:26pm
sorry, yes, you encase the Showthispage part like

<% @ Language=VBScript %>
<% Option Explicit %>
<% blnShowThisPage = True %>
<!--#include file="common.asp" -->


add for the stopping users from viewing pages add:

If lngLoggedInUserID = 2 And not blnShowThisPage Then
   Call closeDatabase()
   response.redirect("login_user.asp")
End If


after the following line like so:
(it doesnt need to be encased in <% and %> since its already inside them)


'Call the sub procedure to read in the details for this user
Call getUserData("UID")

If lngLoggedInUserID = 2 And not blnShowThisPage Then
  
Call closeDatabase()
   response.redirect("login_user.asp")
End If


'Make sure the main admin account remains active and full access rights and in the admin group
If lngLoggedInUserID = 1 Then
    intGroupID = 1
    blnActiveMember = True
    blnBanned = False
End If


hopefully this will be ok  and work.


Edited by Scotty_32 - 08 July 2006 at 10:16am
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
aks427 View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 06 December 2003
Location: United States
Status: Offline
Points: 276
Post Options Post Options   Thanks (0) Thanks(0)   Quote aks427 Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2006 at 12:59am
Wouldn't it be like this?
 
If lngLoggedInUserID = 2 And NOT blnShowThisPage Then
   Call closeDatabase()
   response.redirect("login_user.asp")
End If
 
Also, you'll probably need to Dim blnShowThisPage.
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2006 at 10:15am
ooops didnt notice that thanks.

and yeah, i told them to dim it future up.
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
Storm View Drop Down
Newbie
Newbie


Joined: 06 July 2006
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Storm Quote  Post ReplyReply Direct Link To This Post Posted: 10 July 2006 at 9:01am
Excellent, that works a treat! Thanks very much guys, you've been brilliant!

John
Back to Top
 Post Reply Post Reply Page  <12

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.