Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - New AD members and redirect
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

New AD members and redirect

 Post Reply Post Reply
Author
MIG View Drop Down
Newbie
Newbie


Joined: 30 April 2008
Location: Norway
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote MIG Quote  Post ReplyReply Direct Link To This Post Topic: New AD members and redirect
    Posted: 11 May 2008 at 10:04pm

I am using AD integration, which means everyone from my AD is logged inn (and became registered user) after first visit to forum.

That is ok and that is what I need, but:

Is it possible to have some kind of "redirect" to "forum rules" for all new forum members after they logg inn for the first time ?
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: 12 May 2008 at 10:23am
It could be done you would need to modify the functions_windows_authentication.asp file, and set a new boolean when a member is first added, then at the end of the file if the boolean is set to true for a new member redirect them to the registration_rules.asp file.
Back to Top
MIG View Drop Down
Newbie
Newbie


Joined: 30 April 2008
Location: Norway
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote MIG Quote  Post ReplyReply Direct Link To This Post Posted: 20 May 2008 at 9:46am
Thanks Bruce, I am going to try it as soon as possible.. Thumbs%20Up
Back to Top
MIG View Drop Down
Newbie
Newbie


Joined: 30 April 2008
Location: Norway
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote MIG Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2008 at 2:33pm
Yepp, it works nice ! Thumbs%20Up
 
Here is part of the code:
 
*****
'The members username in the forum will use the name part of the windows authentication username,
'if the forum admin would like to change the members name to something different, they can log
'into the forums online 'control panel' and the 'Change Username' tool to change the members name
 
dim bNewUser        'This is boolean
bNewUser=False   
'set to "False" by default
 
'Set the variable below to true if you are using windows authentication
blnWindowsAuthentication = True
 
****** (rest of the code)
 
 'Create a forum session for the user to keep them logged
 Call saveSessionItem("UID", strAuthenticatedUser)
 Call saveSessionItem("NS", "0")

 'Return function
 windowsAuthentication = strAuthenticatedUser

 if bNewUser then
  response.redirect("registration_rules.asp")
 end if
 
End Function
 
' here is my redirect, on the bottom..
 
if bNewUser then
 response.redirect("registration_rules.asp")
end if
 
%>


Edited by MIG - 21 May 2008 at 3:01pm
Back to Top
 Post Reply Post Reply

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.