Author |
Topic |
|
willc0
Starting Member
8 Posts |
Posted - 03 November 2004 : 08:41:01
|
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
|
Image links don't work though |
|
|
willc0
Starting Member
8 Posts |
Posted - 04 November 2004 : 03:50:56
|
Teach me for not using FQD'd! Should work now :D |
|
|
miperez
Junior Member
Spain
243 Posts |
Posted - 04 November 2004 : 04:15:39
|
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"
|
|
|
willc0
Starting Member
8 Posts |
Posted - 04 November 2004 : 07:42:38
|
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 |
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 04 November 2004 : 08:13:13
|
Grab the user-name variable and stick it into the value of the form element, then add DISABLED to the form element. |
-Stim |
|
|
willc0
Starting Member
8 Posts |
Posted - 04 November 2004 : 08:39:39
|
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 |
|
|
willc0
Starting Member
8 Posts |
Posted - 04 November 2004 : 12:52:08
|
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. |
|
|
willc0
Starting Member
8 Posts |
Posted - 08 November 2004 : 03:54:28
|
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. |
|
|
miperez
Junior Member
Spain
243 Posts |
Posted - 18 November 2004 : 11:07:21
|
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"
|
|
|
|
Topic |
|