Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - I need to change the Profile Page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

I need to change the Profile Page

 Post Reply Post Reply Page  12>
Author
donhill View Drop Down
Groupie
Groupie
Avatar

Joined: 06 June 2003
Location: Australia
Status: Offline
Points: 66
Post Options Post Options   Thanks (0) Thanks(0)   Quote donhill Quote  Post ReplyReply Direct Link To This Post Topic: I need to change the Profile Page
    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?

 

 

Back to Top
Vaseline View Drop Down
Groupie
Groupie


Joined: 03 May 2003
Status: Offline
Points: 66
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vaseline Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
thej3w View Drop Down
Newbie
Newbie


Joined: 06 July 2003
Location: United States
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote thej3w Quote  Post ReplyReply Direct Link To This Post 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



Edited by thej3w
Back to Top
donhill View Drop Down
Groupie
Groupie
Avatar

Joined: 06 June 2003
Location: Australia
Status: Offline
Points: 66
Post Options Post Options   Thanks (0) Thanks(0)   Quote donhill Quote  Post ReplyReply Direct Link To This Post 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.

 

 

Back to Top
donhill View Drop Down
Groupie
Groupie
Avatar

Joined: 06 June 2003
Location: Australia
Status: Offline
Points: 66
Post Options Post Options   Thanks (0) Thanks(0)   Quote donhill Quote  Post ReplyReply Direct Link To This Post 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!

Back to Top
thej3w View Drop Down
Newbie
Newbie


Joined: 06 July 2003
Location: United States
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote thej3w Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2003 at 4:55am
oh umm give me a few minutes and ill fix that up
Back to Top
thej3w View Drop Down
Newbie
Newbie


Joined: 06 July 2003
Location: United States
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote thej3w Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
thej3w View Drop Down
Newbie
Newbie


Joined: 06 July 2003
Location: United States
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote thej3w Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.