Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Login screen before Forum list?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Login screen before Forum list?

 Post Reply Post Reply Page  12>
Author
srta2 View Drop Down
Newbie
Newbie


Joined: 18 May 2006
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote srta2 Quote  Post ReplyReply Direct Link To This Post Topic: Login screen before Forum list?
    Posted: 18 May 2006 at 8:47pm
Hi all !
 
I just downloaded these forums. They look pretty good so far.
 
Is there a way to show a login screen (asking for username and password), every time someone access my forums url, instead of showing the whole list of forums, topics, etc.?
 
I only want people to see the forums once they have logged in.
 
Thanks! Smile
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2006 at 9:48am
In version 8 you can setup forums that Guest account (non-logged in users) don't have read access to forums, then setup the forum so that it is hidden if the user doesn't have access to the forum.
Back to Top
srta2 View Drop Down
Newbie
Newbie


Joined: 18 May 2006
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote srta2 Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2006 at 3:22pm
> In version 8 you can setup forums that Guest account (non-logged in users) don't have read access to forums
I did this part
 
> then setup the forum so that it is hidden if the user doesn't have access to the forum.
How do I do this one?
 
 
 
Back to Top
srta2 View Drop Down
Newbie
Newbie


Joined: 18 May 2006
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote srta2 Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2006 at 3:27pm
Actually, I do not want Guests (or non-registered users) to have access to the forum at all, I don't want them to ever reach default.asp or any of the other pages. When anyone tries to access the forum's URL, I want them to be prompted with something like login_user.asp.
 
Thanks


Edited by srta2 - 19 May 2006 at 3:28pm
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2006 at 6:26pm
Then you will either have to modify the code and create a completely new login system, or look into something like having a password on the directory the forum is in so a password needs to be entered to get to that section of the site.
Back to Top
srta2 View Drop Down
Newbie
Newbie


Joined: 18 May 2006
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote srta2 Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2006 at 6:29pm
Mmm, 2 thoughts:
 
Is it possible to disable Guests at all?
 
Is it possible to make login_user.asp the main page, instead of default.asp? In a way such that if someone tries to access any other page, they are redirected to login_user.asp if they are not logged in?
 
Thanks
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2006 at 6:45pm
Atually you do have a point.

You could try adding to the common.asp file the following:-

If blnGuest Then Response.Redirect("login_user.asp")

Although you will need to make it so that login_user.asp doesn't keep redirecting to itself, otherwise it will get into a loop and never load the page.

Maybe even worth looking at making a standalone version of the login page, to do this.
Back to Top
srta2 View Drop Down
Newbie
Newbie


Joined: 18 May 2006
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote srta2 Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2006 at 9:44pm
> If blnGuest Then Response.Redirect("login_user.asp")
That seems like a good idea
 
> Although you will need to make it so that login_user.asp doesn't keep redirecting to itself
When do you think this may happen? As soon as I log in, I won't be a Guest anymore and I won't be redirected, right?
 
Do you think you can help me a little bit to make this work?
 
Thanks a lot Smile
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.