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

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Separate Login page
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

SaiyanJin
Junior Member

115 Posts

Posted - 23 May 2001 :  16:06:30  Show Profile
Has anyone seen or come up with a separate login page. I think since this forum is getting so popular, the developers or anyone should incorporate the login and top menu to 2 different pages so people can integrate the board to their site much easier. Anyone know anything about this, let me know.

Thanks.

big9erfan
Average Member

540 Posts

Posted - 23 May 2001 :  16:21:01  Show Profile
Check the code in inc_top.asp

it's all in there and uses variables defined and initialized in config.asp

http://www.ugfl.net/forums
Go to Top of Page

SaiyanJin
Junior Member

115 Posts

Posted - 04 June 2001 :  17:40:01  Show Profile
Well... that wasn't the exact answer I was hoping to get but oh well...at least you tried to help. It's just complex because the inc_top contains table rows and case statements and I just don't know where to cut off and so to make it into a page by itself then removing it from the forum totally.

Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 04 June 2001 :  17:45:12  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
this is the code you need to look for...


select case Request.Form("Method_Type")

case "login"
select case ChkUser2(strDBNTFUserName, Request.Form("Password"))
case 1, 2, 3, 4
Call DoCookies(Request.Form("SavePassword"))
strLoginStatus = 1
case else
strLoginStatus = 0
end select
case "logout"
Call ClearCookies()
SQL = "DELETE FROM " & strTablePrefix & "ACTIVE_USERS WHERE " & strTablePrefix & "ACTIVE_USERS.UserID = '" & strDBNTUserName & "'"
my_conn.Execute SQL
end select


basically the form you fill out with the username and password have a hidden field that you can see if you view the source of this page. here is an example if you are logged in : <INPUT type="hidden" name="Method_Type" value="logout">

other then that its pretty easy, but it does call functions out of the inc_functions.asp and gets values from config.asp files so make sure to include them in your seprate login page.

Brad
Go to Top of Page

work mule
Senior Member

USA
1358 Posts

Posted - 04 June 2001 :  19:15:42  Show Profile
If you go over to this topic and download the zip, you'll find separate login/logout files included.

The Writer Community

"Do not go where the path may lead, go instead where there is no path and leave a trail."

-Ralph Waldo Emerson
Go to Top of Page

SaiyanJin
Junior Member

115 Posts

Posted - 04 June 2001 :  22:58:30  Show Profile
Thanks Mule. I dl it but have not mess with it yet. HOpefully over the weekend or this Thursday night.

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.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07