Print Page | Close Window

New AD members and redirect

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25707
Printed Date: 03 April 2026 at 4:05pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: New AD members and redirect
Posted By: MIG
Subject: New AD members and redirect
Date 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 ?


-------------
I hear and I forget. I see and I remember. I do and I understand...



Replies:
Posted By: WebWiz-Bruce
Date 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.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: MIG
Date Posted: 20 May 2008 at 9:46am
Thanks Bruce, I am going to try it as soon as possible.. Thumbs%20Up

-------------
I hear and I forget. I see and I remember. I do and I understand...


Posted By: MIG
Date 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
 
%>


-------------
I hear and I forget. I see and I remember. I do and I understand...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net