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
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 Topic: No Guest access wanted at all!
    Posted: 06 July 2006 at 5:27pm
Hi There,
We have just purchased the WebWiz forum software, and am trying to set it up in a very restrictive way.
 
Basically, the way we want it is unless you are issued with a username and password by us, you have no access AT ALL to the forum.
 
I guess that means removing/turning off the guest account, but I seem to be unable to do this. It appears that the most restrictive settings still allow guests to search the forums, see topic headings, last registered users etc.
 
We need to present a login box as the first page, no matter who you are, and if you don't have a username and password, then you can get no further.
 
We don't want google or yahoo to be able to crawl the site either.
 
Help!
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: 06 July 2006 at 11:39pm
simplest way to do it is, in the common.asp file add a line like:

if lngLoggedInUserID = 2 and blnShowThisPage then
   close db
   response.redirect("login_user.asp")
end if

then in the login_user.asp, login_user_test.asp and register page (and register_confirm.asp), and any other pages you find that guest NEED to view (eg sign up and login as i mentioned) add the line anywhere above the include for the common.asp file.:

blnShowThisPage = True


you'll also need to add Dim blnShowThisPage to the common.asp file

now you've blocked off your forum to members only.
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: 07 July 2006 at 9:08am
Hi Scotty,

Thanks for the reply. Is there anywhere in particular that the lines need to be placed in the common.asp?

Thanks.
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: 07 July 2006 at 9:45am
i'll fix you up with a common.asp file later - but theres to many files to just add the "blnShowThisPage" to

if you want to do it your self, just enter it near the bottom,
not sure if theres a "banned user" part or if i just entered that my self.
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: 07 July 2006 at 10:17am
Thanks!

BTW - I have registrations turned off, so is it just the login_user.asp file that needs the blnShowThisPage line?

John
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: 07 July 2006 at 1:35pm
yeah, in that case its just login_user.asp and login_user_test.asp
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: 07 July 2006 at 2:31pm
Hi Scotty,

I have stuck:

If lngLoggedInUserID = 2 And blnShowThisPage Then
   close db
   response.redirect("login_user.asp")
End If

in the common.asp file, within the Read in Logged-in User Data section, and:

Dim blnShowThisPage a little before this, but it doesn't appear to make any difference to the way anything works...

Not sure if I am doing something wrong....

Any unregistered users can still browse around the default page, and access things like the Active User list etc.

Also, in the login_user.asp file, if I put:

blnShowThisPage = True

before the:

<!--#include file="common.asp" -->

line, the forum just displays it within the web page... does it need to be encapsulated within <% quotes?

Sorry if these are silly comments, but I'm new to this asp stuff!!!

Thanks very much for your help so far.

John
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: 07 July 2006 at 2:32pm
Hi Scotty,

I have stuck:

If lngLoggedInUserID = 2 And blnShowThisPage Then
   close db
   response.redirect("login_user.asp")
End If

in the common.asp file, within the Read in Logged-in User Data section, and:

Dim blnShowThisPage a little before this, but it doesn't appear to make any difference to the way anything works...

Not sure if I am doing something wrong....

Any unregistered users can still browse around the default page, and access things like the Active User list etc.

Also, in the login_user.asp file, if I put:

blnShowThisPage = True

before the:

<!--#include file="common.asp" -->

line, the forum just displays it within the web page... does it need to be encapsulated within <% quotes?

Sorry if these are silly comments, but I'm new to this asp stuff!!!

Thanks very much for your help so far.

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.