Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Login Page
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

eroemer
Starting Member

16 Posts

Posted - 22 October 2004 :  11:46:56  Show Profile
I use a Snitz Forum as an information/announcement resource for the teachers at my school. I would like for them to see the Active Topics (active.asp) immediately on entering the site.

I want to activate "Require Registration" so they must login to the site. I want the login.asp page to redirect them to active.asp upon successful login.

I do not want the links that are found in the upper right hand corner to be displayed on the login.asp page.

I tried to simply create a link that took them to active.asp instead of default.asp but found that if they are not logged they do not get "true" Active Topics list. Then I tried to force login by activating "Require Registration" but found that many just clicked on a link in the upper right hand corner, plus those that did login were redirected to default.asp instead of active.asp

Thanks,
Eric Roemer
Arcadia Schools

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 22 October 2004 :  12:02:30  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
quote:
I want the login.asp page to redirect them to active.asp upon successful login.

Find the following code in login.asp (approx. lines 65-86):
	if strLoginStatus = 1 then
		Response.Write	"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>Login was successful!</font></p>" & vbNewLine
		Response.Write	"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href="""
		if strTarget = "" then
			Response.Write	"default.asp"
		else
			Response.Write	strTarget
		end if
		Response.Write	""">Click here to Continue</a></font></p>" & vbNewLine

		Response.Write	"      <meta http-equiv=""Refresh"" content=""2; URL="
		if strTarget = "" then
			Response.Write	"default.asp"
		else
			Response.Write	strTarget
		end if
		Response.Write	""">" & vbNewline & _
				"      <br />" & vbNewLine

		WriteFooter
		Response.End
	end if
and replace it with the following code:
	if strLoginStatus = 1 then
		Response.Write	"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>Login was successful!</font></p>" & vbNewLine
		Response.Write	"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href="""
		if strTarget = "" then
			Response.Write	"active.asp"
		else
			Response.Write	strTarget
		end if
		Response.Write	""">Click here to Continue</a></font></p>" & vbNewLine

		Response.Write	"      <meta http-equiv=""Refresh"" content=""2; URL="
		if strTarget = "" then
			Response.Write	"active.asp"
		else
			Response.Write	strTarget
		end if
		Response.Write	""">" & vbNewline & _
				"      <br />" & vbNewLine

		WriteFooter
		Response.End
	end if



quote:
I do not want the links that are found in the upper right hand corner to be displayed on the login.asp page.

Find the following code in inc_header.asp (approx. line 289):
call sForumNavigation()
and replace it with the following code:
if not Instr(strScriptName,"login.asp") > 0 then
	call sForumNavigation()
end if

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

eroemer
Starting Member

16 Posts

Posted - 22 October 2004 :  12:52:07  Show Profile
OneWayMule:

Thanks for the help! The login page now does not have links, but it still redirects to default.asp after a successful login. I noticed in the URL for the login page includes:

http://webaddress/login.asp?target=default.asp

I changed the "default.asp" values to "active.asp" as you indicated, and when it didn't work I changed "default.asp" to "active.asp" in two other places in login.asp. Still no luck. Is there another place I need to change this value?

Thanks again
Eric Roemer
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 22 October 2004 :  13:05:21  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Sorry, must have missed it.
Simply replace the following line in login.asp (approx. line 53):
strTarget = trim(chkString(request("target"),"SQLString"))
with the following code:
strTarget = ""

That should do it.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

eroemer
Starting Member

16 Posts

Posted - 22 October 2004 :  13:39:25  Show Profile
Thanks again, that did the trick!

Also, I would also like to disable the links in the following pages as well: faq.asp policy.asp and password.asp

These are pages that can be accessed from login.asp and I would like to make is so the only way they get to a page that has the links section is to login.

Can the statement in inc_header be modified further to accomplish this? I tried using "or" but I do not know that much about coding and it did not work...

Thanks,
Eric Roemer
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 22 October 2004 :  14:15:42  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Replace the following code:
if not Instr(strScriptName,"login.asp") > 0 then
	call sForumNavigation()
end if
with the following:
if not Instr(strScriptName,"login.asp") > 0 and _
not Instr(strScriptName,"faq.asp") > 0 and _
not Instr(strScriptName,"policy.asp") > 0 and _
not Instr(strScriptName,"password.asp") > 0 then
	call sForumNavigation()
end if

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

eroemer
Starting Member

16 Posts

Posted - 22 October 2004 :  15:58:37  Show Profile
OWM:

Thanks so much! Everything works great!

Eric Roemer
Arcadia Schools
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 22 October 2004 :  23:40:01  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
You're welcome.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.55 seconds. Powered By: Snitz Forums 2000 Version 3.4.07