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/Code)
 Universal Login for Snitz 3.4.03
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 13

@tomic
Senior Member

USA
1790 Posts

Posted - 20 August 2002 :  04:58:43  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message

Universal Login for 3.4.03


Initial Release 8/20/2002


Updated 9/29/2002!
Readme and installation improved
Redirect on logout fixed

Updated 12/18/2002
Added strForumURL to button images
Added note about forum directory needing to be named /forum

Here is a new version of inc_login.asp I just whipped up in a jiffy because the development team made
it so stinking easy! What I don't get is why you didn't just have an inc_login.asp, too. Well...it
was easy enough and here you go. I have tested it on my test forum and it seems to work just fine.

his MOD is designed to be used with inc_header.asp for best results. If you do not want to have the
html in inc_header.asp then simply delete the html portion so that you can add your own and still
retain the necessary code that makes this MOD work.

Login Sample

Logout Sample


Download:
http://www.atomicwebstudio.com/snitz/

Demo available at:
http://www.skepticfriends.org/forum2/
User Name: demo
Password: demo

@tomic

SportsBettingAcumen.com

Edited by - @tomic on 24 August 2004 02:31:59

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 20 August 2002 :  05:51:22  Show Profile
need to make 2 little changes:

see here

Also strDBNTFUserName is defined in inc_header.asp or inc_header_short.asp, so unless that page is being included, you'll probably need to change it to:

chkString(Request.QueryString("Name"),"SQLString")

also, the chkUser function is in the inc_func_common.asp file, which is included in the inc_header.asp and inc_header_short.asp files too.
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 20 August 2002 :  11:45:59  Show Profile  Visit Azaniah's Homepage
I know this is a dumb question. But I never used this mod in 3.3. What exactly does it do?

Eagles fly!, but weasels don't get sucked into jet engines.
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 20 August 2002 :  11:51:56  Show Profile
I'll allow having an external login/logout on your site (so it'll be outside of the forum directory)
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 20 August 2002 :  12:08:02  Show Profile  Visit Azaniah's Homepage
*blink* Maybe I'm just having another thick day, but can you give me an example of why you would want that?

Eagles fly!, but weasels don't get sucked into jet engines.
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 20 August 2002 :  12:09:25  Show Profile
To further integrate the forums into your site by letting people log in from the homepage or any other page on your site?
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 20 August 2002 :  12:15:50  Show Profile  Visit Azaniah's Homepage
Yep - as I said I'm having a thick day [:|]

Thanks

Eagles fly!, but weasels don't get sucked into jet engines.
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 20 August 2002 :  12:24:40  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
Thanks for the tip Richard. The chkUser was bugging me as I went to sleep but I was too far gone to check up on it. The file has been revised with some changes and additional comments to help you implement this.

@tomic

SportsBettingAcumen.com
Go to Top of Page

skyhawks
Junior Member

USA
125 Posts

Posted - 20 August 2002 :  13:36:26  Show Profile  Visit skyhawks's Homepage
Thanks @tomic, nice job on the file. =D. I do have one little request. if a person already logged in.. and he goes to one of my pages with that file in there.. i want it to display, you are logged in as USERNAME..... and if the cookies is not here.. the login box appears.

thanks,

----------------------------------------

Website: http://www.johnlophotography.com
Go to Top of Page

Therion93
Junior Member

USA
263 Posts

Posted - 21 August 2002 :  12:06:59  Show Profile  Send Therion93 an ICQ Message
quote:
Originally posted by skyhawks

Thanks @tomic, nice job on the file. =D. I do have one little request. if a person already logged in.. and he goes to one of my pages with that file in there.. i want it to display, you are logged in as USERNAME..... and if the cookies is not here.. the login box appears.

thanks,




In this case we would most likely also need to have the logoff button show when a use is logged in.
Go to Top of Page

skyhawks
Junior Member

USA
125 Posts

Posted - 21 August 2002 :  14:26:01  Show Profile  Visit skyhawks's Homepage
I have been trying to add something in the inc_login.asp file that if the person has logged in, it would start as You are logged in as USERNAME. and of course with a logout button, if you are not that user. I just cant get it done correctly. just not good in ASP Scripting. Maybe someone can help me out?? thanks, sky.

The following code actually came from the version for 3.3.x

else
response.write " <table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">" & _
" <tr>" & _
" <td align=""center"">" & _
" <form action=""" & Request.ServerVariables("URL") & """ method=""post"" id=form2 name=form2>" & _
" <input type=""hidden"" name=""Method_Type"" value=""logout"">" & _
" <font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>You are logged on as<br>" & _
" <b>" & ChkString(strDBNTUserName, "display") & "</b>" & _
" </td>" & _
" </tr>" & _
" <tr>" & _
" <td align=""center"">" & _
" <input src=button_logout.gif type=""image"" value=""Logout"" id=submit1 name=submit1 border=0 hspace=4>" & _
" </td>" & _
" </tr>"
if (mlev = 4) or (lcase(strNoCookies) = "1") then
response.write " <tr>" & _
" <td align=""center"">" & _
" <font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>" & _
" <a href=""admin_home.asp"">Admin Options</a>" & _
" </font>" & _
" </td>" & _
" </tr>"
end if
response.write " </table>"
end if

----------------------------------------

Website: http://www.johnlophotography.com
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 21 August 2002 :  14:47:06  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
I can do it later tonight(8 hours or so from this post) I will add a few other things such as making it work outside the forum. I realized last night that it is not good outside the forum without strHomeURL.

@tomic

SportsBettingAcumen.com
Go to Top of Page

skyhawks
Junior Member

USA
125 Posts

Posted - 21 August 2002 :  14:49:23  Show Profile  Visit skyhawks's Homepage
Kewl. thanks @tomic. =)

----------------------------------------

Website: http://www.johnlophotography.com
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 21 August 2002 :  14:52:13  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
No problem. I also made some custom login/out buttons I will package it with in case anyone wants something a bit different.

@tomic

SportsBettingAcumen.com
Go to Top of Page

skyhawks
Junior Member

USA
125 Posts

Posted - 21 August 2002 :  16:03:19  Show Profile  Visit skyhawks's Homepage
oh kewl, that would be great. =) i cant wait until its done.

----------------------------------------

Website: http://www.johnlophotography.com
Go to Top of Page

digmind
Junior Member

Greece
177 Posts

Posted - 22 August 2002 :  09:32:14  Show Profile  Send digmind a Yahoo! Message
Hey @tomic,

great job man, i was gonna tackle this mod on the weekend, but i'll wait for you to post up your revised edition. thanks for taken the iniative.


DigMind

if you need any help i have worked with this bugger on a few forums now.



is it 4:20?
Go to Top of Page
Page: of 13 Previous Topic Topic Next Topic  
Next Page
 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.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07