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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 inc_header.asp Login/Logout code (again!)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 24 February 2004 :  10:32:35  Show Profile  Visit PeeWee.Inc's Homepage
I can never, ever do this. I've tried so many times, and never got it right

What i wanna do is the same as whats done here (http://www.uk-mkivs.net/forum/default.asp ) with the login.

http://ee.1asphost.com/speedball2/inc_header.txt (inc_header.asp)
http://ee.1asphost.com/speedball2/forumhome.asp (site)

Any help, or anyone got the code done from thier site?


De Priofundus Calmo Ad Te Damine

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 24 February 2004 :  10:41:39  Show Profile
quote:
Originally posted by PeeWee.Inc

Any help, or anyone got the code done from thier site?



I have

What exactly is it you want? Is it the login box across the screen?

The UK MkIVs Forum
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 24 February 2004 :  10:51:36  Show Profile  Visit PeeWee.Inc's Homepage
Yeah. Like you have on your site.

De Priofundus Calmo Ad Te Damine
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 24 February 2004 :  11:35:08  Show Profile
I'll post it up tonight after work

The UK MkIVs Forum
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 24 February 2004 :  14:09:40  Show Profile
Here ya go, I use this in an include called inc_login.asp

<%
'#################################################################################
'## Top Navigation of forum and login
'#################################################################################

if (mlev = 0) then	'not logged in

	if not(Instr(Request.ServerVariables("Path_Info"), "uk_home.asp") > 0) And _
		not(Instr(Request.ServerVariables("Path_Info"), "login.asp") > 0) then

		Response.Write	"        <form name=""frmLogin"" action=""" & Request.ServerVariables("URL") & """ method=""post"">" & vbNewLine & _
				"        <input type=""hidden"" name=""Method_Type"" value=""login"">" & vbNewLine & _
				"        <tr>" & vbNewLine & _
				"          <td align=""left"">" & vbNewLine & _
				"				<table border=""0"" width=""100%"" cellspacing=""0"" cellpadding=""0"">" &vbCrLf &_
				"				<tr>" &vbCrLf &_
				"					<td bgcolor=""" & strTableBorderColor & """>" &vbCrLf &_		
				"						<TABLE WIDTH=""100%"" BORDER=""0"" CELLSPACING=""1"" CELLPADDING=""4"">" &vbCrLf &_
				"						<TR>" &vbCrLf &_
				"							<TD align=""left"" bgcolor="""& strCategoryCellColor &""" nowrap valign=""top""><b><font face="""& strDefaultFontFace &""" size="""& strDefaultFontSize &""" color="""& strCategoryFontColor &""">Login</font></b></TD>" &vbCrLf &_
				"						</TR>" &vbCrLf &_		
				"						<TR>" &vbCrLf &_
				"							<TD align=""left"" bgcolor="""& strForumCellColor &"""  nowrap valign=""top"">"
	
		if (strAuthType = "db") then
			Response.Write	"                <font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><b>Username: </b></font>" & vbNewLine & _
					"					<input type=""text"" name=""Name"" size=""10"" maxLength=""25"" value="""">" & vbNewLine & _
					"					<font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><b>Password: </b></font>" & vbNewLine & _
					"					<input type=""password"" name=""Password"" size=""10"" maxLength=""25"" value="""">" & vbNewLine
			if strGfxButtons = "1" then
				Response.Write	"                <input src=""" & strImageUrl & "button_login.gif"" type=""image"" border=""0"" value=""Login"" name=""Login"">" & vbNewLine
			else
				Response.Write	"                <input type=""submit"" name=""btnSubmit"" value=""Login"">" & vbNewLine
			end if 
			Response.Write	"                <input type=""checkbox"" class=""checkbox"" name=""SavePassWord"" value=""true"" tabindex=""-1"" CHECKED><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><b> Save Password</b></font>" & vbNewLine
		else
			if (strAuthType = "nt") then 
				Response.Write	"                <font face=""" & strDefaultFontFace & """ size=""1""  color=""" & strHiLiteFontColor & """>Please <a href=""policy.asp"" tabindex=""-1"">register</a> to post in these Forums</font>" & vbNewLine
			end if
		end if 
	
		if (lcase(strEmail) = "1") then
			Response.Write	"               <font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>" & vbNewLine & _
					"                <a href=""password.asp""" & dWStatus("Choose a new password if you have forgotten your current one...") & " tabindex=""-1"">Forgot your "
			if strAuthType = "nt" then Response.Write("Admin ")
			Response.Write	"Password?</a>" & vbNewLine
			if (lcase(strNoCookies) = "1") then
				Response.Write	"                |" & vbNewLine & _
						"                <a href=""admin_home.asp""" & dWStatus("Access the Forum Admin Functions...") & " tabindex=""-1"">Admin Options</a>" & vbNewLine
			end if
			Response.Write	"                </font>" & vbNewLine
		end if
				
		Response.Write	"						</td>" &vbCrLf &_
				"						</tr>" &vbCrLf &_				
				"						</table>" &vbCrLf &_
				"					</td>" &vbCrLf &_
				"				</tr>" &vbCrLf &_
				"				</table>" &vbCrLf &_
				"          </td>" & vbNewLine & _
				"        </tr>" & vbNewLine &_
				"		<script language=""javascript"">document.frmLogin.Name.focus();</script>" & vbNewLine &_
				"        </form>" & vbNewLine &_
				"        <tr>" & vbNewLine & _
				"          <td height=""5""></td>" & vbNewLine & _
				"        </tr>" & vbNewLine
				
	end if
else
	Response.Write	"        <form name=""frmLogout"" action=""" & Request.ServerVariables("URL") & """ method=""post"">" & vbNewLine & _
			"        <input type=""hidden"" name=""Method_Type"" value=""logout"">" & vbNewLine & _
			"        </form>" & vbNewLine			
end if
%>

The UK MkIVs Forum
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 24 February 2004 :  17:19:45  Show Profile  Visit PeeWee.Inc's Homepage
So, i've got to add that to a new file (inc_login.asp) and then include that in inc_header.asp

Got it


But... what code do i need to delete from inc_header.asp?


De Priofundus Calmo Ad Te Damine
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.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07