Print Page | Close Window

I need to change the Profile Page

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=5079
Printed Date: 02 April 2026 at 6:07pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: I need to change the Profile Page
Posted By: donhill
Subject: I need to change the Profile Page
Date Posted: 17 August 2003 at 2:38am

I am wanting to stop users being able to alter their email address online, but would like to let them change their user name.

It must be simply to chnage the two text fields for the boxes but I dont know which file(s) to alter.

Can anyone help please?

 

 




Replies:
Posted By: Vaseline
Date Posted: 17 August 2003 at 3:20am
I wouldn’t recommend that. What if ISP suddenly deletes one of your users mail-address – the user cannot change mail address in their own profile. There is no discipline when it comes to the user telling the admin of changes prior their profile -  or the user forgets to tell the admin. As an admin you will get a lot of error messages by mail. Unless of course you tick off the whole email and setup configuration, which results in no feature like for example notification by mail on new posts for the user.


Posted By: thej3w
Date Posted: 17 August 2003 at 3:59am

in the register.asp file lines 1216 to 1225 read

'If this is a new registration display a filed for the username
If strMode = "new" Then
%>

<input type="text" name="name" size="15" maxlength="15" value="<% = strUsername %>" />
<%

Else
      Response.Write(strUsername)
End If

%>

you can delete all the lines and replace it with this

%>
<input type="text" name="name" size="15" maxlength="15" value="<% = strUsername %>" />
<%

or you can comment them so incase you want to put it back to normal later you can uncomment them

and for the email go down a little farther to line 1254, delete this line

<input type="text" name="email" size="30" maxlength= "60" value="<% = strEmail %>" />

and add this

<%
If strMode = "new" Then
%>

<input type="text" name="email" size="30" maxlength= "60" value="<% = strEmail %>" />
<%

Else
      Response.Write(strEmail)
End If
%>


that should do it, if you have any other questions feel free to ask



Posted By: donhill
Date Posted: 17 August 2003 at 4:14am

Thanks very much that worked a treat.

Also, I am wondering how to get rid of the pesky message next to teh email link saying Not Required but useful.

Thanks again.

 

 



Posted By: donhill
Date Posted: 17 August 2003 at 4:19am

oops spoke too soon.

 

Now forum allows the old user name in but shows no email and does not allow the new suer name in!



Posted By: thej3w
Date Posted: 17 August 2003 at 4:55am
oh umm give me a few minutes and ill fix that up


Posted By: thej3w
Date Posted: 17 August 2003 at 5:02am

%>
<input type="text" name="name" size="15" maxlength="15" value="<% = strUsername %>" />

have that for the username part and have the following for the email

<%
If strMode = "new" Then
%>
<input type="text" name="email" size="30" maxlength= "60" value="<% = strEmail %>" />
<%

Else
      Response.Write(strEmail)
End If
%>

i only changed the username part a little bit but everything else worked fine how it was. did you maybe do something wrong?



Posted By: thej3w
Date Posted: 17 August 2003 at 5:05am
and as for that pesky message its on line 1041 it reads

Response.Write("         <br /><span class=""smText"">" & strTxtProfileEmailLong & "</span><br />")

just remove it and you should be ok, might wanna remove the else command to but it seemed to work without removing it


Posted By: thej3w
Date Posted: 17 August 2003 at 5:16am
oh, sorry i didnt understand your problem at first, the username wont save when you have the box, i guess this is an admin thing. i know the admin can change usernames cause ive done it, you have to access the database. but you want them to be able to do this, i could maybe make something that does it but i might not be able to do it right now


Posted By: thej3w
Date Posted: 17 August 2003 at 6:23am
ok as far as i know u cannot edit the username from the register.asp page, i can make another page thing that allows them to change their name but it would be very easy to change other peoples names as well. so i just suggest that you change their name if they ask for it



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net