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)
 Modify register.asp and/or inc_profile.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

willc0
Starting Member

8 Posts

Posted - 03 November 2004 :  08:41:01  Show Profile
Hi, I no asp person! But i need to edit this file.
We are intergrating "your account" into the windows login, but also want the "user name" to be the same.
This is best explained with the following images:
We want this...


to be this


Nothing more difcult that giving that field the information and making it unchangable (even if the box has to be there but greyed out thats fine!! just unchangeable!)

Thanks for anyhelp... just upagainst it to get this working!

Thanks.

Will

Edited by - willc0 on 04 November 2004 07:46:14

laser
Advanced Member

Australia
3859 Posts

Posted - 03 November 2004 :  14:10:23  Show Profile
Image links don't work though
Go to Top of Page

willc0
Starting Member

8 Posts

Posted - 04 November 2004 :  03:50:56  Show Profile
Teach me for not using FQD'd! Should work now :D
Go to Top of Page

miperez
Junior Member

Spain
243 Posts

Posted - 04 November 2004 :  04:15:39  Show Profile
Hi, willc0

I do not use NT authentication, so I cannot test what I'm about to suggest, you'll have to test it yourself...

In inc_profile.asp, around line 246 (at least in my forum file), add the code in red:

	if strAuthType = "nt" then 
			Response.Write	"                      <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & ChkString(rs("M_USERNAME"), "display") & "</font>" & vbNewLine & _
					"                      <input type=""hidden"" name=""Name"" value=""" & rs("M_USERNAME") & """>" & vbNewLine
	else
		if (strMode = "goEdit") or (strMode = "goModify" and cLng(Request.Form("MEMBER_ID")) = cLng(intAdminMemberID)) then
			Response.Write	"                      <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & ChkString(rs("M_NAME"), "display") & "</font>" & vbNewLine & _
					"                      <input type=""hidden"" name=""Name"" value=""" & rs("M_NAME") & """>" & vbNewLine
		else
			Response.Write	"                      <input name=""Name"" size=""25"" maxLength=""25"" value="""
			if strMode <> "Register" then Response.Write(ChkString(rs("M_NAME"), "display"))
			Response.Write	""">" & vbNewLine
		end if
	end if


Hope it works

Best Regards

Mikel Perez

"Hell is the place where everything test perfectly, and nothing works"
Go to Top of Page

willc0
Starting Member

8 Posts

Posted - 04 November 2004 :  07:42:38  Show Profile
Thanks for the help miperez, unfortuatly that doesnt work.

You see:


and if you ok anyway you are told:
There Was A Problem With Your Details
- You must choose a UserName
- Your UserName must be at least 3 characters long

Edited by - willc0 on 04 November 2004 07:45:19
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 04 November 2004 :  08:13:13  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Grab the user-name variable and stick it into the value of the form element, then add DISABLED to the form element.

-Stim
Go to Top of Page

willc0
Starting Member

8 Posts

Posted - 04 November 2004 :  08:39:39  Show Profile
Sorry to be ungreatful but that means nothing to me. Im new to asp as much as this forum software.

Edited by - willc0 on 04 November 2004 08:40:11
Go to Top of Page

willc0
Starting Member

8 Posts

Posted - 04 November 2004 :  12:52:08  Show Profile
One of my colleges has tried your sujestion but it has the same results as the image above, he not experianced in asp but knows more than I do be he considers himself no expert on the subject.
Go to Top of Page

willc0
Starting Member

8 Posts

Posted - 08 November 2004 :  03:54:28  Show Profile
Sorry to bump guys but im really getting despirate!!
Looked at fully intergrating the NT log-on, but we cant do this due to:

1) the users full name shows up to the posts still, not the ID number
2) we need them to click to agree to the turms of use.
Go to Top of Page

miperez
Junior Member

Spain
243 Posts

Posted - 18 November 2004 :  11:07:21  Show Profile
Hi, willc0

Have you solved this issue? I have been really busy these past week, so I have not had time to look at anything.

If you still need some assistance, please tell me what the current status is and I'll try to help.

Best Regards

Mikel Perez

"Hell is the place where everything test perfectly, and nothing works"
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.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07