| Author |
Topic Search Topic Options
|
srta2
Newbie
Joined: 18 May 2006
Status: Offline
Points: 10
|
Post Options
Thanks(0)
Quote Reply
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! 
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
srta2
Newbie
Joined: 18 May 2006
Status: Offline
Points: 10
|
Post Options
Thanks(0)
Quote Reply
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?
|
 |
srta2
Newbie
Joined: 18 May 2006
Status: Offline
Points: 10
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
srta2
Newbie
Joined: 18 May 2006
Status: Offline
Points: 10
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
srta2
Newbie
Joined: 18 May 2006
Status: Offline
Points: 10
|
Post Options
Thanks(0)
Quote Reply
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 
|
 |